|
| 1 | +import { TaskProofOfCompletionTypeEnum } from '@gauzy/constants'; |
1 | 2 | import { IRelationalOrganizationProject } from './organization-projects.model'; |
2 | 3 | import { IRelationalOrganizationTeam } from './organization-team.model'; |
3 | 4 | import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model'; |
4 | 5 |
|
5 | | -export interface IOrganizationTaskSetting extends IBasePerTenantAndOrganizationEntityModel, IRelationalOrganizationTeam, IRelationalOrganizationProject { |
| 6 | +export interface IOrganizationTaskSetting |
| 7 | + extends IBasePerTenantAndOrganizationEntityModel, |
| 8 | + IRelationalOrganizationTeam, |
| 9 | + IRelationalOrganizationProject { |
| 10 | + isTasksPrivacyEnabled: boolean; |
| 11 | + isTasksMultipleAssigneesEnabled: boolean; |
| 12 | + isTasksManualTimeEnabled: boolean; |
| 13 | + isTasksGroupEstimationEnabled: boolean; |
| 14 | + isTasksEstimationInHoursEnabled: boolean; |
| 15 | + isTasksEstimationInStoryPointsEnabled: boolean; |
6 | 16 |
|
7 | | - isTasksPrivacyEnabled: boolean; |
8 | | - isTasksMultipleAssigneesEnabled: boolean; |
9 | | - isTasksManualTimeEnabled: boolean; |
10 | | - isTasksGroupEstimationEnabled: boolean; |
11 | | - isTasksEstimationInHoursEnabled: boolean; |
12 | | - isTasksEstimationInStoryPointsEnabled: boolean; |
| 17 | + isTasksProofOfCompletionEnabled: boolean; |
| 18 | + tasksProofOfCompletionType: TaskProofOfCompletionTypeEnum; |
13 | 19 |
|
14 | | - isTasksProofOfCompletionEnabled: boolean; |
15 | | - tasksProofOfCompletionType: TaskProofOfCompletionTypeEnum; |
| 20 | + isTasksLinkedEnabled: boolean; |
| 21 | + isTasksCommentsEnabled: boolean; |
| 22 | + isTasksHistoryEnabled: boolean; |
| 23 | + isTasksAcceptanceCriteriaEnabled: boolean; |
| 24 | + isTasksDraftsEnabled: boolean; |
16 | 25 |
|
17 | | - isTasksLinkedEnabled: boolean; |
18 | | - isTasksCommentsEnabled: boolean; |
19 | | - isTasksHistoryEnabled: boolean; |
20 | | - isTasksAcceptanceCriteriaEnabled: boolean; |
21 | | - isTasksDraftsEnabled: boolean; |
| 26 | + isTasksNotifyLeftEnabled: boolean; |
| 27 | + tasksNotifyLeftPeriodDays: number; |
22 | 28 |
|
23 | | - isTasksNotifyLeftEnabled: boolean; |
24 | | - tasksNotifyLeftPeriodDays: number; |
| 29 | + isTasksAutoCloseEnabled: boolean; |
| 30 | + tasksAutoClosePeriodDays: number; |
25 | 31 |
|
26 | | - isTasksAutoCloseEnabled: boolean; |
27 | | - tasksAutoClosePeriodDays: number; |
| 32 | + isTasksAutoArchiveEnabled: boolean; |
| 33 | + tasksAutoArchivePeriodDays: number; |
28 | 34 |
|
29 | | - isTasksAutoArchiveEnabled: boolean; |
30 | | - tasksAutoArchivePeriodDays: number; |
31 | | - |
32 | | - isTasksAutoStatusEnabled: boolean; |
33 | | -} |
34 | | - |
35 | | -export enum TaskProofOfCompletionTypeEnum { |
36 | | - PUBLIC = 'PUBLIC', |
37 | | - PRIVATE = 'PRIVATE', |
| 35 | + isTasksAutoStatusEnabled: boolean; |
38 | 36 | } |
39 | 37 |
|
40 | | -export interface IOrganizationTaskSettingFindInput extends IBasePerTenantAndOrganizationEntityModel, IRelationalOrganizationTeam, IRelationalOrganizationProject { } |
| 38 | +export interface IOrganizationTaskSettingFindInput |
| 39 | + extends IBasePerTenantAndOrganizationEntityModel, |
| 40 | + IRelationalOrganizationTeam, |
| 41 | + IRelationalOrganizationProject {} |
41 | 42 |
|
42 | | -export interface IOrganizationTaskSettingCreateInput extends IOrganizationTaskSetting { } |
43 | | - |
44 | | -export interface IOrganizationTaskSettingUpdateInput extends Partial<IOrganizationTaskSettingCreateInput> { |
45 | | - id?: IOrganizationTaskSetting['id']; |
46 | | -} |
| 43 | +export interface IOrganizationTaskSettingCreateInput extends IOrganizationTaskSetting {} |
47 | 44 |
|
48 | | -export const DEFAULT_TASK_NOTIFY_PERIOD = 7; |
49 | | -export const DEFAULT_AUTO_CLOSE_ISSUE_PERIOD = 7; |
50 | | -export const DEFAULT_AUTO_ARCHIVE_ISSUE_PERIOD = 7; |
51 | | -export const DEFAULT_PROOF_COMPLETION_TYPE = TaskProofOfCompletionTypeEnum.PRIVATE; |
| 45 | +export interface IOrganizationTaskSettingUpdateInput extends Partial<IOrganizationTaskSettingCreateInput> {} |
0 commit comments