@wix/crm 1.0.27 → 1.0.28
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.
- package/build/cjs/src/contacts-v4-extended-field.http.d.ts +41 -12
- package/build/cjs/src/contacts-v4-extended-field.http.js +41 -12
- package/build/cjs/src/contacts-v4-extended-field.http.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.types.d.ts +1 -1
- package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +73 -65
- package/build/cjs/src/contacts-v4-extended-field.universal.js +44 -24
- package/build/cjs/src/contacts-v4-extended-field.universal.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.universal.d.ts +4 -24
- package/build/cjs/src/contacts-v4-label.universal.js +0 -4
- package/build/cjs/src/contacts-v4-label.universal.js.map +1 -1
- package/build/cjs/src/crm-tasks-v1-task.universal.d.ts +32 -32
- package/build/cjs/src/crm-tasks-v1-task.universal.js +4 -4
- package/build/es/src/contacts-v4-extended-field.http.d.ts +41 -12
- package/build/es/src/contacts-v4-extended-field.http.js +41 -12
- package/build/es/src/contacts-v4-extended-field.http.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field.types.d.ts +1 -1
- package/build/es/src/contacts-v4-extended-field.universal.d.ts +73 -65
- package/build/es/src/contacts-v4-extended-field.universal.js +44 -24
- package/build/es/src/contacts-v4-extended-field.universal.js.map +1 -1
- package/build/es/src/contacts-v4-label.universal.d.ts +4 -24
- package/build/es/src/contacts-v4-label.universal.js +0 -4
- package/build/es/src/contacts-v4-label.universal.js.map +1 -1
- package/build/es/src/crm-tasks-v1-task.universal.d.ts +32 -32
- package/build/es/src/crm-tasks-v1-task.universal.js +4 -4
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-label.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCA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/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEhC
|
|
1
|
+
{"version":3,"file":"contacts-v4-label.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,4BAA4B,MAAM,0BAA0B,CAAC;AACzE,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAiD5B,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,kDAAkD;IAClD,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;IAC7B,gDAAmC,CAAA;AACrC,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AA6BD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAoMD,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,M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BACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;gBACjC,OAAO,MAAM,CAAC;aACf;YAAC,OAAO,GAAG,EAAE;gBACZ,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;gBAC5B,MAAM,GAAG,CAAC;aACX;QACH,CAAC,CAAA;QACD,kBAAkB,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC;QACjE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,qCAAqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -6,11 +6,11 @@ export declare const __debug: {
|
|
|
6
6
|
};
|
|
7
7
|
export interface Task {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The ID of the task. Should not be passed on creation.
|
|
10
10
|
* @readonly
|
|
11
11
|
*/
|
|
12
12
|
taskId?: string;
|
|
13
|
-
/** The
|
|
13
|
+
/** The ID of the creator of the task. */
|
|
14
14
|
creator?: Creator;
|
|
15
15
|
/** Task's title. */
|
|
16
16
|
title?: string;
|
|
@@ -18,18 +18,18 @@ export interface Task {
|
|
|
18
18
|
isCompleted?: boolean;
|
|
19
19
|
/** Due Date fot the task. */
|
|
20
20
|
dueAt?: Date;
|
|
21
|
-
/** Assigned
|
|
21
|
+
/** Assigned contact ID to the task */
|
|
22
22
|
contactId?: string;
|
|
23
23
|
/** Task's version. Each change on the task will magnify it. */
|
|
24
24
|
version?: number;
|
|
25
|
-
/** Assigned
|
|
25
|
+
/** Assigned Wix user ID to the task. */
|
|
26
26
|
assigneeId?: string;
|
|
27
27
|
/** The labels assigned to the task */
|
|
28
28
|
labels?: Label[];
|
|
29
29
|
}
|
|
30
30
|
export interface Creator {
|
|
31
31
|
/**
|
|
32
|
-
* Creator
|
|
32
|
+
* Creator ID.
|
|
33
33
|
* @readonly
|
|
34
34
|
*/
|
|
35
35
|
_id?: string;
|
|
@@ -42,7 +42,7 @@ export declare enum CreatorType {
|
|
|
42
42
|
}
|
|
43
43
|
export interface Label {
|
|
44
44
|
/**
|
|
45
|
-
* The
|
|
45
|
+
* The ID of the label. Should not be passed on creation.
|
|
46
46
|
* @readonly
|
|
47
47
|
*/
|
|
48
48
|
labelId?: string;
|
|
@@ -52,7 +52,7 @@ export interface Label {
|
|
|
52
52
|
color?: string;
|
|
53
53
|
}
|
|
54
54
|
export interface GetTaskRequest {
|
|
55
|
-
/** Task
|
|
55
|
+
/** Task ID. */
|
|
56
56
|
_id: string;
|
|
57
57
|
}
|
|
58
58
|
export interface GetTaskResponse {
|
|
@@ -60,7 +60,7 @@ export interface GetTaskResponse {
|
|
|
60
60
|
task?: Task;
|
|
61
61
|
}
|
|
62
62
|
export interface GetTasksListRequest {
|
|
63
|
-
/** Assigned contact
|
|
63
|
+
/** Assigned contact ID to the task - Optional. */
|
|
64
64
|
contactId?: string;
|
|
65
65
|
/** Sort key. */
|
|
66
66
|
key?: SortKey;
|
|
@@ -99,7 +99,7 @@ export interface ListParams {
|
|
|
99
99
|
offset?: number;
|
|
100
100
|
}
|
|
101
101
|
export interface FilterBy {
|
|
102
|
-
/** List of contact
|
|
102
|
+
/** List of contact IDs. */
|
|
103
103
|
contactIds?: string[];
|
|
104
104
|
/** From due date */
|
|
105
105
|
fromDate?: Date;
|
|
@@ -107,15 +107,15 @@ export interface FilterBy {
|
|
|
107
107
|
toDate?: Date;
|
|
108
108
|
/** Is completed status */
|
|
109
109
|
isCompleted?: boolean | null;
|
|
110
|
-
/** Assignee
|
|
110
|
+
/** Assignee ID. */
|
|
111
111
|
assigneeId?: string | null;
|
|
112
112
|
/** Task title */
|
|
113
113
|
title?: string | null;
|
|
114
114
|
/** Task title contains substring */
|
|
115
115
|
subtitle?: string | null;
|
|
116
|
-
/** List of tasks
|
|
116
|
+
/** List of tasks IDs. */
|
|
117
117
|
tasksIds?: string[];
|
|
118
|
-
/** List of labels
|
|
118
|
+
/** List of labels IDs. */
|
|
119
119
|
labelIds?: string[];
|
|
120
120
|
}
|
|
121
121
|
export interface ListTasksResponse {
|
|
@@ -159,23 +159,23 @@ export interface TaskData {
|
|
|
159
159
|
title?: string;
|
|
160
160
|
/** Due Date fot the task. */
|
|
161
161
|
dueAt?: Date;
|
|
162
|
-
/** Assigned
|
|
162
|
+
/** Assigned contact ID to the task. */
|
|
163
163
|
contactId?: string;
|
|
164
|
-
/** Assigned
|
|
164
|
+
/** Assigned assignee ID to the task. */
|
|
165
165
|
assigneeId?: string;
|
|
166
|
-
/** The label
|
|
166
|
+
/** The label IDs assigned to the task. */
|
|
167
167
|
labelIds?: string[];
|
|
168
168
|
}
|
|
169
169
|
export interface CreateTaskResponse {
|
|
170
|
-
/** Task
|
|
170
|
+
/** Task ID. */
|
|
171
171
|
_id?: string;
|
|
172
172
|
/** The task version. Incremented on each change */
|
|
173
173
|
version?: number;
|
|
174
174
|
}
|
|
175
175
|
export interface TaskNotification {
|
|
176
|
-
/**
|
|
176
|
+
/** Instance ID of the task in Tasks App. */
|
|
177
177
|
instanceId?: string;
|
|
178
|
-
/** Task
|
|
178
|
+
/** Task ID. */
|
|
179
179
|
taskId?: string;
|
|
180
180
|
/** The changed task */
|
|
181
181
|
task?: Task;
|
|
@@ -185,7 +185,7 @@ export interface TaskNotification {
|
|
|
185
185
|
changes?: string[];
|
|
186
186
|
}
|
|
187
187
|
export interface UpdateTaskRequest {
|
|
188
|
-
/** Task
|
|
188
|
+
/** Task ID. */
|
|
189
189
|
_id: string;
|
|
190
190
|
/** Set of desired fields. */
|
|
191
191
|
fields?: string[];
|
|
@@ -193,41 +193,41 @@ export interface UpdateTaskRequest {
|
|
|
193
193
|
task?: TaskData;
|
|
194
194
|
}
|
|
195
195
|
export interface UpdateTaskResponse {
|
|
196
|
-
/** Task
|
|
196
|
+
/** Task ID. */
|
|
197
197
|
_id?: string;
|
|
198
198
|
/** The task version. Incremented on each change */
|
|
199
199
|
version?: number;
|
|
200
200
|
}
|
|
201
201
|
export interface CompleteTaskRequest {
|
|
202
|
-
/** Task
|
|
202
|
+
/** Task ID. */
|
|
203
203
|
_id: string;
|
|
204
204
|
/** Indication whether the task is completed */
|
|
205
205
|
isCompleted?: boolean | null;
|
|
206
206
|
}
|
|
207
207
|
export interface CompleteTaskResponse {
|
|
208
|
-
/** Task
|
|
208
|
+
/** Task ID. */
|
|
209
209
|
_id?: string;
|
|
210
210
|
/** The task version. Incremented on each change */
|
|
211
211
|
version?: number;
|
|
212
212
|
}
|
|
213
213
|
export interface MoveTaskRequest {
|
|
214
|
-
/** Task
|
|
214
|
+
/** Task ID. */
|
|
215
215
|
_id?: string;
|
|
216
|
-
/** Task
|
|
216
|
+
/** Task ID of the task positioned before. */
|
|
217
217
|
taskBeforeId?: string;
|
|
218
218
|
}
|
|
219
219
|
export interface MoveTaskResponse {
|
|
220
|
-
/** Task
|
|
220
|
+
/** Task ID. */
|
|
221
221
|
_id?: string;
|
|
222
222
|
/** The task version. Incremented on each change */
|
|
223
223
|
version?: number;
|
|
224
224
|
}
|
|
225
225
|
export interface DeleteTaskRequest {
|
|
226
|
-
/** Task
|
|
226
|
+
/** Task ID. */
|
|
227
227
|
_id: string;
|
|
228
228
|
}
|
|
229
229
|
export interface DeleteTaskResponse {
|
|
230
|
-
/** Task
|
|
230
|
+
/** Task ID. */
|
|
231
231
|
_id?: string;
|
|
232
232
|
/** The task version. Incremented on each change */
|
|
233
233
|
version?: number;
|
|
@@ -235,7 +235,7 @@ export interface DeleteTaskResponse {
|
|
|
235
235
|
export interface DeleteCompletedRequest {
|
|
236
236
|
}
|
|
237
237
|
export interface DeleteCompletedResponse {
|
|
238
|
-
/** Array of deleted
|
|
238
|
+
/** Array of deleted task IDs. */
|
|
239
239
|
ids?: string[];
|
|
240
240
|
}
|
|
241
241
|
/**
|
|
@@ -245,9 +245,9 @@ export interface DeleteCompletedResponse {
|
|
|
245
245
|
* The `getTask()` function returns a Promise that resolves to the task with the given ID.
|
|
246
246
|
*
|
|
247
247
|
* This function is not a universal function and runs only on the backend.
|
|
248
|
-
* @param _id - Task id
|
|
249
248
|
* @public
|
|
250
249
|
* @requiredField _id
|
|
250
|
+
* @param _id - Task ID.
|
|
251
251
|
*/
|
|
252
252
|
export declare function getTask(_id: string): Promise<GetTaskResponse>;
|
|
253
253
|
/**
|
|
@@ -275,13 +275,13 @@ export declare function createTask(task: TaskData): Promise<CreateTaskResponse>;
|
|
|
275
275
|
* To remove a value from the task, pass its corresponding property with a value of `null`.
|
|
276
276
|
*
|
|
277
277
|
* This function is not a universal function and runs only on the backend.
|
|
278
|
-
* @param _id - Task id
|
|
279
278
|
* @param fields - Set of desired fields.
|
|
280
279
|
* @param task - Task object with the updated data
|
|
281
280
|
* @public
|
|
282
281
|
* @requiredField _id
|
|
283
282
|
* @requiredField fields
|
|
284
283
|
* @requiredField task
|
|
284
|
+
* @param _id - Task ID.
|
|
285
285
|
*/
|
|
286
286
|
export declare function updateTaskFields(_id: string, fields: string[], task: TaskData): Promise<UpdateTaskResponse>;
|
|
287
287
|
/**
|
|
@@ -291,12 +291,12 @@ export declare function updateTaskFields(_id: string, fields: string[], task: Ta
|
|
|
291
291
|
* The `updateTaskStatus()` function returns a Promise that resolves to the ID of the task whose completed status was updated.
|
|
292
292
|
*
|
|
293
293
|
* This function is not a universal function and runs only on the backend.
|
|
294
|
-
* @param _id - Task id
|
|
295
294
|
* @param isCompleted - Indication whether the task is completed
|
|
296
295
|
* @public
|
|
297
296
|
* @documentationMaturity preview
|
|
298
297
|
* @requiredField _id
|
|
299
298
|
* @requiredField isCompleted
|
|
299
|
+
* @param _id - Task ID.
|
|
300
300
|
*/
|
|
301
301
|
export declare function updateTaskStatus(_id: string, isCompleted: boolean | null): Promise<CompleteTaskResponse>;
|
|
302
302
|
/**
|
|
@@ -306,8 +306,8 @@ export declare function updateTaskStatus(_id: string, isCompleted: boolean | nul
|
|
|
306
306
|
* The `removeTask()` function returns a Promise that resolves to the ID of the the removed task after it has been successfully removed.
|
|
307
307
|
*
|
|
308
308
|
* This function is not a universal function and runs only on the backend.
|
|
309
|
-
* @param _id - Task id
|
|
310
309
|
* @public
|
|
311
310
|
* @requiredField _id
|
|
311
|
+
* @param _id - Task ID.
|
|
312
312
|
*/
|
|
313
313
|
export declare function removeTask(_id: string): Promise<DeleteTaskResponse>;
|
|
@@ -58,9 +58,9 @@ const _updateTaskResponse = {};
|
|
|
58
58
|
* The `getTask()` function returns a Promise that resolves to the task with the given ID.
|
|
59
59
|
*
|
|
60
60
|
* This function is not a universal function and runs only on the backend.
|
|
61
|
-
* @param _id - Task id
|
|
62
61
|
* @public
|
|
63
62
|
* @requiredField _id
|
|
63
|
+
* @param _id - Task ID.
|
|
64
64
|
*/
|
|
65
65
|
export function getTask(_id) {
|
|
66
66
|
var _a, _b, _c;
|
|
@@ -172,13 +172,13 @@ export function createTask(task) {
|
|
|
172
172
|
* To remove a value from the task, pass its corresponding property with a value of `null`.
|
|
173
173
|
*
|
|
174
174
|
* This function is not a universal function and runs only on the backend.
|
|
175
|
-
* @param _id - Task id
|
|
176
175
|
* @param fields - Set of desired fields.
|
|
177
176
|
* @param task - Task object with the updated data
|
|
178
177
|
* @public
|
|
179
178
|
* @requiredField _id
|
|
180
179
|
* @requiredField fields
|
|
181
180
|
* @requiredField task
|
|
181
|
+
* @param _id - Task ID.
|
|
182
182
|
*/
|
|
183
183
|
export function updateTaskFields(_id, fields, task) {
|
|
184
184
|
var _a, _b, _c;
|
|
@@ -232,12 +232,12 @@ export function updateTaskFields(_id, fields, task) {
|
|
|
232
232
|
* The `updateTaskStatus()` function returns a Promise that resolves to the ID of the task whose completed status was updated.
|
|
233
233
|
*
|
|
234
234
|
* This function is not a universal function and runs only on the backend.
|
|
235
|
-
* @param _id - Task id
|
|
236
235
|
* @param isCompleted - Indication whether the task is completed
|
|
237
236
|
* @public
|
|
238
237
|
* @documentationMaturity preview
|
|
239
238
|
* @requiredField _id
|
|
240
239
|
* @requiredField isCompleted
|
|
240
|
+
* @param _id - Task ID.
|
|
241
241
|
*/
|
|
242
242
|
export function updateTaskStatus(_id, isCompleted) {
|
|
243
243
|
var _a, _b, _c;
|
|
@@ -290,9 +290,9 @@ export function updateTaskStatus(_id, isCompleted) {
|
|
|
290
290
|
* The `removeTask()` function returns a Promise that resolves to the ID of the the removed task after it has been successfully removed.
|
|
291
291
|
*
|
|
292
292
|
* This function is not a universal function and runs only on the backend.
|
|
293
|
-
* @param _id - Task id
|
|
294
293
|
* @public
|
|
295
294
|
* @requiredField _id
|
|
295
|
+
* @param _id - Task ID.
|
|
296
296
|
*/
|
|
297
297
|
export function removeTask(_id) {
|
|
298
298
|
var _a, _b, _c;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/crm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "82fe1467dfe85af33a53d42efd88d3f9850e0b7d210918e0b74c489e"
|
|
37
37
|
}
|