| 12345678910111213141516171819202122232425 |
- import type { HasObjectId } from '@growi/core';
- import type { GrowiServiceType } from '@growi/core/dist/consts';
- import type { UserType } from './user-info';
- interface UserCondition {
- types: UserType[] // user types to show questionnaire
- daysSinceCreation?: {
- moreThanOrEqualTo?: number
- lessThanOrEqualTo?: number
- }
- }
- interface GrowiCondition {
- types: GrowiServiceType[] // GROWI types to show questionnaire in
- versionRegExps: string[] // GROWI versions to show questionnaire in
- }
- export interface ICondition {
- user: UserCondition
- growi: GrowiCondition
- }
- export type IConditionHasId = ICondition & HasObjectId;
|