@wix/crm 1.0.40 → 1.0.42
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-contact.universal.d.ts +5 -0
- package/build/cjs/src/contacts-v4-contact.universal.js +5 -0
- package/build/cjs/src/contacts-v4-contact.universal.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/src/contacts-v4-contact.universal.d.ts +5 -0
- package/build/es/src/contacts-v4-contact.universal.js +5 -0
- package/build/es/src/contacts-v4-contact.universal.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
|
@@ -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
|
*/
|
|
@@ -9,6 +9,8 @@ const _deleteLabelRequest = {};
|
|
|
9
9
|
const _deleteLabelResponse = {};
|
|
10
10
|
const _findOrCreateLabelRequest = {};
|
|
11
11
|
const _findOrCreateLabelResponse = { label: '_contactLabel' };
|
|
12
|
+
const _getLabelRequest = {};
|
|
13
|
+
const _getLabelResponse = { label: '_contactLabel' };
|
|
12
14
|
const _queryLabelsRequest = {};
|
|
13
15
|
const _queryLabelsResponse = { labels: '_contactLabel' };
|
|
14
16
|
const _updateLabelRequest = { label: '_contactLabel' };
|
|
@@ -97,6 +99,35 @@ export function findOrCreateLabel(payload) {
|
|
|
97
99
|
__findOrCreateLabel.fromReq = fromReq;
|
|
98
100
|
return __findOrCreateLabel;
|
|
99
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* Retrieves a label by the specified label key.
|
|
104
|
+
*
|
|
105
|
+
* The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
|
|
106
|
+
*/
|
|
107
|
+
export function getLabel(payload) {
|
|
108
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_getLabelRequest, {});
|
|
109
|
+
const { fromJSON: fromRes } = serializer(_getLabelResponse, {
|
|
110
|
+
_contactLabel,
|
|
111
|
+
});
|
|
112
|
+
function __getLabel({ host }) {
|
|
113
|
+
const serializedData = toReq(payload);
|
|
114
|
+
const metadata = {
|
|
115
|
+
entityFqdn: 'wix.contacts.v4.label',
|
|
116
|
+
method: 'GET',
|
|
117
|
+
methodFqn: 'com.wixpress.contacts.labels.v4.ContactLabelsServiceV4.GetLabel',
|
|
118
|
+
url: resolveComWixpressContactsLabelsV4ContactLabelsServiceV4Url({
|
|
119
|
+
protoPath: '/v4/labels/{key}',
|
|
120
|
+
data: serializedData,
|
|
121
|
+
host,
|
|
122
|
+
}),
|
|
123
|
+
params: toURLSearchParams(serializedData),
|
|
124
|
+
transformResponse: fromRes,
|
|
125
|
+
};
|
|
126
|
+
return metadata;
|
|
127
|
+
}
|
|
128
|
+
__getLabel.fromReq = fromReq;
|
|
129
|
+
return __getLabel;
|
|
130
|
+
}
|
|
100
131
|
/** Updates a label's specified properties. */
|
|
101
132
|
export function updateLabel(payload) {
|
|
102
133
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_updateLabelRequest, {
|
|
@@ -171,7 +202,7 @@ export function deleteLabel(payload) {
|
|
|
171
202
|
*
|
|
172
203
|
* >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
|
|
173
204
|
*
|
|
174
|
-
* The following `LabelsQueryBuilder` functions are supported for `
|
|
205
|
+
* 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).
|
|
175
206
|
*
|
|
176
207
|
*
|
|
177
208
|
*/
|
|
@@ -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;
|
|
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;AAgBhD,MAAM,aAAa,GAAG;IACpB,WAAW,EAAE,2BAA2B;IACxC,WAA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S,EACP,oEAAoE;YACtE,GAAG,EAAE,2DAA2D,CAAC;gBAC/D,SAAS,EAAE,kBAAkB;gBAC7B,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;IAEhC,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { RenameLabel, FindOrCreateLabelOptions, 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,10 +1,15 @@
|
|
|
1
|
-
import { findOrCreateLabel as universalFindOrCreateLabel, renameLabel as universalRenameLabel, deleteLabel as universalDeleteLabel, queryLabels as universalQueryLabels, } from './contacts-v4-label.universal';
|
|
1
|
+
import { findOrCreateLabel as universalFindOrCreateLabel, getLabel as universalGetLabel, renameLabel as universalRenameLabel, deleteLabel as universalDeleteLabel, queryLabels as universalQueryLabels, } from './contacts-v4-label.universal';
|
|
2
2
|
export const __metadata = { PACKAGE_NAME: '@wix/crm' };
|
|
3
3
|
export function findOrCreateLabel(httpClient) {
|
|
4
4
|
return (displayName, options) => universalFindOrCreateLabel(displayName, options,
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
{ httpClient });
|
|
7
7
|
}
|
|
8
|
+
export function getLabel(httpClient) {
|
|
9
|
+
return (key, options) => universalGetLabel(key, options,
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
{ httpClient });
|
|
12
|
+
}
|
|
8
13
|
export function renameLabel(httpClient) {
|
|
9
14
|
return (key, label, options) => universalRenameLabel(key, label, options,
|
|
10
15
|
// @ts-ignore
|
|
@@ -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,QAAQ,IAAI,iBAAiB,EAC7B,WAAW,IAAI,oBAAoB,EACnC,WAAW,IAAI,oBAAoB,EACnC,WAAW,IAAI,oBAAoB,GAMpC,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,QAAQ,CAAC,UAAsB;IAC7C,OAAO,CAAC,GAAW,EAAE,OAAyB,EAAE,EAAE,CAChD,iBAAiB,CACf,GAAG,EACH,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"}
|
|
@@ -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 {};
|
|
@@ -43,6 +43,8 @@ const _deleteLabelRequest = {};
|
|
|
43
43
|
const _deleteLabelResponse = {};
|
|
44
44
|
const _findOrCreateLabelRequest = {};
|
|
45
45
|
const _findOrCreateLabelResponse = {};
|
|
46
|
+
const _getLabelRequest = {};
|
|
47
|
+
const _getLabelResponse = {};
|
|
46
48
|
const _queryLabelsRequest = {};
|
|
47
49
|
const _queryLabelsResponse = {};
|
|
48
50
|
const _updateLabelRequest = {};
|
|
@@ -121,6 +123,68 @@ export function findOrCreateLabel(displayName, options) {
|
|
|
121
123
|
}
|
|
122
124
|
});
|
|
123
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* Retrieves a label by the specified label key.
|
|
128
|
+
*
|
|
129
|
+
* The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
|
|
130
|
+
*
|
|
131
|
+
* This function is not a universal function and runs only on the backend.
|
|
132
|
+
* @param key - Label key.
|
|
133
|
+
*
|
|
134
|
+
* `key` is generated when the label is created
|
|
135
|
+
* and cannot be modified, even if `displayName` changes.
|
|
136
|
+
* @public
|
|
137
|
+
* @documentationMaturity preview
|
|
138
|
+
* @requiredField key
|
|
139
|
+
* @param options - Language options.
|
|
140
|
+
* @permissionScope Manage Contact Labels
|
|
141
|
+
* @applicableIdentity APP
|
|
142
|
+
* @returns The specified label.
|
|
143
|
+
*/
|
|
144
|
+
export function getLabel(key, options) {
|
|
145
|
+
var _a, _b, _c;
|
|
146
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
147
|
+
const requestTransformation = { key: '$[0]', language: '$[1].language' };
|
|
148
|
+
const responseTransformation = '$.label';
|
|
149
|
+
// @ts-ignore
|
|
150
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
151
|
+
const { toAmbassadorRequest } = serializer({
|
|
152
|
+
rootSchema: _getLabelRequest,
|
|
153
|
+
depSchemas: {},
|
|
154
|
+
fqdnTransformation: {
|
|
155
|
+
paths: [],
|
|
156
|
+
transformation: _fromVeloEntity,
|
|
157
|
+
},
|
|
158
|
+
customTransformation: requestTransformation,
|
|
159
|
+
});
|
|
160
|
+
const { fromJSON } = serializer({
|
|
161
|
+
rootSchema: _getLabelResponse,
|
|
162
|
+
depSchemas: {},
|
|
163
|
+
fqdnTransformation: {
|
|
164
|
+
paths: [...['label']],
|
|
165
|
+
transformation: _toVeloEntity,
|
|
166
|
+
},
|
|
167
|
+
customTransformation: responseTransformation,
|
|
168
|
+
});
|
|
169
|
+
const payload = toAmbassadorRequest([key, options]);
|
|
170
|
+
const reqOpts = ambassadorWixContactsV4Label.getLabel(payload);
|
|
171
|
+
__log(`"GetLabel" sending request with: ${__inspect(reqOpts)}`);
|
|
172
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
173
|
+
try {
|
|
174
|
+
const result = yield httpClient.request(reqOpts);
|
|
175
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
176
|
+
return fromJSON(result.data);
|
|
177
|
+
}
|
|
178
|
+
catch (err) {
|
|
179
|
+
const transformedError = transformError(err, requestTransformation, [
|
|
180
|
+
'key',
|
|
181
|
+
'options',
|
|
182
|
+
]);
|
|
183
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
184
|
+
throw transformedError;
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
124
188
|
/**
|
|
125
189
|
* Updates a label's specified properties.
|
|
126
190
|
*
|
|
@@ -130,10 +194,12 @@ export function findOrCreateLabel(displayName, options) {
|
|
|
130
194
|
* `key` is generated when the label is created
|
|
131
195
|
* and cannot be modified, even if `displayName` changes.
|
|
132
196
|
* @public
|
|
197
|
+
* @documentationMaturity preview
|
|
133
198
|
* @requiredField key
|
|
134
199
|
* @requiredField label
|
|
135
200
|
* @requiredField label.displayName
|
|
136
201
|
* @param options - Language options.
|
|
202
|
+
* @param label - Label display name to rename.
|
|
137
203
|
* @permissionScope Manage Contact Labels
|
|
138
204
|
* @applicableIdentity APP
|
|
139
205
|
* @returns Renames a label.
|
|
@@ -141,7 +207,7 @@ export function findOrCreateLabel(displayName, options) {
|
|
|
141
207
|
* The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
|
|
142
208
|
*
|
|
143
209
|
* >**Note:**
|
|
144
|
-
* > Only visitors with **Manage Contacts** permissions can
|
|
210
|
+
* > Only visitors with **Manage Contacts** permissions can rename a label.
|
|
145
211
|
*/
|
|
146
212
|
export function renameLabel(key, label, options) {
|
|
147
213
|
var _a, _b, _c;
|
|
@@ -203,6 +269,7 @@ export function renameLabel(key, label, options) {
|
|
|
203
269
|
* This function is not a universal function and runs only on the backend.
|
|
204
270
|
* @param key - Label key to delete.
|
|
205
271
|
* @public
|
|
272
|
+
* @documentationMaturity preview
|
|
206
273
|
* @requiredField key
|
|
207
274
|
* @permissionScope Manage Contact Labels
|
|
208
275
|
* @applicableIdentity APP
|
|
@@ -266,12 +333,14 @@ export function deleteLabel(key) {
|
|
|
266
333
|
*
|
|
267
334
|
* >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
|
|
268
335
|
*
|
|
269
|
-
* The following `LabelsQueryBuilder` functions are supported for `
|
|
336
|
+
* 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).
|
|
270
337
|
*
|
|
271
338
|
*
|
|
272
339
|
*
|
|
273
340
|
* This function is not a universal function and runs only on the backend.
|
|
274
341
|
* @public
|
|
342
|
+
* @documentationMaturity preview
|
|
343
|
+
* @param options - @internal
|
|
275
344
|
* @permissionScope Manage Contact Labels
|
|
276
345
|
* @applicableIdentity APP
|
|
277
346
|
*/
|
|
@@ -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,CAA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
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "edf5670c752c62441b59aa4c3682c101128c5318046dfddd328d5748"
|
|
37
37
|
}
|