@clxmedia/types 1.0.149 → 1.0.151

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.
@@ -4,7 +4,7 @@ import type { EnterpriseEventSlugs } from "../events";
4
4
  export type CLXSortDirection = 'asc' | 'desc';
5
5
  export type CLXTaskStatus = 'pending' | 'open' | 'done';
6
6
  export type CLXTaskFilter = {
7
- cliq_user_locator_slug: CLiQuserLocatorSlug;
7
+ cliq_user_locator_slug?: CLiQuserLocatorSlug;
8
8
  my_tasks?: boolean;
9
9
  master_id?: number;
10
10
  include_closed?: boolean;
@@ -80,30 +80,18 @@ export type Origin = {
80
80
  path: string;
81
81
  };
82
82
  };
83
- export type ProjectNotificationRecipients = {
84
- to: ProjectNotificationRecipientLocator | ProjectNotificationRecipientLocator[];
85
- cc?: ProjectNotificationRecipientLocator | ProjectNotificationRecipientLocator[];
86
- bcc?: ProjectNotificationRecipientLocator | ProjectNotificationRecipientLocator[];
83
+ export type TaskNotificationRecipientLocator = CLiQUserLocator | {
84
+ type: 'current_assignee';
87
85
  };
88
86
  export type TaskNotificationRecipients = {
89
87
  to: TaskNotificationRecipientLocator | TaskNotificationRecipientLocator[];
90
88
  cc?: TaskNotificationRecipientLocator | TaskNotificationRecipientLocator[];
91
89
  bcc?: TaskNotificationRecipientLocator | TaskNotificationRecipientLocator[];
92
90
  };
93
- export type NotificationRecipientType = 'user' | 'group' | 'right' | 'odoo_role';
94
- export type NotificationRecipientLocator = {
95
- recipientType: NotificationRecipientType;
96
- recipient: string | null;
97
- };
98
- export type ProjectNotificationRecipientType = 'user' | 'group' | 'right' | 'role' | 'odoo_role';
99
- export type TaskNotificationRecipientType = 'user' | 'group' | 'right' | 'role' | 'odoo_role' | 'current_assignee';
100
- export type TaskNotificationRecipientLocator = {
101
- recipientType: TaskNotificationRecipientType;
102
- recipient: string;
103
- };
104
- export type ProjectNotificationRecipientLocator = {
105
- recipientType: ProjectNotificationRecipientType;
106
- recipient: string;
91
+ export type ProjectNotificationRecipients = {
92
+ to: CLiQUserLocator | CLiQUserLocator[];
93
+ cc?: CLiQUserLocator | CLiQUserLocator[];
94
+ bcc?: CLiQUserLocator | CLiQUserLocator[];
107
95
  };
108
96
  export type TaskNotificationConfig = {
109
97
  onAction: CLXTaskActionType;
@@ -121,9 +109,9 @@ export type ProjectNotificationConfigs = {
121
109
  configs: ProjectNotificationConfig[];
122
110
  };
123
111
  export type ProjectReminderRecipients = {
124
- to: ProjectNotificationRecipientLocator | ProjectNotificationRecipientLocator[];
125
- cc?: ProjectNotificationRecipientLocator | ProjectNotificationRecipientLocator[];
126
- bcc?: ProjectNotificationRecipientLocator | ProjectNotificationRecipientLocator[];
112
+ to: CLiQUserLocator | CLiQUserLocator[];
113
+ cc?: CLiQUserLocator | CLiQUserLocator[];
114
+ bcc?: CLiQUserLocator | CLiQUserLocator[];
127
115
  };
128
116
  export type TaskReminderRecipients = {
129
117
  to: TaskNotificationRecipientLocator | TaskNotificationRecipientLocator[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.149",
3
+ "version": "1.0.151",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",