@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.
- package/build/cjs/src/contacts-v4-label.http.d.ts +35 -17
- package/build/cjs/src/contacts-v4-label.http.js +35 -17
- package/build/cjs/src/contacts-v4-label.http.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.public.d.ts +3 -3
- package/build/cjs/src/contacts-v4-label.public.js +1 -1
- package/build/cjs/src/contacts-v4-label.public.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.universal.d.ts +97 -59
- package/build/cjs/src/contacts-v4-label.universal.js +50 -21
- package/build/cjs/src/contacts-v4-label.universal.js.map +1 -1
- package/build/cjs/src/crm-tasks-v1-task.http.d.ts +4 -4
- package/build/cjs/src/crm-tasks-v1-task.http.js +4 -4
- package/build/cjs/src/crm-tasks-v1-task.public.d.ts +1 -1
- package/build/cjs/src/crm-tasks-v1-task.public.js +4 -4
- package/build/cjs/src/crm-tasks-v1-task.public.js.map +1 -1
- package/build/cjs/src/crm-tasks-v1-task.universal.d.ts +15 -5
- package/build/cjs/src/crm-tasks-v1-task.universal.js +17 -7
- package/build/cjs/src/crm-tasks-v1-task.universal.js.map +1 -1
- package/build/es/src/contacts-v4-label.http.d.ts +35 -17
- package/build/es/src/contacts-v4-label.http.js +35 -17
- package/build/es/src/contacts-v4-label.http.js.map +1 -1
- package/build/es/src/contacts-v4-label.public.d.ts +3 -3
- package/build/es/src/contacts-v4-label.public.js +1 -1
- package/build/es/src/contacts-v4-label.public.js.map +1 -1
- package/build/es/src/contacts-v4-label.universal.d.ts +97 -59
- package/build/es/src/contacts-v4-label.universal.js +50 -21
- package/build/es/src/contacts-v4-label.universal.js.map +1 -1
- package/build/es/src/crm-tasks-v1-task.http.d.ts +4 -4
- package/build/es/src/crm-tasks-v1-task.http.js +4 -4
- package/build/es/src/crm-tasks-v1-task.public.d.ts +1 -1
- package/build/es/src/crm-tasks-v1-task.public.js +3 -3
- package/build/es/src/crm-tasks-v1-task.public.js.map +1 -1
- package/build/es/src/crm-tasks-v1-task.universal.d.ts +15 -5
- package/build/es/src/crm-tasks-v1-task.universal.js +15 -5
- package/build/es/src/crm-tasks-v1-task.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -77,7 +77,7 @@ exports.getTask = getTask;
|
|
|
77
77
|
*
|
|
78
78
|
* The `createTask()` function returns a Promise that resolves to the ID of the the newly created task after it has been successfully created.
|
|
79
79
|
*
|
|
80
|
-
* When creating a new task, the specified `
|
|
80
|
+
* When creating a new task, the specified `task` object must contain a `title` value.
|
|
81
81
|
*/
|
|
82
82
|
function createTask(payload) {
|
|
83
83
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_createTaskRequest, {
|
|
@@ -110,7 +110,7 @@ exports.createTask = createTask;
|
|
|
110
110
|
*
|
|
111
111
|
* The `updateTaskFields()` function returns a Promise that resolves to the ID of the the updated task after it has been successfully updated.
|
|
112
112
|
*
|
|
113
|
-
* Only the properties passed in the `
|
|
113
|
+
* Only the properties passed in the `task` object will be updated. All other properties will remain the same.
|
|
114
114
|
*
|
|
115
115
|
* To remove a value from the task, pass its corresponding property with a value of `null`.
|
|
116
116
|
*/
|
|
@@ -140,10 +140,10 @@ function updateTask(payload) {
|
|
|
140
140
|
}
|
|
141
141
|
exports.updateTask = updateTask;
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
143
|
+
* Updates completed status of task.
|
|
144
144
|
*
|
|
145
145
|
*
|
|
146
|
-
* The `
|
|
146
|
+
* The `updateTaskStatus()` function returns a Promise that resolves to the ID of the task whose completed status was updated.
|
|
147
147
|
*/
|
|
148
148
|
function setCompletedStatus(payload) {
|
|
149
149
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.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
|
|
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GroupBy = exports.SortKey = exports.CreatorType = exports.removeTask = exports.
|
|
3
|
+
exports.GroupBy = exports.SortKey = exports.CreatorType = exports.removeTask = exports.updateTaskStatus = exports.updateTaskFields = exports.createTask = exports.getTask = exports.__metadata = void 0;
|
|
4
4
|
const crm_tasks_v1_task_universal_1 = require("./crm-tasks-v1-task.universal");
|
|
5
5
|
exports.__metadata = { PACKAGE_NAME: '@wix/crm' };
|
|
6
6
|
function getTask(httpClient) {
|
|
@@ -21,12 +21,12 @@ function updateTaskFields(httpClient) {
|
|
|
21
21
|
{ httpClient });
|
|
22
22
|
}
|
|
23
23
|
exports.updateTaskFields = updateTaskFields;
|
|
24
|
-
function
|
|
25
|
-
return (_id, isCompleted) => (0, crm_tasks_v1_task_universal_1.
|
|
24
|
+
function updateTaskStatus(httpClient) {
|
|
25
|
+
return (_id, isCompleted) => (0, crm_tasks_v1_task_universal_1.updateTaskStatus)(_id, isCompleted,
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
{ httpClient });
|
|
28
28
|
}
|
|
29
|
-
exports.
|
|
29
|
+
exports.updateTaskStatus = updateTaskStatus;
|
|
30
30
|
function removeTask(httpClient) {
|
|
31
31
|
return (_id) => (0, crm_tasks_v1_task_universal_1.removeTask)(_id,
|
|
32
32
|
// @ts-ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crm-tasks-v1-task.public.js","sourceRoot":"","sources":["../../../src/crm-tasks-v1-task.public.ts"],"names":[],"mappings":";;;AACA,+EAOuC;AAE1B,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,SAAgB,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,qCAAgB,EACd,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,0BAOC;AAED,SAAgB,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,IAAc,EAAE,EAAE,CACxB,IAAA,wCAAmB,EACjB,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,gCAOC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,GAAW,EAAE,MAAgB,EAAE,IAAc,EAAE,EAAE,CACvD,IAAA,8CAAyB,EACvB,GAAG,EACH,MAAM,EACN,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,4CASC;AAED,SAAgB,
|
|
1
|
+
{"version":3,"file":"crm-tasks-v1-task.public.js","sourceRoot":"","sources":["../../../src/crm-tasks-v1-task.public.ts"],"names":[],"mappings":";;;AACA,+EAOuC;AAE1B,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,SAAgB,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,qCAAgB,EACd,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,0BAOC;AAED,SAAgB,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,IAAc,EAAE,EAAE,CACxB,IAAA,wCAAmB,EACjB,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,gCAOC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,GAAW,EAAE,MAAgB,EAAE,IAAc,EAAE,EAAE,CACvD,IAAA,8CAAyB,EACvB,GAAG,EACH,MAAM,EACN,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,4CASC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,GAAW,EAAE,WAA2B,EAAE,EAAE,CAClD,IAAA,8CAAyB,EACvB,GAAG,EACH,WAAW;IACX,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,4CAQC;AAED,SAAgB,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,wCAAmB,EACjB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,gCAOC;AAED,6EAA8E;AAArE,0HAAA,WAAW,OAAA;AAAE,sHAAA,OAAO,OAAA;AAAE,sHAAA,OAAO,OAAA"}
|
|
@@ -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 `
|
|
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 `
|
|
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
|
-
*
|
|
288
|
+
* Updates completed status of task.
|
|
283
289
|
*
|
|
284
290
|
*
|
|
285
|
-
* The `
|
|
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
|
|
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
|
|
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.removeTask = exports.
|
|
31
|
+
exports.removeTask = exports.updateTaskStatus = exports.updateTaskFields = exports.createTask = exports.getTask = exports.GroupBy = exports.SortKey = exports.CreatorType = exports.__debug = void 0;
|
|
32
32
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
33
33
|
const ambassadorWixCrmTasksV1Task = __importStar(require("./crm-tasks-v1-task.http"));
|
|
34
34
|
let __verbose = false;
|
|
@@ -78,6 +78,8 @@ const _updateTaskResponse = {};
|
|
|
78
78
|
*
|
|
79
79
|
*
|
|
80
80
|
* The `getTask()` function returns a Promise that resolves to the task with the given ID.
|
|
81
|
+
*
|
|
82
|
+
* This function is not a universal function and runs only on the backend.
|
|
81
83
|
* @param _id - Task id
|
|
82
84
|
* @public
|
|
83
85
|
* @requiredField _id
|
|
@@ -132,7 +134,9 @@ exports.getTask = getTask;
|
|
|
132
134
|
*
|
|
133
135
|
* The `createTask()` function returns a Promise that resolves to the ID of the the newly created task after it has been successfully created.
|
|
134
136
|
*
|
|
135
|
-
* When creating a new task, the specified `
|
|
137
|
+
* When creating a new task, the specified `task` object must contain a `title` value.
|
|
138
|
+
*
|
|
139
|
+
* This function is not a universal function and runs only on the backend.
|
|
136
140
|
* @param task - Task object with the creation data
|
|
137
141
|
* @public
|
|
138
142
|
* @requiredField task
|
|
@@ -187,9 +191,11 @@ exports.createTask = createTask;
|
|
|
187
191
|
*
|
|
188
192
|
* The `updateTaskFields()` function returns a Promise that resolves to the ID of the the updated task after it has been successfully updated.
|
|
189
193
|
*
|
|
190
|
-
* Only the properties passed in the `
|
|
194
|
+
* Only the properties passed in the `task` object will be updated. All other properties will remain the same.
|
|
191
195
|
*
|
|
192
196
|
* To remove a value from the task, pass its corresponding property with a value of `null`.
|
|
197
|
+
*
|
|
198
|
+
* This function is not a universal function and runs only on the backend.
|
|
193
199
|
* @param _id - Task id
|
|
194
200
|
* @param fields - Set of desired fields.
|
|
195
201
|
* @param task - Task object with the updated data
|
|
@@ -245,17 +251,19 @@ function updateTaskFields(_id, fields, task) {
|
|
|
245
251
|
}
|
|
246
252
|
exports.updateTaskFields = updateTaskFields;
|
|
247
253
|
/**
|
|
248
|
-
*
|
|
254
|
+
* Updates completed status of task.
|
|
249
255
|
*
|
|
250
256
|
*
|
|
251
|
-
* The `
|
|
257
|
+
* The `updateTaskStatus()` function returns a Promise that resolves to the ID of the task whose completed status was updated.
|
|
258
|
+
*
|
|
259
|
+
* This function is not a universal function and runs only on the backend.
|
|
252
260
|
* @param _id - Task id
|
|
253
261
|
* @param isCompleted - Indication whether the task is completed
|
|
254
262
|
* @public
|
|
255
263
|
* @requiredField _id
|
|
256
264
|
* @requiredField isCompleted
|
|
257
265
|
*/
|
|
258
|
-
function
|
|
266
|
+
function updateTaskStatus(_id, isCompleted) {
|
|
259
267
|
var _a, _b, _c;
|
|
260
268
|
return __awaiter(this, arguments, void 0, function* () {
|
|
261
269
|
const requestTransformation = { id: '$[0]', isCompleted: '$[1]' };
|
|
@@ -299,12 +307,14 @@ function completeTask(_id, isCompleted) {
|
|
|
299
307
|
}
|
|
300
308
|
});
|
|
301
309
|
}
|
|
302
|
-
exports.
|
|
310
|
+
exports.updateTaskStatus = updateTaskStatus;
|
|
303
311
|
/**
|
|
304
312
|
* Removes an existing task.
|
|
305
313
|
*
|
|
306
314
|
*
|
|
307
315
|
* The `removeTask()` function returns a Promise that resolves to the ID of the the removed task after it has been successfully removed.
|
|
316
|
+
*
|
|
317
|
+
* This function is not a universal function and runs only on the backend.
|
|
308
318
|
* @param _id - Task id
|
|
309
319
|
* @public
|
|
310
320
|
* @requiredField _id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crm-tasks-v1-task.universal.js","sourceRoot":"","sources":["../../../src/crm-tasks-v1-task.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,sFAAwE;AAExE,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;AAEY,QAAA,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;AAoC5B,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,0BAAW,CAAA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BAAqB,EAAE;gBAClE,KAAK;aACN,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAlDD,gCAkDC"}
|
|
@@ -3,29 +3,47 @@ import { DeleteLabelRequest, DeleteLabelResponse, FindOrCreateLabelRequest, Find
|
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves a label with a given name, or creates one if it doesn't exist.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* To find an existing label without potentially creating a new one, use
|
|
17
|
-
* [Get Label](https://dev.wix.com/api/rest/contacts/labels/get-label) or
|
|
18
|
-
* [List Labels](https://dev.wix.com/api/rest/contacts/labels/list-labels).
|
|
6
|
+
* The `findOrCreateLabel()` function returns a Promise that resolves when the specified label is found or created.
|
|
7
|
+
*
|
|
8
|
+
* Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
|
|
9
|
+
*
|
|
10
|
+
* To find an existing label without potentially creating a new one, use [`getLabel()`](#getlabel) or [`queryLabels()`](#querylabels).
|
|
11
|
+
*
|
|
12
|
+
* > **Note:**
|
|
13
|
+
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
14
|
+
*
|
|
19
15
|
*/
|
|
20
16
|
export declare function findOrCreateLabel(payload: FindOrCreateLabelRequest): RequestOptionsFactory<FindOrCreateLabelResponse>;
|
|
21
17
|
/** Updates a label's specified properties. */
|
|
22
18
|
export declare function updateLabel(payload: UpdateLabelRequest): RequestOptionsFactory<UpdateLabelResponse>;
|
|
23
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Deletes a label from the site and removes it from contacts it applies to.
|
|
21
|
+
*
|
|
22
|
+
* The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
|
|
23
|
+
*
|
|
24
|
+
* > **Note:**
|
|
25
|
+
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
24
28
|
export declare function deleteLabel(payload: DeleteLabelRequest): RequestOptionsFactory<DeleteLabelResponse>;
|
|
25
29
|
/**
|
|
26
|
-
*
|
|
30
|
+
* Creates a query to retrieve a list of labels.
|
|
31
|
+
*
|
|
32
|
+
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a [`LabelsQueryBuilder`](#labelsquerybuilder) object.
|
|
33
|
+
*
|
|
34
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](#labelsquerybuilder/find) function.
|
|
35
|
+
*
|
|
36
|
+
* 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.
|
|
37
|
+
*
|
|
38
|
+
* `queryLabels()` runs with the following `LabelsQueryBuilder` defaults, which you can override:
|
|
39
|
+
* - [`skip(0)`](#labelsquerybuilder/skip)
|
|
40
|
+
* - [`limit(50)`](#labelsquerybuilder/limit)
|
|
41
|
+
* - [`descending('_createdDate')`](#labelsquerybuilder/descending)
|
|
42
|
+
*
|
|
43
|
+
* >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
|
|
44
|
+
*
|
|
45
|
+
* 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).
|
|
46
|
+
*
|
|
27
47
|
*
|
|
28
|
-
* 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
|
|
29
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
30
48
|
*/
|
|
31
49
|
export declare function queryLabels(payload: QueryLabelsRequest): RequestOptionsFactory<QueryLabelsResponse>;
|
|
@@ -63,19 +63,15 @@ function resolveComWixpressContactsLabelsV4ContactLabelsServiceV4Url(opts) {
|
|
|
63
63
|
/**
|
|
64
64
|
* Retrieves a label with a given name, or creates one if it doesn't exist.
|
|
65
65
|
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* [
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* To find an existing label without potentially creating a new one, use
|
|
77
|
-
* [Get Label](https://dev.wix.com/api/rest/contacts/labels/get-label) or
|
|
78
|
-
* [List Labels](https://dev.wix.com/api/rest/contacts/labels/list-labels).
|
|
66
|
+
* The `findOrCreateLabel()` function returns a Promise that resolves when the specified label is found or created.
|
|
67
|
+
*
|
|
68
|
+
* Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
|
|
69
|
+
*
|
|
70
|
+
* To find an existing label without potentially creating a new one, use [`getLabel()`](#getlabel) or [`queryLabels()`](#querylabels).
|
|
71
|
+
*
|
|
72
|
+
* > **Note:**
|
|
73
|
+
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
74
|
+
*
|
|
79
75
|
*/
|
|
80
76
|
export function findOrCreateLabel(payload) {
|
|
81
77
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_findOrCreateLabelRequest, {});
|
|
@@ -128,7 +124,15 @@ export function updateLabel(payload) {
|
|
|
128
124
|
__updateLabel.fromReq = fromReq;
|
|
129
125
|
return __updateLabel;
|
|
130
126
|
}
|
|
131
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* Deletes a label from the site and removes it from contacts it applies to.
|
|
129
|
+
*
|
|
130
|
+
* The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
|
|
131
|
+
*
|
|
132
|
+
* > **Note:**
|
|
133
|
+
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
132
136
|
export function deleteLabel(payload) {
|
|
133
137
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_deleteLabelRequest, {});
|
|
134
138
|
const { fromJSON: fromRes } = serializer(_deleteLabelResponse, {});
|
|
@@ -152,10 +156,24 @@ export function deleteLabel(payload) {
|
|
|
152
156
|
return __deleteLabel;
|
|
153
157
|
}
|
|
154
158
|
/**
|
|
155
|
-
*
|
|
159
|
+
* Creates a query to retrieve a list of labels.
|
|
160
|
+
*
|
|
161
|
+
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a [`LabelsQueryBuilder`](#labelsquerybuilder) object.
|
|
162
|
+
*
|
|
163
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](#labelsquerybuilder/find) function.
|
|
164
|
+
*
|
|
165
|
+
* 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.
|
|
166
|
+
*
|
|
167
|
+
* `queryLabels()` runs with the following `LabelsQueryBuilder` defaults, which you can override:
|
|
168
|
+
* - [`skip(0)`](#labelsquerybuilder/skip)
|
|
169
|
+
* - [`limit(50)`](#labelsquerybuilder/limit)
|
|
170
|
+
* - [`descending('_createdDate')`](#labelsquerybuilder/descending)
|
|
171
|
+
*
|
|
172
|
+
* >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
|
|
173
|
+
*
|
|
174
|
+
* 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).
|
|
175
|
+
*
|
|
156
176
|
*
|
|
157
|
-
* 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
|
|
158
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
159
177
|
*/
|
|
160
178
|
export function queryLabels(payload) {
|
|
161
179
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryLabelsRequest, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-label.http.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAchD,MAAM,aAAa,GAAG;IACpB,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AACF,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,0BAA0B,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AAC9D,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC;AACzD,MAAM,mBAAmB,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AACvD,MAAM,oBAAoB,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AAExD,SAAS,2DAA2D,CAClE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,YAAY;aACvB;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,YAAY;aACvB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,YAAY;aACvB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,YAAY;aACvB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,YAAY;aACvB;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,YAAY;aACvB;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"contacts-v4-label.http.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAchD,MAAM,aAAa,GAAG;IACpB,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AACF,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,0BAA0B,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AAC9D,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC;AACzD,MAAM,mBAAmB,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AACvD,MAAM,oBAAoB,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AAExD,SAAS,2DAA2D,CAClE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,E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AEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;IAEhC,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { FindOrCreateLabelOptions, QueryLabelsOptions, RenameLabelOptions } from './contacts-v4-label.universal';
|
|
2
|
+
import { RenameLabel, FindOrCreateLabelOptions, QueryLabelsOptions, RenameLabelOptions } from './contacts-v4-label.universal';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
6
6
|
export declare function findOrCreateLabel(httpClient: HttpClient): (displayName: string, options?: FindOrCreateLabelOptions | undefined) => Promise<import("./contacts-v4-label.universal").FindOrCreateLabelResponse>;
|
|
7
|
-
export declare function renameLabel(httpClient: HttpClient): (key: string, options?: RenameLabelOptions | undefined) => Promise<import("./contacts-v4-label.universal").ContactLabel>;
|
|
7
|
+
export declare function renameLabel(httpClient: HttpClient): (key: string, label: RenameLabel, options?: RenameLabelOptions | undefined) => Promise<import("./contacts-v4-label.universal").ContactLabel>;
|
|
8
8
|
export declare function deleteLabel(httpClient: HttpClient): (key: string) => Promise<void>;
|
|
9
9
|
export declare function queryLabels(httpClient: HttpClient): (options?: QueryLabelsOptions | undefined) => import("./contacts-v4-label.universal").LabelsQueryBuilder;
|
|
10
10
|
export { LabelType, SortOrder } from './contacts-v4-label.universal';
|
|
11
|
-
export { ContactLabel, ListLabelsRequest, Sorting, Paging, ListLabelsResponse, PagingMetadata, FindOrCreateLabelRequest, FindOrCreateLabelResponse, LabelsQuotaReached, ListLabelNamespacesRequest, ListLabelNamespacesResponse, ContactLabelNamespace, GetLabelRequest, GetLabelResponse, GetLabelByLegacyIdRequest, GetLabelByLegacyIdResponse, UpdateLabelRequest, UpdateLabelResponse, DeleteLabelRequest, DeleteLabelResponse, PurgeRequest, PurgeResponse, GdprListRequest, GdprListResponse, QueryLabelsRequest, Query, QueryLabelsResponse, FindOrCreateLabelOptions, RenameLabelOptions, QueryLabelsOptions, LabelsQueryResult, LabelsQueryBuilder, } from './contacts-v4-label.universal';
|
|
11
|
+
export { ContactLabel, ListLabelsRequest, Sorting, Paging, ListLabelsResponse, PagingMetadata, FindOrCreateLabelRequest, FindOrCreateLabelResponse, LabelsQuotaReached, ListLabelNamespacesRequest, ListLabelNamespacesResponse, ContactLabelNamespace, GetLabelRequest, GetLabelResponse, GetLabelByLegacyIdRequest, GetLabelByLegacyIdResponse, UpdateLabelRequest, UpdateLabelResponse, DeleteLabelRequest, DeleteLabelResponse, PurgeRequest, PurgeResponse, GdprListRequest, GdprListResponse, QueryLabelsRequest, Query, QueryLabelsResponse, FindOrCreateLabelOptions, RenameLabel, RenameLabelOptions, QueryLabelsOptions, LabelsQueryResult, LabelsQueryBuilder, } from './contacts-v4-label.universal';
|
|
@@ -6,7 +6,7 @@ export function findOrCreateLabel(httpClient) {
|
|
|
6
6
|
{ httpClient });
|
|
7
7
|
}
|
|
8
8
|
export function renameLabel(httpClient) {
|
|
9
|
-
return (key, options) => universalRenameLabel(key, options,
|
|
9
|
+
return (key, label, options) => universalRenameLabel(key, label, options,
|
|
10
10
|
// @ts-ignore
|
|
11
11
|
{ httpClient });
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-label.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,IAAI,0BAA0B,EAC/C,WAAW,IAAI,oBAAoB,EACnC,WAAW,IAAI,oBAAoB,EACnC,WAAW,IAAI,oBAAoB,
|
|
1
|
+
{"version":3,"file":"contacts-v4-label.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,IAAI,0BAA0B,EAC/C,WAAW,IAAI,oBAAoB,EACnC,WAAW,IAAI,oBAAoB,EACnC,WAAW,IAAI,oBAAoB,GAKpC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,MAAM,UAAU,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CAAC,WAAmB,EAAE,OAAkC,EAAE,EAAE,CACjE,0BAA0B,CACxB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAW,EAAE,KAAkB,EAAE,OAA4B,EAAE,EAAE,CACvE,oBAAoB,CAClB,GAAG,EACH,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,oBAAoB,CAClB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,OAA4B,EAAE,EAAE,CACtC,oBAAoB,CAClB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC"}
|