-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8746 from ever-co/fix/desktop-builds
[Fix] Desktop Builds
- Loading branch information
Showing
11 changed files
with
83 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './lib/task'; | ||
export * from './lib/organization'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* Enumeration for task proof of completion types. | ||
* Defines whether the proof of task completion is publicly visible or private. | ||
*/ | ||
export enum TaskProofOfCompletionTypeEnum { | ||
PUBLIC = 'PUBLIC', | ||
PRIVATE = 'PRIVATE' | ||
} | ||
|
||
/** | ||
* Default period (in days) before sending a notification about a pending task. | ||
*/ | ||
export const DEFAULT_TASK_NOTIFY_PERIOD = 7; | ||
|
||
/** | ||
* Default period (in days) before an unresolved issue is automatically closed. | ||
*/ | ||
export const DEFAULT_AUTO_CLOSE_ISSUE_PERIOD = 7; | ||
|
||
/** | ||
* Default period (in days) before an inactive issue is automatically archived. | ||
*/ | ||
export const DEFAULT_AUTO_ARCHIVE_ISSUE_PERIOD = 7; | ||
|
||
/** | ||
* Default proof of completion type for a task, set to PRIVATE. | ||
*/ | ||
export const DEFAULT_PROOF_COMPLETION_TYPE = TaskProofOfCompletionTypeEnum.PRIVATE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 31 additions & 37 deletions
68
packages/contracts/src/lib/organization-task-setting.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,45 @@ | ||
import { TaskProofOfCompletionTypeEnum } from '@gauzy/constants'; | ||
import { IRelationalOrganizationProject } from './organization-projects.model'; | ||
import { IRelationalOrganizationTeam } from './organization-team.model'; | ||
import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model'; | ||
|
||
export interface IOrganizationTaskSetting extends IBasePerTenantAndOrganizationEntityModel, IRelationalOrganizationTeam, IRelationalOrganizationProject { | ||
export interface IOrganizationTaskSetting | ||
extends IBasePerTenantAndOrganizationEntityModel, | ||
IRelationalOrganizationTeam, | ||
IRelationalOrganizationProject { | ||
isTasksPrivacyEnabled: boolean; | ||
isTasksMultipleAssigneesEnabled: boolean; | ||
isTasksManualTimeEnabled: boolean; | ||
isTasksGroupEstimationEnabled: boolean; | ||
isTasksEstimationInHoursEnabled: boolean; | ||
isTasksEstimationInStoryPointsEnabled: boolean; | ||
|
||
isTasksPrivacyEnabled: boolean; | ||
isTasksMultipleAssigneesEnabled: boolean; | ||
isTasksManualTimeEnabled: boolean; | ||
isTasksGroupEstimationEnabled: boolean; | ||
isTasksEstimationInHoursEnabled: boolean; | ||
isTasksEstimationInStoryPointsEnabled: boolean; | ||
isTasksProofOfCompletionEnabled: boolean; | ||
tasksProofOfCompletionType: TaskProofOfCompletionTypeEnum; | ||
|
||
isTasksProofOfCompletionEnabled: boolean; | ||
tasksProofOfCompletionType: TaskProofOfCompletionTypeEnum; | ||
isTasksLinkedEnabled: boolean; | ||
isTasksCommentsEnabled: boolean; | ||
isTasksHistoryEnabled: boolean; | ||
isTasksAcceptanceCriteriaEnabled: boolean; | ||
isTasksDraftsEnabled: boolean; | ||
|
||
isTasksLinkedEnabled: boolean; | ||
isTasksCommentsEnabled: boolean; | ||
isTasksHistoryEnabled: boolean; | ||
isTasksAcceptanceCriteriaEnabled: boolean; | ||
isTasksDraftsEnabled: boolean; | ||
isTasksNotifyLeftEnabled: boolean; | ||
tasksNotifyLeftPeriodDays: number; | ||
|
||
isTasksNotifyLeftEnabled: boolean; | ||
tasksNotifyLeftPeriodDays: number; | ||
isTasksAutoCloseEnabled: boolean; | ||
tasksAutoClosePeriodDays: number; | ||
|
||
isTasksAutoCloseEnabled: boolean; | ||
tasksAutoClosePeriodDays: number; | ||
isTasksAutoArchiveEnabled: boolean; | ||
tasksAutoArchivePeriodDays: number; | ||
|
||
isTasksAutoArchiveEnabled: boolean; | ||
tasksAutoArchivePeriodDays: number; | ||
|
||
isTasksAutoStatusEnabled: boolean; | ||
} | ||
|
||
export enum TaskProofOfCompletionTypeEnum { | ||
PUBLIC = 'PUBLIC', | ||
PRIVATE = 'PRIVATE', | ||
isTasksAutoStatusEnabled: boolean; | ||
} | ||
|
||
export interface IOrganizationTaskSettingFindInput extends IBasePerTenantAndOrganizationEntityModel, IRelationalOrganizationTeam, IRelationalOrganizationProject { } | ||
export interface IOrganizationTaskSettingFindInput | ||
extends IBasePerTenantAndOrganizationEntityModel, | ||
IRelationalOrganizationTeam, | ||
IRelationalOrganizationProject {} | ||
|
||
export interface IOrganizationTaskSettingCreateInput extends IOrganizationTaskSetting { } | ||
|
||
export interface IOrganizationTaskSettingUpdateInput extends Partial<IOrganizationTaskSettingCreateInput> { | ||
id?: IOrganizationTaskSetting['id']; | ||
} | ||
export interface IOrganizationTaskSettingCreateInput extends IOrganizationTaskSetting {} | ||
|
||
export const DEFAULT_TASK_NOTIFY_PERIOD = 7; | ||
export const DEFAULT_AUTO_CLOSE_ISSUE_PERIOD = 7; | ||
export const DEFAULT_AUTO_ARCHIVE_ISSUE_PERIOD = 7; | ||
export const DEFAULT_PROOF_COMPLETION_TYPE = TaskProofOfCompletionTypeEnum.PRIVATE; | ||
export interface IOrganizationTaskSettingUpdateInput extends Partial<IOrganizationTaskSettingCreateInput> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop-ui-lib/src/lib/settings/settings.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters