@wix/crm 1.0.40 → 1.0.41
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/index.d.ts +1 -1
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +25 -5
- package/build/cjs/src/contacts-v4-extended-field.universal.js +5 -1
- package/build/cjs/src/contacts-v4-extended-field.universal.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.http.d.ts +8 -2
- package/build/cjs/src/contacts-v4-label.http.js +34 -2
- package/build/cjs/src/contacts-v4-label.http.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.public.d.ts +3 -2
- package/build/cjs/src/contacts-v4-label.public.js +7 -1
- package/build/cjs/src/contacts-v4-label.public.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.types.d.ts +1 -1
- package/build/cjs/src/contacts-v4-label.universal.d.ts +56 -7
- package/build/cjs/src/contacts-v4-label.universal.js +73 -3
- package/build/cjs/src/contacts-v4-label.universal.js.map +1 -1
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/build/es/index.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field.universal.d.ts +25 -5
- package/build/es/src/contacts-v4-extended-field.universal.js +5 -1
- package/build/es/src/contacts-v4-extended-field.universal.js.map +1 -1
- package/build/es/src/contacts-v4-label.http.d.ts +8 -2
- package/build/es/src/contacts-v4-label.http.js +32 -1
- package/build/es/src/contacts-v4-label.http.js.map +1 -1
- package/build/es/src/contacts-v4-label.public.d.ts +3 -2
- package/build/es/src/contacts-v4-label.public.js +6 -1
- package/build/es/src/contacts-v4-label.public.js.map +1 -1
- package/build/es/src/contacts-v4-label.types.d.ts +1 -1
- package/build/es/src/contacts-v4-label.universal.d.ts +56 -7
- package/build/es/src/contacts-v4-label.universal.js +71 -2
- package/build/es/src/contacts-v4-label.universal.js.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * as submittedContact from './src/contacts-v4-submit-contact.public';
|
|
2
1
|
export * as contacts from './src/contacts-v4-contact.public';
|
|
3
2
|
export * as extendedFields from './src/contacts-v4-extended-field.public';
|
|
4
3
|
export * as labels from './src/contacts-v4-label.public';
|
|
4
|
+
export * as submittedContact from './src/contacts-v4-submit-contact.public';
|
|
5
5
|
export * as tasks from './src/crm-tasks-v1-task.public';
|
|
6
6
|
export * as notifications from './src/ping-notifications-v3-notification.public';
|
package/build/cjs/index.js
CHANGED
|
@@ -19,11 +19,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.notifications = exports.tasks = exports.
|
|
23
|
-
exports.submittedContact = __importStar(require("./src/contacts-v4-submit-contact.public"));
|
|
22
|
+
exports.notifications = exports.tasks = exports.submittedContact = exports.labels = exports.extendedFields = exports.contacts = void 0;
|
|
24
23
|
exports.contacts = __importStar(require("./src/contacts-v4-contact.public"));
|
|
25
24
|
exports.extendedFields = __importStar(require("./src/contacts-v4-extended-field.public"));
|
|
26
25
|
exports.labels = __importStar(require("./src/contacts-v4-label.public"));
|
|
26
|
+
exports.submittedContact = __importStar(require("./src/contacts-v4-submit-contact.public"));
|
|
27
27
|
exports.tasks = __importStar(require("./src/crm-tasks-v1-task.public"));
|
|
28
28
|
exports.notifications = __importStar(require("./src/ping-notifications-v3-notification.public"));
|
|
29
29
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6EAA6D;AAC7D,0FAA0E;AAC1E,yEAAyD;AACzD,4FAA4E;AAC5E,wEAAwD;AACxD,iGAAiF"}
|
|
@@ -307,6 +307,7 @@ export declare function findOrCreateExtendedField(displayName: string, dataType:
|
|
|
307
307
|
*
|
|
308
308
|
* This function is not a universal function and runs only on the backend.
|
|
309
309
|
* @public
|
|
310
|
+
* @documentationMaturity preview
|
|
310
311
|
* @requiredField key
|
|
311
312
|
* @param key - Extended field key.
|
|
312
313
|
*
|
|
@@ -330,6 +331,7 @@ export declare function getExtendedField(key: string): Promise<ExtendedField>;
|
|
|
330
331
|
*
|
|
331
332
|
* This function is not a universal function and runs only on the backend.
|
|
332
333
|
* @public
|
|
334
|
+
* @documentationMaturity preview
|
|
333
335
|
* @requiredField field
|
|
334
336
|
* @requiredField field.displayName
|
|
335
337
|
* @requiredField key
|
|
@@ -341,7 +343,7 @@ export declare function getExtendedField(key: string): Promise<ExtendedField>;
|
|
|
341
343
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
342
344
|
*
|
|
343
345
|
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
344
|
-
* @param
|
|
346
|
+
* @param field - Extended field display name to rename.
|
|
345
347
|
* @permissionScope Manage Contact Extended Fields
|
|
346
348
|
* @applicableIdentity APP
|
|
347
349
|
* @returns Updated extended field.
|
|
@@ -406,6 +408,7 @@ export interface RenameExtendedField {
|
|
|
406
408
|
* This function is not a universal function and runs only on the backend.
|
|
407
409
|
* @param key - Extended field key.
|
|
408
410
|
* @public
|
|
411
|
+
* @documentationMaturity preview
|
|
409
412
|
* @requiredField key
|
|
410
413
|
* @permissionScope Manage Contact Extended Fields
|
|
411
414
|
* @applicableIdentity APP
|
|
@@ -431,6 +434,7 @@ export declare function deleteExtendedField(key: string): Promise<void>;
|
|
|
431
434
|
*
|
|
432
435
|
* This function is not a universal function and runs only on the backend.
|
|
433
436
|
* @public
|
|
437
|
+
* @documentationMaturity preview
|
|
434
438
|
* @permissionScope Manage Contact Extended Fields
|
|
435
439
|
* @applicableIdentity APP
|
|
436
440
|
*/
|
|
@@ -453,37 +457,53 @@ export interface FieldsQueryResult extends QueryOffsetResult {
|
|
|
453
457
|
export interface FieldsQueryBuilder {
|
|
454
458
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
455
459
|
* @param value - Value to compare against.
|
|
460
|
+
* @documentationMaturity preview
|
|
456
461
|
*/
|
|
457
462
|
eq: (propertyName: 'namespace' | 'key' | 'displayName' | 'dataType' | 'fieldType' | '_createdDate' | '_updatedDate', value: any) => FieldsQueryBuilder;
|
|
458
463
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
459
464
|
* @param value - Value to compare against.
|
|
465
|
+
* @documentationMaturity preview
|
|
460
466
|
*/
|
|
461
467
|
ne: (propertyName: 'namespace' | 'key' | 'displayName' | 'dataType' | '_createdDate' | '_updatedDate', value: any) => FieldsQueryBuilder;
|
|
462
468
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
463
469
|
* @param value - Value to compare against.
|
|
470
|
+
* @documentationMaturity preview
|
|
464
471
|
*/
|
|
465
472
|
gt: (propertyName: '_createdDate' | '_updatedDate', value: any) => FieldsQueryBuilder;
|
|
466
473
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
467
474
|
* @param value - Value to compare against.
|
|
475
|
+
* @documentationMaturity preview
|
|
468
476
|
*/
|
|
469
477
|
le: (propertyName: '_createdDate' | '_updatedDate', value: any) => FieldsQueryBuilder;
|
|
470
478
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
471
479
|
* @param value - Value to compare against.
|
|
480
|
+
* @documentationMaturity preview
|
|
472
481
|
*/
|
|
473
482
|
lt: (propertyName: '_createdDate' | '_updatedDate', value: any) => FieldsQueryBuilder;
|
|
474
483
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
475
484
|
* @param string - String to compare against. Case-insensitive.
|
|
485
|
+
* @documentationMaturity preview
|
|
476
486
|
*/
|
|
477
487
|
startsWith: (propertyName: 'displayName', value: string) => FieldsQueryBuilder;
|
|
488
|
+
/** @documentationMaturity preview */
|
|
478
489
|
in: (propertyName: 'key' | 'displayName', value: any) => FieldsQueryBuilder;
|
|
479
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
490
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
491
|
+
* @documentationMaturity preview
|
|
492
|
+
*/
|
|
480
493
|
ascending: (...propertyNames: Array<'displayName' | '_createdDate' | '_updatedDate'>) => FieldsQueryBuilder;
|
|
481
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
494
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
495
|
+
* @documentationMaturity preview
|
|
496
|
+
*/
|
|
482
497
|
descending: (...propertyNames: Array<'displayName' | '_createdDate' | '_updatedDate'>) => FieldsQueryBuilder;
|
|
483
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
498
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
499
|
+
* @documentationMaturity preview
|
|
500
|
+
*/
|
|
484
501
|
limit: (limit: number) => FieldsQueryBuilder;
|
|
485
|
-
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
502
|
+
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
503
|
+
* @documentationMaturity preview
|
|
504
|
+
*/
|
|
486
505
|
skip: (skip: number) => FieldsQueryBuilder;
|
|
506
|
+
/** @documentationMaturity preview */
|
|
487
507
|
find: () => Promise<FieldsQueryResult>;
|
|
488
508
|
}
|
|
489
509
|
export {};
|
|
@@ -165,6 +165,7 @@ exports.findOrCreateExtendedField = findOrCreateExtendedField;
|
|
|
165
165
|
*
|
|
166
166
|
* This function is not a universal function and runs only on the backend.
|
|
167
167
|
* @public
|
|
168
|
+
* @documentationMaturity preview
|
|
168
169
|
* @requiredField key
|
|
169
170
|
* @param key - Extended field key.
|
|
170
171
|
*
|
|
@@ -231,6 +232,7 @@ exports.getExtendedField = getExtendedField;
|
|
|
231
232
|
*
|
|
232
233
|
* This function is not a universal function and runs only on the backend.
|
|
233
234
|
* @public
|
|
235
|
+
* @documentationMaturity preview
|
|
234
236
|
* @requiredField field
|
|
235
237
|
* @requiredField field.displayName
|
|
236
238
|
* @requiredField key
|
|
@@ -242,7 +244,7 @@ exports.getExtendedField = getExtendedField;
|
|
|
242
244
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
243
245
|
*
|
|
244
246
|
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
245
|
-
* @param
|
|
247
|
+
* @param field - Extended field display name to rename.
|
|
246
248
|
* @permissionScope Manage Contact Extended Fields
|
|
247
249
|
* @applicableIdentity APP
|
|
248
250
|
* @returns Updated extended field.
|
|
@@ -304,6 +306,7 @@ exports.renameExtendedField = renameExtendedField;
|
|
|
304
306
|
* This function is not a universal function and runs only on the backend.
|
|
305
307
|
* @param key - Extended field key.
|
|
306
308
|
* @public
|
|
309
|
+
* @documentationMaturity preview
|
|
307
310
|
* @requiredField key
|
|
308
311
|
* @permissionScope Manage Contact Extended Fields
|
|
309
312
|
* @applicableIdentity APP
|
|
@@ -372,6 +375,7 @@ exports.deleteExtendedField = deleteExtendedField;
|
|
|
372
375
|
*
|
|
373
376
|
* This function is not a universal function and runs only on the backend.
|
|
374
377
|
* @public
|
|
378
|
+
* @documentationMaturity preview
|
|
375
379
|
* @permissionScope Manage Contact Extended Fields
|
|
376
380
|
* @applicableIdentity APP
|
|
377
381
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,wGAA0F;AAC1F,aAAa;AACb,4FAA6E;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAA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AAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,aAAa;gBACb,UAAU;aACX,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAzDD,8DAyDC;AAED
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,wGAA0F;AAC1F,aAAa;AACb,4FAA6E;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;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;AAgE5B,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,wDAAuC,CAAA;IACvC,8BAAa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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,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,IAAA,4CAAqC,EAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AA1DD,kDA0DC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
import { DeleteLabelRequest, DeleteLabelResponse, FindOrCreateLabelRequest, FindOrCreateLabelResponse, QueryLabelsRequest, QueryLabelsResponse, UpdateLabelRequest, UpdateLabelResponse } from './contacts-v4-label.types';
|
|
2
|
+
import { DeleteLabelRequest, DeleteLabelResponse, FindOrCreateLabelRequest, FindOrCreateLabelResponse, GetLabelRequest, GetLabelResponse, QueryLabelsRequest, QueryLabelsResponse, UpdateLabelRequest, UpdateLabelResponse } from './contacts-v4-label.types';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves a label with a given name, or creates one if it doesn't exist.
|
|
5
5
|
*
|
|
@@ -14,6 +14,12 @@ import { DeleteLabelRequest, DeleteLabelResponse, FindOrCreateLabelRequest, Find
|
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
16
|
export declare function findOrCreateLabel(payload: FindOrCreateLabelRequest): RequestOptionsFactory<FindOrCreateLabelResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a label by the specified label key.
|
|
19
|
+
*
|
|
20
|
+
* The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getLabel(payload: GetLabelRequest): RequestOptionsFactory<GetLabelResponse>;
|
|
17
23
|
/** Updates a label's specified properties. */
|
|
18
24
|
export declare function updateLabel(payload: UpdateLabelRequest): RequestOptionsFactory<UpdateLabelResponse>;
|
|
19
25
|
/**
|
|
@@ -42,7 +48,7 @@ export declare function deleteLabel(payload: DeleteLabelRequest): RequestOptions
|
|
|
42
48
|
*
|
|
43
49
|
* >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
|
|
44
50
|
*
|
|
45
|
-
* The following `LabelsQueryBuilder` functions are supported for `
|
|
51
|
+
* The following `LabelsQueryBuilder` functions are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the [`items`](#labelsqueryresult/items) property in [`LabelsQueryResult`](#labelsqueryresult).
|
|
46
52
|
*
|
|
47
53
|
*
|
|
48
54
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.queryLabels = exports.deleteLabel = exports.updateLabel = exports.findOrCreateLabel = void 0;
|
|
3
|
+
exports.queryLabels = exports.deleteLabel = exports.updateLabel = exports.getLabel = exports.findOrCreateLabel = void 0;
|
|
4
4
|
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
5
5
|
const ambassador_1 = require("@wix/metro-runtime/ambassador");
|
|
6
6
|
const metro_runtime_2 = require("@wix/metro-runtime");
|
|
@@ -12,6 +12,8 @@ const _deleteLabelRequest = {};
|
|
|
12
12
|
const _deleteLabelResponse = {};
|
|
13
13
|
const _findOrCreateLabelRequest = {};
|
|
14
14
|
const _findOrCreateLabelResponse = { label: '_contactLabel' };
|
|
15
|
+
const _getLabelRequest = {};
|
|
16
|
+
const _getLabelResponse = { label: '_contactLabel' };
|
|
15
17
|
const _queryLabelsRequest = {};
|
|
16
18
|
const _queryLabelsResponse = { labels: '_contactLabel' };
|
|
17
19
|
const _updateLabelRequest = { label: '_contactLabel' };
|
|
@@ -101,6 +103,36 @@ function findOrCreateLabel(payload) {
|
|
|
101
103
|
return __findOrCreateLabel;
|
|
102
104
|
}
|
|
103
105
|
exports.findOrCreateLabel = findOrCreateLabel;
|
|
106
|
+
/**
|
|
107
|
+
* Retrieves a label by the specified label key.
|
|
108
|
+
*
|
|
109
|
+
* The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
|
|
110
|
+
*/
|
|
111
|
+
function getLabel(payload) {
|
|
112
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getLabelRequest, {});
|
|
113
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_getLabelResponse, {
|
|
114
|
+
_contactLabel,
|
|
115
|
+
});
|
|
116
|
+
function __getLabel({ host }) {
|
|
117
|
+
const serializedData = toReq(payload);
|
|
118
|
+
const metadata = {
|
|
119
|
+
entityFqdn: 'wix.contacts.v4.label',
|
|
120
|
+
method: 'GET',
|
|
121
|
+
methodFqn: 'com.wixpress.contacts.labels.v4.ContactLabelsServiceV4.GetLabel',
|
|
122
|
+
url: resolveComWixpressContactsLabelsV4ContactLabelsServiceV4Url({
|
|
123
|
+
protoPath: '/v4/labels/{key}',
|
|
124
|
+
data: serializedData,
|
|
125
|
+
host,
|
|
126
|
+
}),
|
|
127
|
+
params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
|
|
128
|
+
transformResponse: fromRes,
|
|
129
|
+
};
|
|
130
|
+
return metadata;
|
|
131
|
+
}
|
|
132
|
+
__getLabel.fromReq = fromReq;
|
|
133
|
+
return __getLabel;
|
|
134
|
+
}
|
|
135
|
+
exports.getLabel = getLabel;
|
|
104
136
|
/** Updates a label's specified properties. */
|
|
105
137
|
function updateLabel(payload) {
|
|
106
138
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updateLabelRequest, {
|
|
@@ -177,7 +209,7 @@ exports.deleteLabel = deleteLabel;
|
|
|
177
209
|
*
|
|
178
210
|
* >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
|
|
179
211
|
*
|
|
180
|
-
* The following `LabelsQueryBuilder` functions are supported for `
|
|
212
|
+
* The following `LabelsQueryBuilder` functions are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the [`items`](#labelsqueryresult/items) property in [`LabelsQueryResult`](#labelsqueryresult).
|
|
181
213
|
*
|
|
182
214
|
*
|
|
183
215
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-label.http.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;
|
|
1
|
+
{"version":3,"file":"contacts-v4-label.http.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAgBhD,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,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,iBAAiB,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AACrD,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,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abelOptions, QueryLabelsOptions, RenameLabelOptions } from './contacts-v4-label.universal';
|
|
2
|
+
import { RenameLabel, FindOrCreateLabelOptions, GetLabelOptions, 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 getLabel(httpClient: HttpClient): (key: string, options?: GetLabelOptions | undefined) => Promise<import("./contacts-v4-label.universal").ContactLabel>;
|
|
7
8
|
export declare function renameLabel(httpClient: HttpClient): (key: string, label: RenameLabel, options?: RenameLabelOptions | undefined) => Promise<import("./contacts-v4-label.universal").ContactLabel>;
|
|
8
9
|
export declare function deleteLabel(httpClient: HttpClient): (key: string) => Promise<void>;
|
|
9
10
|
export declare function queryLabels(httpClient: HttpClient): (options?: QueryLabelsOptions | undefined) => import("./contacts-v4-label.universal").LabelsQueryBuilder;
|
|
10
11
|
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, RenameLabel, RenameLabelOptions, QueryLabelsOptions, LabelsQueryResult, LabelsQueryBuilder, } from './contacts-v4-label.universal';
|
|
12
|
+
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, GetLabelOptions, RenameLabel, RenameLabelOptions, QueryLabelsOptions, LabelsQueryResult, LabelsQueryBuilder, } from './contacts-v4-label.universal';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SortOrder = exports.LabelType = exports.queryLabels = exports.deleteLabel = exports.renameLabel = exports.findOrCreateLabel = exports.__metadata = void 0;
|
|
3
|
+
exports.SortOrder = exports.LabelType = exports.queryLabels = exports.deleteLabel = exports.renameLabel = exports.getLabel = exports.findOrCreateLabel = exports.__metadata = void 0;
|
|
4
4
|
const contacts_v4_label_universal_1 = require("./contacts-v4-label.universal");
|
|
5
5
|
exports.__metadata = { PACKAGE_NAME: '@wix/crm' };
|
|
6
6
|
function findOrCreateLabel(httpClient) {
|
|
@@ -9,6 +9,12 @@ function findOrCreateLabel(httpClient) {
|
|
|
9
9
|
{ httpClient });
|
|
10
10
|
}
|
|
11
11
|
exports.findOrCreateLabel = findOrCreateLabel;
|
|
12
|
+
function getLabel(httpClient) {
|
|
13
|
+
return (key, options) => (0, contacts_v4_label_universal_1.getLabel)(key, options,
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
exports.getLabel = getLabel;
|
|
12
18
|
function renameLabel(httpClient) {
|
|
13
19
|
return (key, label, options) => (0, contacts_v4_label_universal_1.renameLabel)(key, label, options,
|
|
14
20
|
// @ts-ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-label.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.public.ts"],"names":[],"mappings":";;;AACA,+
|
|
1
|
+
{"version":3,"file":"contacts-v4-label.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.public.ts"],"names":[],"mappings":";;;AACA,+EAWuC;AAE1B,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CAAC,WAAmB,EAAE,OAAkC,EAAE,EAAE,CACjE,IAAA,+CAA0B,EACxB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8CAQC;AAED,SAAgB,QAAQ,CAAC,UAAsB;IAC7C,OAAO,CAAC,GAAW,EAAE,OAAyB,EAAE,EAAE,CAChD,IAAA,sCAAiB,EACf,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,4BAQC;AAED,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAW,EAAE,KAAkB,EAAE,OAA4B,EAAE,EAAE,CACvE,IAAA,yCAAoB,EAClB,GAAG,EACH,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,kCASC;AAED,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,yCAAoB,EAClB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,kCAOC;AAED,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,OAA4B,EAAE,EAAE,CACtC,IAAA,yCAAoB,EAClB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,kCAOC;AAED,6EAAqE;AAA5D,wHAAA,SAAS,OAAA;AAAE,wHAAA,SAAS,OAAA"}
|
|
@@ -167,7 +167,7 @@ export interface GetLabelRequest {
|
|
|
167
167
|
* `key` is generated when the label is created
|
|
168
168
|
* and cannot be modified, even if `displayName` changes.
|
|
169
169
|
*/
|
|
170
|
-
key
|
|
170
|
+
key: string;
|
|
171
171
|
/** Language for localization. */
|
|
172
172
|
language?: string | null;
|
|
173
173
|
}
|
|
@@ -173,7 +173,7 @@ export interface GetLabelRequest {
|
|
|
173
173
|
* `key` is generated when the label is created
|
|
174
174
|
* and cannot be modified, even if `displayName` changes.
|
|
175
175
|
*/
|
|
176
|
-
key
|
|
176
|
+
key: string;
|
|
177
177
|
/** Language for localization. */
|
|
178
178
|
language?: string | null;
|
|
179
179
|
}
|
|
@@ -294,6 +294,34 @@ export interface FindOrCreateLabelOptions {
|
|
|
294
294
|
*/
|
|
295
295
|
language?: string | null;
|
|
296
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* Retrieves a label by the specified label key.
|
|
299
|
+
*
|
|
300
|
+
* The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
|
|
301
|
+
*
|
|
302
|
+
* This function is not a universal function and runs only on the backend.
|
|
303
|
+
* @param key - Label key.
|
|
304
|
+
*
|
|
305
|
+
* `key` is generated when the label is created
|
|
306
|
+
* and cannot be modified, even if `displayName` changes.
|
|
307
|
+
* @public
|
|
308
|
+
* @documentationMaturity preview
|
|
309
|
+
* @requiredField key
|
|
310
|
+
* @param options - Language options.
|
|
311
|
+
* @permissionScope Manage Contact Labels
|
|
312
|
+
* @applicableIdentity APP
|
|
313
|
+
* @returns The specified label.
|
|
314
|
+
*/
|
|
315
|
+
export declare function getLabel(key: string, options?: GetLabelOptions): Promise<ContactLabel>;
|
|
316
|
+
export interface GetLabelOptions {
|
|
317
|
+
/**
|
|
318
|
+
* Language for localization.
|
|
319
|
+
*
|
|
320
|
+
* 2-letter language code in
|
|
321
|
+
* [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
322
|
+
*/
|
|
323
|
+
language?: string | null;
|
|
324
|
+
}
|
|
297
325
|
/**
|
|
298
326
|
* Updates a label's specified properties.
|
|
299
327
|
*
|
|
@@ -303,10 +331,12 @@ export interface FindOrCreateLabelOptions {
|
|
|
303
331
|
* `key` is generated when the label is created
|
|
304
332
|
* and cannot be modified, even if `displayName` changes.
|
|
305
333
|
* @public
|
|
334
|
+
* @documentationMaturity preview
|
|
306
335
|
* @requiredField key
|
|
307
336
|
* @requiredField label
|
|
308
337
|
* @requiredField label.displayName
|
|
309
338
|
* @param options - Language options.
|
|
339
|
+
* @param label - Label display name to rename.
|
|
310
340
|
* @permissionScope Manage Contact Labels
|
|
311
341
|
* @applicableIdentity APP
|
|
312
342
|
* @returns Renames a label.
|
|
@@ -314,7 +344,7 @@ export interface FindOrCreateLabelOptions {
|
|
|
314
344
|
* The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
|
|
315
345
|
*
|
|
316
346
|
* >**Note:**
|
|
317
|
-
* > Only visitors with **Manage Contacts** permissions can
|
|
347
|
+
* > Only visitors with **Manage Contacts** permissions can rename a label.
|
|
318
348
|
*/
|
|
319
349
|
export declare function renameLabel(key: string, label: RenameLabel, options?: RenameLabelOptions): Promise<ContactLabel>;
|
|
320
350
|
export interface RenameLabel {
|
|
@@ -375,6 +405,7 @@ export interface RenameLabelOptions {
|
|
|
375
405
|
* This function is not a universal function and runs only on the backend.
|
|
376
406
|
* @param key - Label key to delete.
|
|
377
407
|
* @public
|
|
408
|
+
* @documentationMaturity preview
|
|
378
409
|
* @requiredField key
|
|
379
410
|
* @permissionScope Manage Contact Labels
|
|
380
411
|
* @applicableIdentity APP
|
|
@@ -396,12 +427,14 @@ export declare function deleteLabel(key: string): Promise<void>;
|
|
|
396
427
|
*
|
|
397
428
|
* >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
|
|
398
429
|
*
|
|
399
|
-
* The following `LabelsQueryBuilder` functions are supported for `
|
|
430
|
+
* The following `LabelsQueryBuilder` functions are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the [`items`](#labelsqueryresult/items) property in [`LabelsQueryResult`](#labelsqueryresult).
|
|
400
431
|
*
|
|
401
432
|
*
|
|
402
433
|
*
|
|
403
434
|
* This function is not a universal function and runs only on the backend.
|
|
404
435
|
* @public
|
|
436
|
+
* @documentationMaturity preview
|
|
437
|
+
* @param options - @internal
|
|
405
438
|
* @permissionScope Manage Contact Labels
|
|
406
439
|
* @applicableIdentity APP
|
|
407
440
|
*/
|
|
@@ -428,37 +461,53 @@ export interface LabelsQueryResult extends QueryOffsetResult {
|
|
|
428
461
|
export interface LabelsQueryBuilder {
|
|
429
462
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
430
463
|
* @param value - Value to compare against.
|
|
464
|
+
* @documentationMaturity preview
|
|
431
465
|
*/
|
|
432
466
|
eq: (propertyName: 'namespace' | 'key' | 'displayName' | 'labelType' | '_createdDate' | '_updatedDate', value: any) => LabelsQueryBuilder;
|
|
433
467
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
434
468
|
* @param value - Value to compare against.
|
|
469
|
+
* @documentationMaturity preview
|
|
435
470
|
*/
|
|
436
471
|
ne: (propertyName: 'namespace' | 'key' | 'displayName' | '_createdDate' | '_updatedDate', value: any) => LabelsQueryBuilder;
|
|
437
472
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
438
473
|
* @param value - Value to compare against.
|
|
474
|
+
* @documentationMaturity preview
|
|
439
475
|
*/
|
|
440
476
|
gt: (propertyName: '_createdDate' | '_updatedDate', value: any) => LabelsQueryBuilder;
|
|
441
477
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
442
478
|
* @param value - Value to compare against.
|
|
479
|
+
* @documentationMaturity preview
|
|
443
480
|
*/
|
|
444
481
|
le: (propertyName: '_createdDate' | '_updatedDate', value: any) => LabelsQueryBuilder;
|
|
445
482
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
446
483
|
* @param value - Value to compare against.
|
|
484
|
+
* @documentationMaturity preview
|
|
447
485
|
*/
|
|
448
486
|
lt: (propertyName: '_createdDate' | '_updatedDate', value: any) => LabelsQueryBuilder;
|
|
449
487
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
450
488
|
* @param string - String to compare against. Case-insensitive.
|
|
489
|
+
* @documentationMaturity preview
|
|
451
490
|
*/
|
|
452
491
|
startsWith: (propertyName: 'displayName', value: string) => LabelsQueryBuilder;
|
|
492
|
+
/** @documentationMaturity preview */
|
|
453
493
|
in: (propertyName: 'key' | 'displayName', value: any) => LabelsQueryBuilder;
|
|
454
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
494
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
495
|
+
* @documentationMaturity preview
|
|
496
|
+
*/
|
|
455
497
|
ascending: (...propertyNames: Array<'displayName' | '_createdDate' | '_updatedDate'>) => LabelsQueryBuilder;
|
|
456
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
498
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
499
|
+
* @documentationMaturity preview
|
|
500
|
+
*/
|
|
457
501
|
descending: (...propertyNames: Array<'displayName' | '_createdDate' | '_updatedDate'>) => LabelsQueryBuilder;
|
|
458
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
502
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
503
|
+
* @documentationMaturity preview
|
|
504
|
+
*/
|
|
459
505
|
limit: (limit: number) => LabelsQueryBuilder;
|
|
460
|
-
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
506
|
+
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
507
|
+
* @documentationMaturity preview
|
|
508
|
+
*/
|
|
461
509
|
skip: (skip: number) => LabelsQueryBuilder;
|
|
510
|
+
/** @documentationMaturity preview */
|
|
462
511
|
find: () => Promise<LabelsQueryResult>;
|
|
463
512
|
}
|
|
464
513
|
export {};
|