@wix/crm 1.0.20 → 1.0.22

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.
Files changed (35) hide show
  1. package/build/cjs/src/contacts-v4-label.http.d.ts +35 -17
  2. package/build/cjs/src/contacts-v4-label.http.js +35 -17
  3. package/build/cjs/src/contacts-v4-label.http.js.map +1 -1
  4. package/build/cjs/src/contacts-v4-label.public.d.ts +3 -3
  5. package/build/cjs/src/contacts-v4-label.public.js +1 -1
  6. package/build/cjs/src/contacts-v4-label.public.js.map +1 -1
  7. package/build/cjs/src/contacts-v4-label.universal.d.ts +97 -59
  8. package/build/cjs/src/contacts-v4-label.universal.js +50 -21
  9. package/build/cjs/src/contacts-v4-label.universal.js.map +1 -1
  10. package/build/cjs/src/crm-tasks-v1-task.http.d.ts +4 -4
  11. package/build/cjs/src/crm-tasks-v1-task.http.js +4 -4
  12. package/build/cjs/src/crm-tasks-v1-task.public.d.ts +1 -1
  13. package/build/cjs/src/crm-tasks-v1-task.public.js +4 -4
  14. package/build/cjs/src/crm-tasks-v1-task.public.js.map +1 -1
  15. package/build/cjs/src/crm-tasks-v1-task.universal.d.ts +15 -5
  16. package/build/cjs/src/crm-tasks-v1-task.universal.js +17 -7
  17. package/build/cjs/src/crm-tasks-v1-task.universal.js.map +1 -1
  18. package/build/es/src/contacts-v4-label.http.d.ts +35 -17
  19. package/build/es/src/contacts-v4-label.http.js +35 -17
  20. package/build/es/src/contacts-v4-label.http.js.map +1 -1
  21. package/build/es/src/contacts-v4-label.public.d.ts +3 -3
  22. package/build/es/src/contacts-v4-label.public.js +1 -1
  23. package/build/es/src/contacts-v4-label.public.js.map +1 -1
  24. package/build/es/src/contacts-v4-label.universal.d.ts +97 -59
  25. package/build/es/src/contacts-v4-label.universal.js +50 -21
  26. package/build/es/src/contacts-v4-label.universal.js.map +1 -1
  27. package/build/es/src/crm-tasks-v1-task.http.d.ts +4 -4
  28. package/build/es/src/crm-tasks-v1-task.http.js +4 -4
  29. package/build/es/src/crm-tasks-v1-task.public.d.ts +1 -1
  30. package/build/es/src/crm-tasks-v1-task.public.js +3 -3
  31. package/build/es/src/crm-tasks-v1-task.public.js.map +1 -1
  32. package/build/es/src/crm-tasks-v1-task.universal.d.ts +15 -5
  33. package/build/es/src/crm-tasks-v1-task.universal.js +15 -5
  34. package/build/es/src/crm-tasks-v1-task.universal.js.map +1 -1
  35. package/package.json +2 -2
@@ -33,9 +33,9 @@ export interface ContactLabel {
33
33
  /**
34
34
  * Label type.
35
35
  *
36
- * - `SYSTEM`: The label is a default system label for the Contact List.
37
- * - `USER_DEFINED`: The label was created by a site contributor or 3rd-party app.
38
- * - `WIX_APP_DEFINED`: The label was created by a Wix app.
36
+ * - `"SYSTEM"`: The label is a default system label for the Contact List.
37
+ * - `"USER_DEFINED"`: The label was created by a site contributor or 3rd-party app.
38
+ * - `"WIX_APP_DEFINED"`: The label was created by a Wix app.
39
39
  * @readonly
40
40
  */
41
41
  labelType?: LabelType;
@@ -260,19 +260,15 @@ export interface QueryLabelsResponse {
260
260
  /**
261
261
  * Retrieves a label with a given name, or creates one if it doesn't exist.
262
262
  *
263
- * Successful calls to this endpoint always return a label,
264
- * which can be passed to subsequent requests.
263
+ * The `findOrCreateLabel()` function returns a Promise that resolves when the specified label is found or created.
265
264
  *
266
- * For example, in the Contacts API,
267
- * [Label Contact](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/label-contact) and
268
- * [Unlabel Contact](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/unlabel-contact)
269
- * requests will fail if you include a nonexistant label.
270
- * To ensure successful calls, you can call this endpoint first,
271
- * and then use the response in the label and unlabel requests.
265
+ * Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
266
+ *
267
+ * To find an existing label without potentially creating a new one, use [`getLabel()`](#getlabel) or [`queryLabels()`](#querylabels).
268
+ *
269
+ * > **Note:**
270
+ * > Only visitors with **Manage Contacts** permissions can run this function.
272
271
  *
273
- * To find an existing label without potentially creating a new one, use
274
- * [Get Label](https://dev.wix.com/api/rest/contacts/labels/get-label) or
275
- * [List Labels](https://dev.wix.com/api/rest/contacts/labels/list-labels).
276
272
  *
277
273
  * This function is not a universal function and runs only on the backend.
278
274
  * @param displayName - Display name to retrieve or create.
@@ -284,12 +280,19 @@ export interface QueryLabelsResponse {
284
280
  * @public
285
281
  * @documentationMaturity preview
286
282
  * @requiredField displayName
283
+ * @param options - Language options.
287
284
  * @permissionScope Manage Contact Labels
285
+ * @applicableIdentity APP
288
286
  * @returns Label that was found or created.
289
287
  */
290
288
  export declare function findOrCreateLabel(displayName: string, options?: FindOrCreateLabelOptions): Promise<FindOrCreateLabelResponse>;
291
289
  export interface FindOrCreateLabelOptions {
292
- /** Language for localization. */
290
+ /**
291
+ * Language for localization.
292
+ *
293
+ * 2-letter language code in
294
+ * [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
295
+ */
293
296
  language?: string | null;
294
297
  }
295
298
  /**
@@ -303,73 +306,108 @@ export interface FindOrCreateLabelOptions {
303
306
  * @public
304
307
  * @documentationMaturity preview
305
308
  * @requiredField key
306
- * @requiredField options.label.displayName
309
+ * @requiredField label
310
+ * @requiredField label.displayName
311
+ * @param options - Language options.
307
312
  * @permissionScope Manage Contact Labels
308
- * @returns Updated label.
313
+ * @applicableIdentity APP
314
+ * @returns Renames a label.
315
+ *
316
+ * The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
317
+ *
318
+ * >**Note:**
319
+ * > Only visitors with **Manage Contacts** permissions can run this function.
309
320
  */
310
- export declare function renameLabel(key: string, options?: RenameLabelOptions): Promise<ContactLabel>;
321
+ export declare function renameLabel(key: string, label: RenameLabel, options?: RenameLabelOptions): Promise<ContactLabel>;
322
+ export interface RenameLabel {
323
+ /**
324
+ * Label namespace.
325
+ *
326
+ * Labels created by site contributors or 3rd-party apps
327
+ * are automatically assigned to the `custom` namespace.
328
+ * @readonly
329
+ */
330
+ namespace?: string | null;
331
+ /**
332
+ * Display name for the namespace,
333
+ * used to organize the list of labels in the site Dashboard.
334
+ * @readonly
335
+ */
336
+ namespaceDisplayName?: string | null;
337
+ /** Label display name shown in the Dashboard. */
338
+ displayName?: string;
339
+ /**
340
+ * Label type.
341
+ *
342
+ * - `"SYSTEM"`: The label is a default system label for the Contact List.
343
+ * - `"USER_DEFINED"`: The label was created by a site contributor or 3rd-party app.
344
+ * - `"WIX_APP_DEFINED"`: The label was created by a Wix app.
345
+ * @readonly
346
+ */
347
+ labelType?: LabelType;
348
+ /**
349
+ * Date and time the label was created.
350
+ * @readonly
351
+ */
352
+ _createdDate?: Date;
353
+ /**
354
+ * Date and time the label was last updated.
355
+ * @readonly
356
+ */
357
+ _updatedDate?: Date;
358
+ }
311
359
  export interface RenameLabelOptions {
312
- label: {
313
- /**
314
- * Label namespace.
315
- *
316
- * Labels created by site contributors or 3rd-party apps
317
- * are automatically assigned to the `custom` namespace.
318
- * @readonly
319
- */
320
- namespace?: string | null;
321
- /**
322
- * Display name for the namespace,
323
- * used to organize the list of labels in the site Dashboard.
324
- * @readonly
325
- */
326
- namespaceDisplayName?: string | null;
327
- /** Label display name shown in the Dashboard. */
328
- displayName?: string;
329
- /**
330
- * Label type.
331
- *
332
- * - `SYSTEM`: The label is a default system label for the Contact List.
333
- * - `USER_DEFINED`: The label was created by a site contributor or 3rd-party app.
334
- * - `WIX_APP_DEFINED`: The label was created by a Wix app.
335
- * @readonly
336
- */
337
- labelType?: LabelType;
338
- /**
339
- * Date and time the label was created.
340
- * @readonly
341
- */
342
- _createdDate?: Date;
343
- /**
344
- * Date and time the label was last updated.
345
- * @readonly
346
- */
347
- _updatedDate?: Date;
348
- };
349
- /** Language for localization. */
360
+ /**
361
+ * Language for localization.
362
+ *
363
+ * 2-letter language code in
364
+ * [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
365
+ */
350
366
  language?: string | null;
351
367
  }
352
368
  /**
353
369
  * Deletes a label from the site and removes it from contacts it applies to.
354
370
  *
371
+ * The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
372
+ *
373
+ * > **Note:**
374
+ * > Only visitors with **Manage Contacts** permissions can run this function.
375
+ *
376
+ *
355
377
  * This function is not a universal function and runs only on the backend.
356
378
  * @param key - Label key to delete.
357
379
  * @public
358
380
  * @documentationMaturity preview
359
381
  * @requiredField key
360
382
  * @permissionScope Manage Contact Labels
383
+ * @applicableIdentity APP
361
384
  */
362
385
  export declare function deleteLabel(key: string): Promise<void>;
363
386
  /**
364
- * Retrieves a list of contact labels. Up to 1000 labels can be returned per request.
387
+ * Creates a query to retrieve a list of labels.
388
+ *
389
+ * The `queryLabels()` function builds a query to retrieve a list of labels and returns a [`LabelsQueryBuilder`](#labelsquerybuilder) object.
390
+ *
391
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](#labelsquerybuilder/find) function.
392
+ *
393
+ * You can refine the query by chaining `LabelsQueryBuilder` functions onto the query. `LabelsQueryBuilder` functions enable you to filter, sort, and control the results that `queryLabels()` returns.
394
+ *
395
+ * `queryLabels()` runs with the following `LabelsQueryBuilder` defaults, which you can override:
396
+ * - [`skip(0)`](#labelsquerybuilder/skip)
397
+ * - [`limit(50)`](#labelsquerybuilder/limit)
398
+ * - [`descending('_createdDate')`](#labelsquerybuilder/descending)
399
+ *
400
+ * >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
401
+ *
402
+ * The following `LabelsQueryBuilder` functions are supported for `queryCategories()`. For a full description of the `Labels` object, see the object returned for the [`items`](#labelsqueryresult/items) property in [`LabelsQueryResult`](#labelsqueryresult).
403
+ *
365
404
  *
366
- * For a detailed list of supported operations, see [sorting and filtering for labels](https://dev.wix.com/api/rest/contacts/labels/sort-and-filter). To learn how to query labels, see
367
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
368
405
  *
369
406
  * This function is not a universal function and runs only on the backend.
370
407
  * @public
371
408
  * @documentationMaturity preview
372
409
  * @permissionScope Manage Contact Labels
410
+ * @applicableIdentity APP
373
411
  */
374
412
  export declare function queryLabels(options?: QueryLabelsOptions): LabelsQueryBuilder;
375
413
  export interface QueryLabelsOptions {
@@ -50,19 +50,15 @@ const _updateLabelResponse = {};
50
50
  /**
51
51
  * Retrieves a label with a given name, or creates one if it doesn't exist.
52
52
  *
53
- * Successful calls to this endpoint always return a label,
54
- * which can be passed to subsequent requests.
53
+ * The `findOrCreateLabel()` function returns a Promise that resolves when the specified label is found or created.
55
54
  *
56
- * For example, in the Contacts API,
57
- * [Label Contact](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/label-contact) and
58
- * [Unlabel Contact](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/unlabel-contact)
59
- * requests will fail if you include a nonexistant label.
60
- * To ensure successful calls, you can call this endpoint first,
61
- * and then use the response in the label and unlabel requests.
55
+ * Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
56
+ *
57
+ * To find an existing label without potentially creating a new one, use [`getLabel()`](#getlabel) or [`queryLabels()`](#querylabels).
58
+ *
59
+ * > **Note:**
60
+ * > Only visitors with **Manage Contacts** permissions can run this function.
62
61
  *
63
- * To find an existing label without potentially creating a new one, use
64
- * [Get Label](https://dev.wix.com/api/rest/contacts/labels/get-label) or
65
- * [List Labels](https://dev.wix.com/api/rest/contacts/labels/list-labels).
66
62
  *
67
63
  * This function is not a universal function and runs only on the backend.
68
64
  * @param displayName - Display name to retrieve or create.
@@ -74,7 +70,9 @@ const _updateLabelResponse = {};
74
70
  * @public
75
71
  * @documentationMaturity preview
76
72
  * @requiredField displayName
73
+ * @param options - Language options.
77
74
  * @permissionScope Manage Contact Labels
75
+ * @applicableIdentity APP
78
76
  * @returns Label that was found or created.
79
77
  */
80
78
  export function findOrCreateLabel(displayName, options) {
@@ -135,20 +133,28 @@ export function findOrCreateLabel(displayName, options) {
135
133
  * @public
136
134
  * @documentationMaturity preview
137
135
  * @requiredField key
138
- * @requiredField options.label.displayName
136
+ * @requiredField label
137
+ * @requiredField label.displayName
138
+ * @param options - Language options.
139
139
  * @permissionScope Manage Contact Labels
140
- * @returns Updated label.
140
+ * @applicableIdentity APP
141
+ * @returns Renames a label.
142
+ *
143
+ * The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
144
+ *
145
+ * >**Note:**
146
+ * > Only visitors with **Manage Contacts** permissions can run this function.
141
147
  */
142
- export function renameLabel(key, options) {
148
+ export function renameLabel(key, label, options) {
143
149
  var _a, _b, _c;
144
150
  return __awaiter(this, arguments, void 0, function* () {
145
151
  const requestTransformation = {
146
- label: { '*': '$[1].label', key: '$[0]' },
147
- language: '$[1].language',
152
+ label: { '*': '$[1]', key: '$[0]' },
153
+ language: '$[2].language',
148
154
  };
149
155
  const responseTransformation = '$.label';
150
156
  // @ts-ignore
151
- const { httpClient, sideEffects } = arguments[2];
157
+ const { httpClient, sideEffects } = arguments[3];
152
158
  const { toAmbassadorRequest } = serializer({
153
159
  rootSchema: _updateLabelRequest,
154
160
  depSchemas: {},
@@ -167,7 +173,7 @@ export function renameLabel(key, options) {
167
173
  },
168
174
  customTransformation: responseTransformation,
169
175
  });
170
- const payload = toAmbassadorRequest([key, options]);
176
+ const payload = toAmbassadorRequest([key, label, options]);
171
177
  const reqOpts = ambassadorWixContactsV4Label.updateLabel(payload);
172
178
  __log(`"UpdateLabel" sending request with: ${__inspect(reqOpts)}`);
173
179
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
@@ -179,6 +185,7 @@ export function renameLabel(key, options) {
179
185
  catch (err) {
180
186
  const transformedError = transformError(err, requestTransformation, [
181
187
  'key',
188
+ 'label',
182
189
  'options',
183
190
  ]);
184
191
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
@@ -189,12 +196,19 @@ export function renameLabel(key, options) {
189
196
  /**
190
197
  * Deletes a label from the site and removes it from contacts it applies to.
191
198
  *
199
+ * The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
200
+ *
201
+ * > **Note:**
202
+ * > Only visitors with **Manage Contacts** permissions can run this function.
203
+ *
204
+ *
192
205
  * This function is not a universal function and runs only on the backend.
193
206
  * @param key - Label key to delete.
194
207
  * @public
195
208
  * @documentationMaturity preview
196
209
  * @requiredField key
197
210
  * @permissionScope Manage Contact Labels
211
+ * @applicableIdentity APP
198
212
  */
199
213
  export function deleteLabel(key) {
200
214
  var _a, _b, _c;
@@ -240,15 +254,30 @@ export function deleteLabel(key) {
240
254
  });
241
255
  }
242
256
  /**
243
- * Retrieves a list of contact labels. Up to 1000 labels can be returned per request.
257
+ * Creates a query to retrieve a list of labels.
258
+ *
259
+ * The `queryLabels()` function builds a query to retrieve a list of labels and returns a [`LabelsQueryBuilder`](#labelsquerybuilder) object.
260
+ *
261
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](#labelsquerybuilder/find) function.
262
+ *
263
+ * You can refine the query by chaining `LabelsQueryBuilder` functions onto the query. `LabelsQueryBuilder` functions enable you to filter, sort, and control the results that `queryLabels()` returns.
264
+ *
265
+ * `queryLabels()` runs with the following `LabelsQueryBuilder` defaults, which you can override:
266
+ * - [`skip(0)`](#labelsquerybuilder/skip)
267
+ * - [`limit(50)`](#labelsquerybuilder/limit)
268
+ * - [`descending('_createdDate')`](#labelsquerybuilder/descending)
269
+ *
270
+ * >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
271
+ *
272
+ * The following `LabelsQueryBuilder` functions are supported for `queryCategories()`. For a full description of the `Labels` object, see the object returned for the [`items`](#labelsqueryresult/items) property in [`LabelsQueryResult`](#labelsqueryresult).
273
+ *
244
274
  *
245
- * For a detailed list of supported operations, see [sorting and filtering for labels](https://dev.wix.com/api/rest/contacts/labels/sort-and-filter). To learn how to query labels, see
246
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
247
275
  *
248
276
  * This function is not a universal function and runs only on the backend.
249
277
  * @public
250
278
  * @documentationMaturity preview
251
279
  * @permissionScope Manage Contact Labels
280
+ * @applicableIdentity APP
252
281
  */
253
282
  export function queryLabels(options) {
254
283
  const requestTransformation = { '*': '$[1]', query: '$[0]' };
@@ -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,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,EA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G,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"}
@@ -13,7 +13,7 @@ export declare function getTask(payload: GetTaskRequest): RequestOptionsFactory<
13
13
  *
14
14
  * The `createTask()` function returns a Promise that resolves to the ID of the the newly created task after it has been successfully created.
15
15
  *
16
- * When creating a new task, the specified `TaskInfo` object must contain a `title` value.
16
+ * When creating a new task, the specified `task` object must contain a `title` value.
17
17
  */
18
18
  export declare function createTask(payload: CreateTaskRequest): RequestOptionsFactory<CreateTaskResponse>;
19
19
  /**
@@ -22,16 +22,16 @@ export declare function createTask(payload: CreateTaskRequest): RequestOptionsFa
22
22
  *
23
23
  * The `updateTaskFields()` function returns a Promise that resolves to the ID of the the updated task after it has been successfully updated.
24
24
  *
25
- * Only the properties passed in the `TaskInfo` object will be updated. All other properties will remain the same.
25
+ * Only the properties passed in the `task` object will be updated. All other properties will remain the same.
26
26
  *
27
27
  * To remove a value from the task, pass its corresponding property with a value of `null`.
28
28
  */
29
29
  export declare function updateTask(payload: UpdateTaskRequest): RequestOptionsFactory<UpdateTaskResponse>;
30
30
  /**
31
- * Sets task as completed.
31
+ * Updates completed status of task.
32
32
  *
33
33
  *
34
- * The `completeTask()` function returns a Promise that resolves to the ID of the the task after it is set as completed.
34
+ * The `updateTaskStatus()` function returns a Promise that resolves to the ID of the task whose completed status was updated.
35
35
  */
36
36
  export declare function setCompletedStatus(payload: CompleteTaskRequest): RequestOptionsFactory<CompleteTaskResponse>;
37
37
  /**
@@ -73,7 +73,7 @@ export function getTask(payload) {
73
73
  *
74
74
  * The `createTask()` function returns a Promise that resolves to the ID of the the newly created task after it has been successfully created.
75
75
  *
76
- * When creating a new task, the specified `TaskInfo` object must contain a `title` value.
76
+ * When creating a new task, the specified `task` object must contain a `title` value.
77
77
  */
78
78
  export function createTask(payload) {
79
79
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_createTaskRequest, {
@@ -105,7 +105,7 @@ export function createTask(payload) {
105
105
  *
106
106
  * The `updateTaskFields()` function returns a Promise that resolves to the ID of the the updated task after it has been successfully updated.
107
107
  *
108
- * Only the properties passed in the `TaskInfo` object will be updated. All other properties will remain the same.
108
+ * Only the properties passed in the `task` object will be updated. All other properties will remain the same.
109
109
  *
110
110
  * To remove a value from the task, pass its corresponding property with a value of `null`.
111
111
  */
@@ -134,10 +134,10 @@ export function updateTask(payload) {
134
134
  return __updateTask;
135
135
  }
136
136
  /**
137
- * Sets task as completed.
137
+ * Updates completed status of task.
138
138
  *
139
139
  *
140
- * The `completeTask()` function returns a Promise that resolves to the ID of the the task after it is set as completed.
140
+ * The `updateTaskStatus()` function returns a Promise that resolves to the ID of the task whose completed status was updated.
141
141
  */
142
142
  export function setCompletedStatus(payload) {
143
143
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_completeTaskRequest, {});
@@ -6,7 +6,7 @@ export declare const __metadata: {
6
6
  export declare function getTask(httpClient: HttpClient): (_id: string) => Promise<import("./crm-tasks-v1-task.universal").GetTaskResponse>;
7
7
  export declare function createTask(httpClient: HttpClient): (task: TaskData) => Promise<import("./crm-tasks-v1-task.universal").CreateTaskResponse>;
8
8
  export declare function updateTaskFields(httpClient: HttpClient): (_id: string, fields: string[], task: TaskData) => Promise<import("./crm-tasks-v1-task.universal").UpdateTaskResponse>;
9
- export declare function completeTask(httpClient: HttpClient): (_id: string, isCompleted: boolean | null) => Promise<import("./crm-tasks-v1-task.universal").CompleteTaskResponse>;
9
+ export declare function updateTaskStatus(httpClient: HttpClient): (_id: string, isCompleted: boolean | null) => Promise<import("./crm-tasks-v1-task.universal").CompleteTaskResponse>;
10
10
  export declare function removeTask(httpClient: HttpClient): (_id: string) => Promise<import("./crm-tasks-v1-task.universal").DeleteTaskResponse>;
11
11
  export { CreatorType, SortKey, GroupBy } from './crm-tasks-v1-task.universal';
12
12
  export { Task, Creator, Label, GetTaskRequest, GetTaskResponse, GetTasksListRequest, GetTasksListResponse, ListTasksRequest, ListTasksRequestGetByOneOf, ListParams, FilterBy, ListTasksResponse, Pagination, CountTasksRequest, CountTasksResponse, CreateTaskRequest, TaskData, CreateTaskResponse, TaskNotification, UpdateTaskRequest, UpdateTaskResponse, CompleteTaskRequest, CompleteTaskResponse, MoveTaskRequest, MoveTaskResponse, DeleteTaskRequest, DeleteTaskResponse, DeleteCompletedRequest, DeleteCompletedResponse, } from './crm-tasks-v1-task.universal';
@@ -1,4 +1,4 @@
1
- import { getTask as universalGetTask, createTask as universalCreateTask, updateTaskFields as universalUpdateTaskFields, completeTask as universalCompleteTask, removeTask as universalRemoveTask, } from './crm-tasks-v1-task.universal';
1
+ import { getTask as universalGetTask, createTask as universalCreateTask, updateTaskFields as universalUpdateTaskFields, updateTaskStatus as universalUpdateTaskStatus, removeTask as universalRemoveTask, } from './crm-tasks-v1-task.universal';
2
2
  export const __metadata = { PACKAGE_NAME: '@wix/crm' };
3
3
  export function getTask(httpClient) {
4
4
  return (_id) => universalGetTask(_id,
@@ -15,8 +15,8 @@ export function updateTaskFields(httpClient) {
15
15
  // @ts-ignore
16
16
  { httpClient });
17
17
  }
18
- export function completeTask(httpClient) {
19
- return (_id, isCompleted) => universalCompleteTask(_id, isCompleted,
18
+ export function updateTaskStatus(httpClient) {
19
+ return (_id, isCompleted) => universalUpdateTaskStatus(_id, isCompleted,
20
20
  // @ts-ignore
21
21
  { httpClient });
22
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"crm-tasks-v1-task.public.js","sourceRoot":"","sources":["../../../src/crm-tasks-v1-task.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,UAAU,IAAI,mBAAmB,EACjC,gBAAgB,IAAI,yBAAyB,EAC7C,YAAY,IAAI,qBAAqB,EACrC,UAAU,IAAI,mBAAmB,GAElC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,MAAM,UAAU,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,gBAAgB,CACd,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,IAAc,EAAE,EAAE,CACxB,mBAAmB,CACjB,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,GAAW,EAAE,MAAgB,EAAE,IAAc,EAAE,EAAE,CACvD,yBAAyB,CACvB,GAAG,EACH,MAAM,EACN,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,GAAW,EAAE,WAA2B,EAAE,EAAE,CAClD,qBAAqB,CACnB,GAAG,EACH,WAAW;IACX,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,mBAAmB,CACjB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"crm-tasks-v1-task.public.js","sourceRoot":"","sources":["../../../src/crm-tasks-v1-task.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,UAAU,IAAI,mBAAmB,EACjC,gBAAgB,IAAI,yBAAyB,EAC7C,gBAAgB,IAAI,yBAAyB,EAC7C,UAAU,IAAI,mBAAmB,GAElC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,MAAM,UAAU,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,gBAAgB,CACd,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,IAAc,EAAE,EAAE,CACxB,mBAAmB,CACjB,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,GAAW,EAAE,MAAgB,EAAE,IAAc,EAAE,EAAE,CACvD,yBAAyB,CACvB,GAAG,EACH,MAAM,EACN,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,GAAW,EAAE,WAA2B,EAAE,EAAE,CAClD,yBAAyB,CACvB,GAAG,EACH,WAAW;IACX,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,mBAAmB,CACjB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC"}
@@ -243,6 +243,8 @@ export interface DeleteCompletedResponse {
243
243
  *
244
244
  *
245
245
  * The `getTask()` function returns a Promise that resolves to the task with the given ID.
246
+ *
247
+ * This function is not a universal function and runs only on the backend.
246
248
  * @param _id - Task id
247
249
  * @public
248
250
  * @requiredField _id
@@ -254,7 +256,9 @@ export declare function getTask(_id: string): Promise<GetTaskResponse>;
254
256
  *
255
257
  * The `createTask()` function returns a Promise that resolves to the ID of the the newly created task after it has been successfully created.
256
258
  *
257
- * When creating a new task, the specified `TaskInfo` object must contain a `title` value.
259
+ * When creating a new task, the specified `task` object must contain a `title` value.
260
+ *
261
+ * This function is not a universal function and runs only on the backend.
258
262
  * @param task - Task object with the creation data
259
263
  * @public
260
264
  * @requiredField task
@@ -266,9 +270,11 @@ export declare function createTask(task: TaskData): Promise<CreateTaskResponse>;
266
270
  *
267
271
  * The `updateTaskFields()` function returns a Promise that resolves to the ID of the the updated task after it has been successfully updated.
268
272
  *
269
- * Only the properties passed in the `TaskInfo` object will be updated. All other properties will remain the same.
273
+ * Only the properties passed in the `task` object will be updated. All other properties will remain the same.
270
274
  *
271
275
  * To remove a value from the task, pass its corresponding property with a value of `null`.
276
+ *
277
+ * This function is not a universal function and runs only on the backend.
272
278
  * @param _id - Task id
273
279
  * @param fields - Set of desired fields.
274
280
  * @param task - Task object with the updated data
@@ -279,22 +285,26 @@ export declare function createTask(task: TaskData): Promise<CreateTaskResponse>;
279
285
  */
280
286
  export declare function updateTaskFields(_id: string, fields: string[], task: TaskData): Promise<UpdateTaskResponse>;
281
287
  /**
282
- * Sets task as completed.
288
+ * Updates completed status of task.
283
289
  *
284
290
  *
285
- * The `completeTask()` function returns a Promise that resolves to the ID of the the task after it is set as completed.
291
+ * The `updateTaskStatus()` function returns a Promise that resolves to the ID of the task whose completed status was updated.
292
+ *
293
+ * This function is not a universal function and runs only on the backend.
286
294
  * @param _id - Task id
287
295
  * @param isCompleted - Indication whether the task is completed
288
296
  * @public
289
297
  * @requiredField _id
290
298
  * @requiredField isCompleted
291
299
  */
292
- export declare function completeTask(_id: string, isCompleted: boolean | null): Promise<CompleteTaskResponse>;
300
+ export declare function updateTaskStatus(_id: string, isCompleted: boolean | null): Promise<CompleteTaskResponse>;
293
301
  /**
294
302
  * Removes an existing task.
295
303
  *
296
304
  *
297
305
  * The `removeTask()` function returns a Promise that resolves to the ID of the the removed task after it has been successfully removed.
306
+ *
307
+ * This function is not a universal function and runs only on the backend.
298
308
  * @param _id - Task id
299
309
  * @public
300
310
  * @requiredField _id
@@ -56,6 +56,8 @@ const _updateTaskResponse = {};
56
56
  *
57
57
  *
58
58
  * The `getTask()` function returns a Promise that resolves to the task with the given ID.
59
+ *
60
+ * This function is not a universal function and runs only on the backend.
59
61
  * @param _id - Task id
60
62
  * @public
61
63
  * @requiredField _id
@@ -109,7 +111,9 @@ export function getTask(_id) {
109
111
  *
110
112
  * The `createTask()` function returns a Promise that resolves to the ID of the the newly created task after it has been successfully created.
111
113
  *
112
- * When creating a new task, the specified `TaskInfo` object must contain a `title` value.
114
+ * When creating a new task, the specified `task` object must contain a `title` value.
115
+ *
116
+ * This function is not a universal function and runs only on the backend.
113
117
  * @param task - Task object with the creation data
114
118
  * @public
115
119
  * @requiredField task
@@ -163,9 +167,11 @@ export function createTask(task) {
163
167
  *
164
168
  * The `updateTaskFields()` function returns a Promise that resolves to the ID of the the updated task after it has been successfully updated.
165
169
  *
166
- * Only the properties passed in the `TaskInfo` object will be updated. All other properties will remain the same.
170
+ * Only the properties passed in the `task` object will be updated. All other properties will remain the same.
167
171
  *
168
172
  * To remove a value from the task, pass its corresponding property with a value of `null`.
173
+ *
174
+ * This function is not a universal function and runs only on the backend.
169
175
  * @param _id - Task id
170
176
  * @param fields - Set of desired fields.
171
177
  * @param task - Task object with the updated data
@@ -220,17 +226,19 @@ export function updateTaskFields(_id, fields, task) {
220
226
  });
221
227
  }
222
228
  /**
223
- * Sets task as completed.
229
+ * Updates completed status of task.
224
230
  *
225
231
  *
226
- * The `completeTask()` function returns a Promise that resolves to the ID of the the task after it is set as completed.
232
+ * The `updateTaskStatus()` function returns a Promise that resolves to the ID of the task whose completed status was updated.
233
+ *
234
+ * This function is not a universal function and runs only on the backend.
227
235
  * @param _id - Task id
228
236
  * @param isCompleted - Indication whether the task is completed
229
237
  * @public
230
238
  * @requiredField _id
231
239
  * @requiredField isCompleted
232
240
  */
233
- export function completeTask(_id, isCompleted) {
241
+ export function updateTaskStatus(_id, isCompleted) {
234
242
  var _a, _b, _c;
235
243
  return __awaiter(this, arguments, void 0, function* () {
236
244
  const requestTransformation = { id: '$[0]', isCompleted: '$[1]' };
@@ -279,6 +287,8 @@ export function completeTask(_id, isCompleted) {
279
287
  *
280
288
  *
281
289
  * The `removeTask()` function returns a Promise that resolves to the ID of the the removed task after it has been successfully removed.
290
+ *
291
+ * This function is not a universal function and runs only on the backend.
282
292
  * @param _id - Task id
283
293
  * @public
284
294
  * @requiredField _id