@clxmedia/types 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- export type XperienceScopes = string;
1
+ export type XperienceScopes = `${string}/${string}`;
2
2
  export type XperienceAbility = "none" | "view" | "edit" | "admin";
3
3
  export type XperienceRightsData = {
4
4
  userId: number;
@@ -34,7 +34,7 @@ export type SpecialistRole = "account_mgr" | "implementation" | "search" | "medi
34
34
  export type CompanyMasterIds = number[];
35
35
  export type CLiQUserLocatorType = "user" | "group" | "role" | "right" | "odoo_role";
36
36
  export type CLiQUserLocatorConstraint = "internal" | "external";
37
- export type CLiQUserLocatorRoles = "implementation_specialist" | "account_manager" | "client_service_analyst";
37
+ export type CLiQUserLocatorRoles = "implementation_specialist" | "account_manager" | "client_service_analyst" | "task_assignee";
38
38
  export type CLiQUserLocatorBase = {
39
39
  type: CLiQUserLocatorType;
40
40
  value: string;
@@ -82,15 +82,7 @@ export type Origin = {
82
82
  path: string;
83
83
  };
84
84
  };
85
- export type TaskNotificationRecipientLocator = CLiQUserLocator | {
86
- type: "current_assignee";
87
- };
88
- export type TaskNotificationRecipients = {
89
- to: TaskNotificationRecipientLocator | TaskNotificationRecipientLocator[];
90
- cc?: TaskNotificationRecipientLocator | TaskNotificationRecipientLocator[];
91
- bcc?: TaskNotificationRecipientLocator | TaskNotificationRecipientLocator[];
92
- };
93
- export type ProjectNotificationRecipients = {
85
+ export type CLiQNotificationRecipients = {
94
86
  to: CLiQUserLocator | CLiQUserLocator[];
95
87
  cc?: CLiQUserLocator | CLiQUserLocator[];
96
88
  bcc?: CLiQUserLocator | CLiQUserLocator[];
@@ -98,13 +90,13 @@ export type ProjectNotificationRecipients = {
98
90
  export type TaskNotificationConfig = {
99
91
  onAction: CLXTaskActionType;
100
92
  templateSlug: string;
101
- recipients: TaskNotificationRecipients;
93
+ recipients: CLiQNotificationRecipients;
102
94
  repeatable: boolean;
103
95
  };
104
96
  export type ProjectNotificationConfig = {
105
97
  onAction: CLXProjectActionType;
106
98
  templateSlug: string;
107
- recipients: ProjectNotificationRecipients;
99
+ recipients: CLiQNotificationRecipients;
108
100
  repeatable: boolean;
109
101
  };
110
102
  export type ProjectNotificationConfigs = {
@@ -115,12 +107,6 @@ export type ProjectReminderRecipients = {
115
107
  cc?: CLiQUserLocator | CLiQUserLocator[];
116
108
  bcc?: CLiQUserLocator | CLiQUserLocator[];
117
109
  };
118
- export type TaskReminderRecipients = {
119
- to: TaskNotificationRecipientLocator | TaskNotificationRecipientLocator[];
120
- cc?: TaskNotificationRecipientLocator | TaskNotificationRecipientLocator[];
121
- bcc?: TaskNotificationRecipientLocator | TaskNotificationRecipientLocator[];
122
- };
123
- export type ReminderRecipients = TaskReminderRecipients | ProjectReminderRecipients;
124
110
  type OriginLocatorBase = {
125
111
  type?: string;
126
112
  origin_time: number;
@@ -136,7 +122,7 @@ export type OriginLocator = TaskOriginLocator | ProjectOriginLocator;
136
122
  export type TaskReminderScheduleEntry = {
137
123
  reminder_type: CLXTaskNotificationType;
138
124
  delay: TimeDelay;
139
- recipients: TaskReminderRecipients;
125
+ recipients: CLiQNotificationRecipients;
140
126
  };
141
127
  export type ReminderScheduleEntry = TaskReminderScheduleEntry | ProjectReminderScheduleEntry;
142
128
  export type TaskReminderConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",