@wix/crm 1.0.85 → 1.0.86
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/context.d.ts +5 -5
- package/build/cjs/context.js +5 -5
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +5 -5
- package/build/cjs/index.js +5 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -5
- package/build/cjs/meta.js +5 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +5 -5
- package/build/es/context.js +5 -5
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +5 -5
- package/build/es/index.js +5 -5
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +5 -5
- package/build/es/meta.js +5 -5
- package/build/es/meta.js.map +1 -1
- package/package.json +15 -9
- package/build/cjs/index.typings.d.ts +0 -5
- package/build/cjs/index.typings.js +0 -32
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/contacts-v4-contact.context.d.ts +0 -9
- package/build/cjs/src/contacts-v4-contact.context.js +0 -124
- package/build/cjs/src/contacts-v4-contact.context.js.map +0 -1
- package/build/cjs/src/contacts-v4-contact.http.d.ts +0 -94
- package/build/cjs/src/contacts-v4-contact.http.js +0 -485
- package/build/cjs/src/contacts-v4-contact.http.js.map +0 -1
- package/build/cjs/src/contacts-v4-contact.meta.d.ts +0 -31
- package/build/cjs/src/contacts-v4-contact.meta.js +0 -161
- package/build/cjs/src/contacts-v4-contact.meta.js.map +0 -1
- package/build/cjs/src/contacts-v4-contact.public.d.ts +0 -49
- package/build/cjs/src/contacts-v4-contact.public.js +0 -76
- package/build/cjs/src/contacts-v4-contact.public.js.map +0 -1
- package/build/cjs/src/contacts-v4-contact.types.d.ts +0 -2199
- package/build/cjs/src/contacts-v4-contact.types.js +0 -270
- package/build/cjs/src/contacts-v4-contact.types.js.map +0 -1
- package/build/cjs/src/contacts-v4-contact.universal.d.ts +0 -2069
- package/build/cjs/src/contacts-v4-contact.universal.js +0 -930
- package/build/cjs/src/contacts-v4-contact.universal.js.map +0 -1
- package/build/cjs/src/contacts-v4-extended-field.context.d.ts +0 -7
- package/build/cjs/src/contacts-v4-extended-field.context.js +0 -90
- package/build/cjs/src/contacts-v4-extended-field.context.js.map +0 -1
- package/build/cjs/src/contacts-v4-extended-field.http.d.ts +0 -52
- package/build/cjs/src/contacts-v4-extended-field.http.js +0 -234
- package/build/cjs/src/contacts-v4-extended-field.http.js.map +0 -1
- package/build/cjs/src/contacts-v4-extended-field.meta.d.ts +0 -23
- package/build/cjs/src/contacts-v4-extended-field.meta.js +0 -123
- package/build/cjs/src/contacts-v4-extended-field.meta.js.map +0 -1
- package/build/cjs/src/contacts-v4-extended-field.public.d.ts +0 -23
- package/build/cjs/src/contacts-v4-extended-field.public.js +0 -44
- package/build/cjs/src/contacts-v4-extended-field.public.js.map +0 -1
- package/build/cjs/src/contacts-v4-extended-field.types.d.ts +0 -357
- package/build/cjs/src/contacts-v4-extended-field.types.js +0 -23
- package/build/cjs/src/contacts-v4-extended-field.types.js.map +0 -1
- package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +0 -623
- package/build/cjs/src/contacts-v4-extended-field.universal.js +0 -434
- package/build/cjs/src/contacts-v4-extended-field.universal.js.map +0 -1
- package/build/cjs/src/contacts-v4-label.context.d.ts +0 -7
- package/build/cjs/src/contacts-v4-label.context.js +0 -90
- package/build/cjs/src/contacts-v4-label.context.js.map +0 -1
- package/build/cjs/src/contacts-v4-label.http.d.ts +0 -53
- package/build/cjs/src/contacts-v4-label.http.js +0 -235
- package/build/cjs/src/contacts-v4-label.http.js.map +0 -1
- package/build/cjs/src/contacts-v4-label.meta.d.ts +0 -23
- package/build/cjs/src/contacts-v4-label.meta.js +0 -123
- package/build/cjs/src/contacts-v4-label.meta.js.map +0 -1
- package/build/cjs/src/contacts-v4-label.public.d.ts +0 -21
- package/build/cjs/src/contacts-v4-label.public.js +0 -43
- package/build/cjs/src/contacts-v4-label.public.js.map +0 -1
- package/build/cjs/src/contacts-v4-label.types.d.ts +0 -349
- package/build/cjs/src/contacts-v4-label.types.js +0 -17
- package/build/cjs/src/contacts-v4-label.types.js.map +0 -1
- package/build/cjs/src/contacts-v4-label.universal.d.ts +0 -627
- package/build/cjs/src/contacts-v4-label.universal.js +0 -428
- package/build/cjs/src/contacts-v4-label.universal.js.map +0 -1
- package/build/cjs/src/contacts-v4-submit-contact.context.d.ts +0 -3
- package/build/cjs/src/contacts-v4-submit-contact.context.js +0 -22
- package/build/cjs/src/contacts-v4-submit-contact.context.js.map +0 -1
- package/build/cjs/src/contacts-v4-submit-contact.http.d.ts +0 -8
- package/build/cjs/src/contacts-v4-submit-contact.http.js +0 -90
- package/build/cjs/src/contacts-v4-submit-contact.http.js.map +0 -1
- package/build/cjs/src/contacts-v4-submit-contact.meta.d.ts +0 -13
- package/build/cjs/src/contacts-v4-submit-contact.meta.js +0 -47
- package/build/cjs/src/contacts-v4-submit-contact.meta.js.map +0 -1
- package/build/cjs/src/contacts-v4-submit-contact.public.d.ts +0 -8
- package/build/cjs/src/contacts-v4-submit-contact.public.js +0 -22
- package/build/cjs/src/contacts-v4-submit-contact.public.js.map +0 -1
- package/build/cjs/src/contacts-v4-submit-contact.types.d.ts +0 -541
- package/build/cjs/src/contacts-v4-submit-contact.types.js +0 -174
- package/build/cjs/src/contacts-v4-submit-contact.types.js.map +0 -1
- package/build/cjs/src/contacts-v4-submit-contact.universal.d.ts +0 -555
- package/build/cjs/src/contacts-v4-submit-contact.universal.js +0 -288
- package/build/cjs/src/contacts-v4-submit-contact.universal.js.map +0 -1
- package/build/cjs/src/crm-tasks-v2-task.context.d.ts +0 -9
- package/build/cjs/src/crm-tasks-v2-task.context.js +0 -124
- package/build/cjs/src/crm-tasks-v2-task.context.js.map +0 -1
- package/build/cjs/src/crm-tasks-v2-task.http.d.ts +0 -59
- package/build/cjs/src/crm-tasks-v2-task.http.js +0 -268
- package/build/cjs/src/crm-tasks-v2-task.http.js.map +0 -1
- package/build/cjs/src/crm-tasks-v2-task.meta.d.ts +0 -27
- package/build/cjs/src/crm-tasks-v2-task.meta.js +0 -161
- package/build/cjs/src/crm-tasks-v2-task.meta.js.map +0 -1
- package/build/cjs/src/crm-tasks-v2-task.public.d.ts +0 -30
- package/build/cjs/src/crm-tasks-v2-task.public.js +0 -58
- package/build/cjs/src/crm-tasks-v2-task.public.js.map +0 -1
- package/build/cjs/src/crm-tasks-v2-task.types.d.ts +0 -430
- package/build/cjs/src/crm-tasks-v2-task.types.js +0 -29
- package/build/cjs/src/crm-tasks-v2-task.types.js.map +0 -1
- package/build/cjs/src/crm-tasks-v2-task.universal.d.ts +0 -678
- package/build/cjs/src/crm-tasks-v2-task.universal.js +0 -520
- package/build/cjs/src/crm-tasks-v2-task.universal.js.map +0 -1
- package/build/cjs/src/ping-notifications-v3-notification.http.d.ts +0 -15
- package/build/cjs/src/ping-notifications-v3-notification.http.js +0 -87
- package/build/cjs/src/ping-notifications-v3-notification.http.js.map +0 -1
- package/build/cjs/src/ping-notifications-v3-notification.public.d.ts +0 -8
- package/build/cjs/src/ping-notifications-v3-notification.public.js +0 -14
- package/build/cjs/src/ping-notifications-v3-notification.public.js.map +0 -1
- package/build/cjs/src/ping-notifications-v3-notification.types.d.ts +0 -113
- package/build/cjs/src/ping-notifications-v3-notification.types.js +0 -15
- package/build/cjs/src/ping-notifications-v3-notification.types.js.map +0 -1
- package/build/cjs/src/ping-notifications-v3-notification.universal.d.ts +0 -146
- package/build/cjs/src/ping-notifications-v3-notification.universal.js +0 -136
- package/build/cjs/src/ping-notifications-v3-notification.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -5
- package/build/es/index.typings.js +0 -6
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/contacts-v4-contact.context.d.ts +0 -9
- package/build/es/src/contacts-v4-contact.context.js +0 -114
- package/build/es/src/contacts-v4-contact.context.js.map +0 -1
- package/build/es/src/contacts-v4-contact.http.d.ts +0 -94
- package/build/es/src/contacts-v4-contact.http.js +0 -475
- package/build/es/src/contacts-v4-contact.http.js.map +0 -1
- package/build/es/src/contacts-v4-contact.meta.d.ts +0 -31
- package/build/es/src/contacts-v4-contact.meta.js +0 -128
- package/build/es/src/contacts-v4-contact.meta.js.map +0 -1
- package/build/es/src/contacts-v4-contact.public.d.ts +0 -49
- package/build/es/src/contacts-v4-contact.public.js +0 -40
- package/build/es/src/contacts-v4-contact.public.js.map +0 -1
- package/build/es/src/contacts-v4-contact.types.d.ts +0 -2199
- package/build/es/src/contacts-v4-contact.types.js +0 -267
- package/build/es/src/contacts-v4-contact.types.js.map +0 -1
- package/build/es/src/contacts-v4-contact.universal.d.ts +0 -2069
- package/build/es/src/contacts-v4-contact.universal.js +0 -897
- package/build/es/src/contacts-v4-contact.universal.js.map +0 -1
- package/build/es/src/contacts-v4-extended-field.context.d.ts +0 -7
- package/build/es/src/contacts-v4-extended-field.context.js +0 -82
- package/build/es/src/contacts-v4-extended-field.context.js.map +0 -1
- package/build/es/src/contacts-v4-extended-field.http.d.ts +0 -52
- package/build/es/src/contacts-v4-extended-field.http.js +0 -226
- package/build/es/src/contacts-v4-extended-field.http.js.map +0 -1
- package/build/es/src/contacts-v4-extended-field.meta.d.ts +0 -23
- package/build/es/src/contacts-v4-extended-field.meta.js +0 -92
- package/build/es/src/contacts-v4-extended-field.meta.js.map +0 -1
- package/build/es/src/contacts-v4-extended-field.public.d.ts +0 -23
- package/build/es/src/contacts-v4-extended-field.public.js +0 -30
- package/build/es/src/contacts-v4-extended-field.public.js.map +0 -1
- package/build/es/src/contacts-v4-extended-field.types.d.ts +0 -357
- package/build/es/src/contacts-v4-extended-field.types.js +0 -20
- package/build/es/src/contacts-v4-extended-field.types.js.map +0 -1
- package/build/es/src/contacts-v4-extended-field.universal.d.ts +0 -623
- package/build/es/src/contacts-v4-extended-field.universal.js +0 -403
- package/build/es/src/contacts-v4-extended-field.universal.js.map +0 -1
- package/build/es/src/contacts-v4-label.context.d.ts +0 -7
- package/build/es/src/contacts-v4-label.context.js +0 -82
- package/build/es/src/contacts-v4-label.context.js.map +0 -1
- package/build/es/src/contacts-v4-label.http.d.ts +0 -53
- package/build/es/src/contacts-v4-label.http.js +0 -227
- package/build/es/src/contacts-v4-label.http.js.map +0 -1
- package/build/es/src/contacts-v4-label.meta.d.ts +0 -23
- package/build/es/src/contacts-v4-label.meta.js +0 -92
- package/build/es/src/contacts-v4-label.meta.js.map +0 -1
- package/build/es/src/contacts-v4-label.public.d.ts +0 -21
- package/build/es/src/contacts-v4-label.public.js +0 -30
- package/build/es/src/contacts-v4-label.public.js.map +0 -1
- package/build/es/src/contacts-v4-label.types.d.ts +0 -349
- package/build/es/src/contacts-v4-label.types.js +0 -14
- package/build/es/src/contacts-v4-label.types.js.map +0 -1
- package/build/es/src/contacts-v4-label.universal.d.ts +0 -627
- package/build/es/src/contacts-v4-label.universal.js +0 -397
- package/build/es/src/contacts-v4-label.universal.js.map +0 -1
- package/build/es/src/contacts-v4-submit-contact.context.d.ts +0 -3
- package/build/es/src/contacts-v4-submit-contact.context.js +0 -18
- package/build/es/src/contacts-v4-submit-contact.context.js.map +0 -1
- package/build/es/src/contacts-v4-submit-contact.http.d.ts +0 -8
- package/build/es/src/contacts-v4-submit-contact.http.js +0 -86
- package/build/es/src/contacts-v4-submit-contact.http.js.map +0 -1
- package/build/es/src/contacts-v4-submit-contact.meta.d.ts +0 -13
- package/build/es/src/contacts-v4-submit-contact.meta.js +0 -20
- package/build/es/src/contacts-v4-submit-contact.meta.js.map +0 -1
- package/build/es/src/contacts-v4-submit-contact.public.d.ts +0 -8
- package/build/es/src/contacts-v4-submit-contact.public.js +0 -9
- package/build/es/src/contacts-v4-submit-contact.public.js.map +0 -1
- package/build/es/src/contacts-v4-submit-contact.types.d.ts +0 -541
- package/build/es/src/contacts-v4-submit-contact.types.js +0 -171
- package/build/es/src/contacts-v4-submit-contact.types.js.map +0 -1
- package/build/es/src/contacts-v4-submit-contact.universal.d.ts +0 -555
- package/build/es/src/contacts-v4-submit-contact.universal.js +0 -261
- package/build/es/src/contacts-v4-submit-contact.universal.js.map +0 -1
- package/build/es/src/crm-tasks-v2-task.context.d.ts +0 -9
- package/build/es/src/crm-tasks-v2-task.context.js +0 -114
- package/build/es/src/crm-tasks-v2-task.context.js.map +0 -1
- package/build/es/src/crm-tasks-v2-task.http.d.ts +0 -59
- package/build/es/src/crm-tasks-v2-task.http.js +0 -258
- package/build/es/src/crm-tasks-v2-task.http.js.map +0 -1
- package/build/es/src/crm-tasks-v2-task.meta.d.ts +0 -27
- package/build/es/src/crm-tasks-v2-task.meta.js +0 -128
- package/build/es/src/crm-tasks-v2-task.meta.js.map +0 -1
- package/build/es/src/crm-tasks-v2-task.public.d.ts +0 -30
- package/build/es/src/crm-tasks-v2-task.public.js +0 -40
- package/build/es/src/crm-tasks-v2-task.public.js.map +0 -1
- package/build/es/src/crm-tasks-v2-task.types.d.ts +0 -430
- package/build/es/src/crm-tasks-v2-task.types.js +0 -26
- package/build/es/src/crm-tasks-v2-task.types.js.map +0 -1
- package/build/es/src/crm-tasks-v2-task.universal.d.ts +0 -678
- package/build/es/src/crm-tasks-v2-task.universal.js +0 -487
- package/build/es/src/crm-tasks-v2-task.universal.js.map +0 -1
- package/build/es/src/ping-notifications-v3-notification.http.d.ts +0 -15
- package/build/es/src/ping-notifications-v3-notification.http.js +0 -83
- package/build/es/src/ping-notifications-v3-notification.http.js.map +0 -1
- package/build/es/src/ping-notifications-v3-notification.public.d.ts +0 -8
- package/build/es/src/ping-notifications-v3-notification.public.js +0 -9
- package/build/es/src/ping-notifications-v3-notification.public.js.map +0 -1
- package/build/es/src/ping-notifications-v3-notification.types.d.ts +0 -113
- package/build/es/src/ping-notifications-v3-notification.types.js +0 -12
- package/build/es/src/ping-notifications-v3-notification.types.js.map +0 -1
- package/build/es/src/ping-notifications-v3-notification.universal.d.ts +0 -146
- package/build/es/src/ping-notifications-v3-notification.universal.js +0 -109
- package/build/es/src/ping-notifications-v3-notification.universal.js.map +0 -1
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { serializer, transformError, resolveQueryFieldsTransformationPaths, } from '@wix/metro-runtime/velo';
|
|
11
|
-
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
12
|
-
import { EventDefinition } from '@wix/sdk-types';
|
|
13
|
-
import * as ambassadorWixContactsV4ExtendedField from './contacts-v4-extended-field.http';
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
import { wrapWithQueryBuilder } from '@wix/motion-edm-autogen-query-wrapper';
|
|
16
|
-
const _toVeloEntity = '$';
|
|
17
|
-
const _fromVeloEntity = '$';
|
|
18
|
-
export var FieldDataType;
|
|
19
|
-
(function (FieldDataType) {
|
|
20
|
-
FieldDataType["UNKNOWN_DATA_TYPE"] = "UNKNOWN_DATA_TYPE";
|
|
21
|
-
FieldDataType["TEXT"] = "TEXT";
|
|
22
|
-
FieldDataType["NUMBER"] = "NUMBER";
|
|
23
|
-
FieldDataType["DATE"] = "DATE";
|
|
24
|
-
FieldDataType["URL"] = "URL";
|
|
25
|
-
})(FieldDataType || (FieldDataType = {}));
|
|
26
|
-
export var FieldType;
|
|
27
|
-
(function (FieldType) {
|
|
28
|
-
FieldType["UNKNOWN"] = "UNKNOWN";
|
|
29
|
-
FieldType["SYSTEM"] = "SYSTEM";
|
|
30
|
-
FieldType["USER_DEFINED"] = "USER_DEFINED";
|
|
31
|
-
})(FieldType || (FieldType = {}));
|
|
32
|
-
export var SortOrder;
|
|
33
|
-
(function (SortOrder) {
|
|
34
|
-
SortOrder["ASC"] = "ASC";
|
|
35
|
-
SortOrder["DESC"] = "DESC";
|
|
36
|
-
})(SortOrder || (SortOrder = {}));
|
|
37
|
-
const _deleteExtendedFieldRequest = {};
|
|
38
|
-
const _deleteExtendedFieldResponse = {};
|
|
39
|
-
const _findOrCreateExtendedFieldRequest = {};
|
|
40
|
-
const _findOrCreateExtendedFieldResponse = {};
|
|
41
|
-
const _getExtendedFieldRequest = {};
|
|
42
|
-
const _getExtendedFieldResponse = {};
|
|
43
|
-
const _queryExtendedFieldsRequest = {};
|
|
44
|
-
const _queryExtendedFieldsResponse = {};
|
|
45
|
-
const _updateExtendedFieldRequest = {};
|
|
46
|
-
const _updateExtendedFieldResponse = {};
|
|
47
|
-
export const onExtendedFieldCreated = EventDefinition('wix.contacts.v4.extended_field_created')();
|
|
48
|
-
export const onExtendedFieldUpdated = EventDefinition('wix.contacts.v4.extended_field_updated')();
|
|
49
|
-
export const onExtendedFieldDeleted = EventDefinition('wix.contacts.v4.extended_field_deleted')();
|
|
50
|
-
/**
|
|
51
|
-
* Retrieves a custom field with a given name, or creates one if it doesn't exist.
|
|
52
|
-
*
|
|
53
|
-
* The `findOrCreateExtendedField()` function returns a Promise that resolves when the specified custom field is found or created.
|
|
54
|
-
*
|
|
55
|
-
* Successful calls to `findOrCreateExtendedField()` always return an extended field, which can be passed to subsequent function calls.
|
|
56
|
-
*
|
|
57
|
-
* To find an existing extended field without potentially creating a new one, use `getExtendedField()` or `queryExtendedFields()`.
|
|
58
|
-
*
|
|
59
|
-
* @param displayName - Display name to find or create.
|
|
60
|
-
*
|
|
61
|
-
* If an existing custom field is an exact match
|
|
62
|
-
* for the specified `displayName`,
|
|
63
|
-
* the existing field is returned.
|
|
64
|
-
* If not, a new field is created and returned.
|
|
65
|
-
* @param dataType - Type of data the field holds.
|
|
66
|
-
* Ignored if an existing field is an exact match
|
|
67
|
-
* for the specified display name. One of:
|
|
68
|
-
*
|
|
69
|
-
* - `"TEXT"`: Accepts strings.
|
|
70
|
-
* - `"NUMBER"`: Accepts floats.
|
|
71
|
-
* - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
|
|
72
|
-
* - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
73
|
-
* @public
|
|
74
|
-
* @documentationMaturity preview
|
|
75
|
-
* @requiredField dataType
|
|
76
|
-
* @requiredField displayName
|
|
77
|
-
* @permissionScope Manage Contact Extended Fields
|
|
78
|
-
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
79
|
-
* @permissionScope Manage Members and Contacts - all permissions
|
|
80
|
-
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
81
|
-
* @applicableIdentity APP
|
|
82
|
-
* @returns Extended field that was found or created.
|
|
83
|
-
*/
|
|
84
|
-
export function findOrCreateExtendedField(displayName, dataType) {
|
|
85
|
-
var _a, _b, _c;
|
|
86
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
87
|
-
const requestTransformation = { displayName: '$[0]', dataType: '$[1]' };
|
|
88
|
-
const responseTransformation = '$';
|
|
89
|
-
// @ts-ignore
|
|
90
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
91
|
-
const { toAmbassadorRequest } = serializer({
|
|
92
|
-
rootSchema: _findOrCreateExtendedFieldRequest,
|
|
93
|
-
depSchemas: {},
|
|
94
|
-
fqdnTransformation: {
|
|
95
|
-
paths: [],
|
|
96
|
-
transformation: _fromVeloEntity,
|
|
97
|
-
},
|
|
98
|
-
customTransformation: requestTransformation,
|
|
99
|
-
});
|
|
100
|
-
const { fromJSON } = serializer({
|
|
101
|
-
rootSchema: _findOrCreateExtendedFieldResponse,
|
|
102
|
-
depSchemas: {},
|
|
103
|
-
fqdnTransformation: {
|
|
104
|
-
paths: [...['field']],
|
|
105
|
-
transformation: _toVeloEntity,
|
|
106
|
-
},
|
|
107
|
-
customTransformation: responseTransformation,
|
|
108
|
-
});
|
|
109
|
-
const payload = toAmbassadorRequest([displayName, dataType]);
|
|
110
|
-
const reqOpts = ambassadorWixContactsV4ExtendedField.findOrCreateExtendedField(payload);
|
|
111
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
112
|
-
try {
|
|
113
|
-
const result = yield httpClient.request(reqOpts);
|
|
114
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
115
|
-
return fromJSON(result.data);
|
|
116
|
-
}
|
|
117
|
-
catch (err) {
|
|
118
|
-
const transformedError = sdkTransformError(err, {
|
|
119
|
-
spreadPathsToArguments: {},
|
|
120
|
-
explicitPathsToArguments: { displayName: '$[0]', dataType: '$[1]' },
|
|
121
|
-
singleArgumentUnchanged: false,
|
|
122
|
-
}, ['displayName', 'dataType']);
|
|
123
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
124
|
-
throw transformedError;
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Retrieves an extended field.
|
|
130
|
-
*
|
|
131
|
-
* The `getExtendedField()` function returns a Promise that resolves when the extended field is retrieved.
|
|
132
|
-
*
|
|
133
|
-
* @public
|
|
134
|
-
* @documentationMaturity preview
|
|
135
|
-
* @requiredField key
|
|
136
|
-
* @param key - Extended field key.
|
|
137
|
-
*
|
|
138
|
-
* When accessing contact data,
|
|
139
|
-
* extended field values are available at `fields[key]`.
|
|
140
|
-
* For example, if the key is "custom.notes",
|
|
141
|
-
* the value can be accessed at `fields["custom.notes"]`.
|
|
142
|
-
*
|
|
143
|
-
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
144
|
-
* @permissionScope Manage Bookings Services and Settings
|
|
145
|
-
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
146
|
-
* @permissionScope Manage Contact Extended Fields
|
|
147
|
-
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
148
|
-
* @permissionScope Manage Members and Contacts - all permissions
|
|
149
|
-
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
150
|
-
* @applicableIdentity APP
|
|
151
|
-
* @returns The specified field.
|
|
152
|
-
*/
|
|
153
|
-
export function getExtendedField(key) {
|
|
154
|
-
var _a, _b, _c;
|
|
155
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
156
|
-
const requestTransformation = { key: '$[0]' };
|
|
157
|
-
const responseTransformation = '$.field';
|
|
158
|
-
// @ts-ignore
|
|
159
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
160
|
-
const { toAmbassadorRequest } = serializer({
|
|
161
|
-
rootSchema: _getExtendedFieldRequest,
|
|
162
|
-
depSchemas: {},
|
|
163
|
-
fqdnTransformation: {
|
|
164
|
-
paths: [],
|
|
165
|
-
transformation: _fromVeloEntity,
|
|
166
|
-
},
|
|
167
|
-
customTransformation: requestTransformation,
|
|
168
|
-
});
|
|
169
|
-
const { fromJSON } = serializer({
|
|
170
|
-
rootSchema: _getExtendedFieldResponse,
|
|
171
|
-
depSchemas: {},
|
|
172
|
-
fqdnTransformation: {
|
|
173
|
-
paths: [...['field']],
|
|
174
|
-
transformation: _toVeloEntity,
|
|
175
|
-
},
|
|
176
|
-
customTransformation: responseTransformation,
|
|
177
|
-
});
|
|
178
|
-
const payload = toAmbassadorRequest([key]);
|
|
179
|
-
const reqOpts = ambassadorWixContactsV4ExtendedField.getExtendedField(payload);
|
|
180
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
181
|
-
try {
|
|
182
|
-
const result = yield httpClient.request(reqOpts);
|
|
183
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
184
|
-
return fromJSON(result.data);
|
|
185
|
-
}
|
|
186
|
-
catch (err) {
|
|
187
|
-
const transformedError = sdkTransformError(err, {
|
|
188
|
-
spreadPathsToArguments: {},
|
|
189
|
-
explicitPathsToArguments: { key: '$[0]' },
|
|
190
|
-
singleArgumentUnchanged: false,
|
|
191
|
-
}, ['key']);
|
|
192
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
193
|
-
throw transformedError;
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Renames an extended field.
|
|
199
|
-
*
|
|
200
|
-
* The `renameExtendedField()` function returns a Promise that resolves when the specified extended field's display name is changed
|
|
201
|
-
*
|
|
202
|
-
* @public
|
|
203
|
-
* @documentationMaturity preview
|
|
204
|
-
* @requiredField field
|
|
205
|
-
* @requiredField field.displayName
|
|
206
|
-
* @requiredField key
|
|
207
|
-
* @param key - Extended field key.
|
|
208
|
-
*
|
|
209
|
-
* When accessing contact data,
|
|
210
|
-
* extended field values are available at `fields[key]`.
|
|
211
|
-
* For example, if the key is "custom.notes",
|
|
212
|
-
* the value can be accessed at `fields["custom.notes"]`.
|
|
213
|
-
*
|
|
214
|
-
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
215
|
-
* @param field - Extended field to rename.
|
|
216
|
-
* @permissionScope Manage Contact Extended Fields
|
|
217
|
-
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
218
|
-
* @permissionScope Manage Members and Contacts - all permissions
|
|
219
|
-
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
220
|
-
* @applicableIdentity APP
|
|
221
|
-
* @returns Updated extended field.
|
|
222
|
-
*/
|
|
223
|
-
export function renameExtendedField(key, field) {
|
|
224
|
-
var _a, _b, _c;
|
|
225
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
226
|
-
const requestTransformation = { field: { '*': '$[1]', key: '$[0]' } };
|
|
227
|
-
const responseTransformation = '$.field';
|
|
228
|
-
// @ts-ignore
|
|
229
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
230
|
-
const { toAmbassadorRequest } = serializer({
|
|
231
|
-
rootSchema: _updateExtendedFieldRequest,
|
|
232
|
-
depSchemas: {},
|
|
233
|
-
fqdnTransformation: {
|
|
234
|
-
paths: [...['field']],
|
|
235
|
-
transformation: _fromVeloEntity,
|
|
236
|
-
},
|
|
237
|
-
customTransformation: requestTransformation,
|
|
238
|
-
});
|
|
239
|
-
const { fromJSON } = serializer({
|
|
240
|
-
rootSchema: _updateExtendedFieldResponse,
|
|
241
|
-
depSchemas: {},
|
|
242
|
-
fqdnTransformation: {
|
|
243
|
-
paths: [...['field']],
|
|
244
|
-
transformation: _toVeloEntity,
|
|
245
|
-
},
|
|
246
|
-
customTransformation: responseTransformation,
|
|
247
|
-
});
|
|
248
|
-
const payload = toAmbassadorRequest([key, field]);
|
|
249
|
-
const reqOpts = ambassadorWixContactsV4ExtendedField.updateExtendedField(payload);
|
|
250
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
251
|
-
try {
|
|
252
|
-
const result = yield httpClient.request(reqOpts);
|
|
253
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
254
|
-
return fromJSON(result.data);
|
|
255
|
-
}
|
|
256
|
-
catch (err) {
|
|
257
|
-
const transformedError = sdkTransformError(err, {
|
|
258
|
-
spreadPathsToArguments: { field: '$[1]' },
|
|
259
|
-
explicitPathsToArguments: { 'field.key': '$[0]' },
|
|
260
|
-
singleArgumentUnchanged: false,
|
|
261
|
-
}, ['key', 'field']);
|
|
262
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
263
|
-
throw transformedError;
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Deletes an extended field.
|
|
269
|
-
*
|
|
270
|
-
* The `deleteExtendedField()` function returns a Promise that resolves when the specified extended field is deleted.
|
|
271
|
-
*
|
|
272
|
-
* When an extended field is deleted, any contact data stored in the field is permanently deleted as well.
|
|
273
|
-
*
|
|
274
|
-
* @param key - Extended field key.
|
|
275
|
-
* @public
|
|
276
|
-
* @documentationMaturity preview
|
|
277
|
-
* @requiredField key
|
|
278
|
-
* @permissionScope Manage Contact Extended Fields
|
|
279
|
-
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
280
|
-
* @permissionScope Manage Members and Contacts - all permissions
|
|
281
|
-
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
282
|
-
* @applicableIdentity APP
|
|
283
|
-
*/
|
|
284
|
-
export function deleteExtendedField(key) {
|
|
285
|
-
var _a, _b, _c;
|
|
286
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
287
|
-
const requestTransformation = { key: '$[0]' };
|
|
288
|
-
const responseTransformation = '$';
|
|
289
|
-
// @ts-ignore
|
|
290
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
291
|
-
const { toAmbassadorRequest } = serializer({
|
|
292
|
-
rootSchema: _deleteExtendedFieldRequest,
|
|
293
|
-
depSchemas: {},
|
|
294
|
-
fqdnTransformation: {
|
|
295
|
-
paths: [],
|
|
296
|
-
transformation: _fromVeloEntity,
|
|
297
|
-
},
|
|
298
|
-
customTransformation: requestTransformation,
|
|
299
|
-
});
|
|
300
|
-
const { fromJSON } = serializer({
|
|
301
|
-
rootSchema: _deleteExtendedFieldResponse,
|
|
302
|
-
depSchemas: {},
|
|
303
|
-
fqdnTransformation: {
|
|
304
|
-
paths: [],
|
|
305
|
-
transformation: _toVeloEntity,
|
|
306
|
-
},
|
|
307
|
-
customTransformation: responseTransformation,
|
|
308
|
-
});
|
|
309
|
-
const payload = toAmbassadorRequest([key]);
|
|
310
|
-
const reqOpts = ambassadorWixContactsV4ExtendedField.deleteExtendedField(payload);
|
|
311
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
312
|
-
try {
|
|
313
|
-
const result = yield httpClient.request(reqOpts);
|
|
314
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
315
|
-
}
|
|
316
|
-
catch (err) {
|
|
317
|
-
const transformedError = sdkTransformError(err, {
|
|
318
|
-
spreadPathsToArguments: {},
|
|
319
|
-
explicitPathsToArguments: { key: '$[0]' },
|
|
320
|
-
singleArgumentUnchanged: false,
|
|
321
|
-
}, ['key']);
|
|
322
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
323
|
-
throw transformedError;
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* Creates a query to retrieve a list of extended fields.
|
|
329
|
-
*
|
|
330
|
-
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an `FieldsQueryBuilder` object.
|
|
331
|
-
*
|
|
332
|
-
* The returned object contains the query definition, which is used to run the query using the `find()` function.
|
|
333
|
-
*
|
|
334
|
-
* You can refine the query by chaining `FieldsQueryBuilder` functions onto the query. `FieldsQueryBuilder` functions enable you to filter, sort, and control the results that `queryExtendedFields()` returns.
|
|
335
|
-
*
|
|
336
|
-
* `queryExtendedFields()` runs with these `FieldsQueryBuilder` defaults, which you can override:
|
|
337
|
-
* - `skip()`
|
|
338
|
-
* - `limit(50)`
|
|
339
|
-
* - `descending('_createdDate')`
|
|
340
|
-
*
|
|
341
|
-
* The following `FieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the `items` property in `FieldsQueryResult`.
|
|
342
|
-
* @public
|
|
343
|
-
* @documentationMaturity preview
|
|
344
|
-
* @permissionScope Manage Bookings Services and Settings
|
|
345
|
-
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
346
|
-
* @permissionScope Manage Contact Extended Fields
|
|
347
|
-
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
348
|
-
* @permissionScope Manage Members and Contacts - all permissions
|
|
349
|
-
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
350
|
-
* @applicableIdentity APP
|
|
351
|
-
*/
|
|
352
|
-
export function queryExtendedFields() {
|
|
353
|
-
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
354
|
-
const responseTransformation = {
|
|
355
|
-
items: '$.fields',
|
|
356
|
-
pagingMetadata: '$.pagingMetadata',
|
|
357
|
-
};
|
|
358
|
-
// @ts-ignore
|
|
359
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
360
|
-
const { toAmbassadorRequest } = serializer({
|
|
361
|
-
rootSchema: _queryExtendedFieldsRequest,
|
|
362
|
-
depSchemas: {},
|
|
363
|
-
fqdnTransformation: {
|
|
364
|
-
paths: [],
|
|
365
|
-
transformation: _fromVeloEntity,
|
|
366
|
-
},
|
|
367
|
-
customTransformation: requestTransformation,
|
|
368
|
-
});
|
|
369
|
-
const { fromJSON } = serializer({
|
|
370
|
-
rootSchema: _queryExtendedFieldsResponse,
|
|
371
|
-
depSchemas: {},
|
|
372
|
-
fqdnTransformation: {
|
|
373
|
-
paths: [...['Array#fields']],
|
|
374
|
-
transformation: _toVeloEntity,
|
|
375
|
-
},
|
|
376
|
-
customTransformation: responseTransformation,
|
|
377
|
-
});
|
|
378
|
-
return wrapWithQueryBuilder({
|
|
379
|
-
func: (payload) => __awaiter(this, void 0, void 0, function* () {
|
|
380
|
-
var _a, _b, _c;
|
|
381
|
-
const reqOpts = ambassadorWixContactsV4ExtendedField.queryExtendedFields(payload);
|
|
382
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
383
|
-
try {
|
|
384
|
-
const result = yield httpClient.request(reqOpts);
|
|
385
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
386
|
-
return result;
|
|
387
|
-
}
|
|
388
|
-
catch (err) {
|
|
389
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
390
|
-
throw err;
|
|
391
|
-
}
|
|
392
|
-
}),
|
|
393
|
-
requestTransformer: (...args) => toAmbassadorRequest(args),
|
|
394
|
-
responseTransformer: ({ data }) => fromJSON(data),
|
|
395
|
-
errorTransformer: (err) => {
|
|
396
|
-
const transformedError = transformError(err, requestTransformation);
|
|
397
|
-
throw transformedError;
|
|
398
|
-
},
|
|
399
|
-
pagingMethod: 'OFFSET',
|
|
400
|
-
transformationPaths: resolveQueryFieldsTransformationPaths(_toVeloEntity),
|
|
401
|
-
})({ cursorWithEmptyFilterAndSort: true });
|
|
402
|
-
}
|
|
403
|
-
//# sourceMappingURL=contacts-v4-extended-field.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.universal.ts"],"names":[],"mappings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Label, queryLabels as publicQueryLabels } from './contacts-v4-label.public';
|
|
2
|
-
import { BuildRESTFunction } from '@wix/sdk-types';
|
|
3
|
-
export declare const findOrCreateLabel: BuildRESTFunction<typeof publicFindOrCreateLabel>;
|
|
4
|
-
export declare const getLabel: BuildRESTFunction<typeof publicGetLabel>;
|
|
5
|
-
export declare const renameLabel: BuildRESTFunction<typeof publicRenameLabel>;
|
|
6
|
-
export declare const deleteLabel: BuildRESTFunction<typeof publicDeleteLabel>;
|
|
7
|
-
export declare const queryLabels: BuildRESTFunction<typeof publicQueryLabels>;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { findOrCreateLabel as publicFindOrCreateLabel, getLabel as publicGetLabel, renameLabel as publicRenameLabel, deleteLabel as publicDeleteLabel, queryLabels as publicQueryLabels, } from './contacts-v4-label.public';
|
|
2
|
-
export const findOrCreateLabel = (...args) => {
|
|
3
|
-
var _a;
|
|
4
|
-
const context =
|
|
5
|
-
// @ts-expect-error
|
|
6
|
-
typeof $wixContext !== 'undefined'
|
|
7
|
-
? // @ts-expect-error
|
|
8
|
-
$wixContext
|
|
9
|
-
: // @ts-expect-error
|
|
10
|
-
globalThis.__wix_context__;
|
|
11
|
-
if (!context) {
|
|
12
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
13
|
-
}
|
|
14
|
-
return context
|
|
15
|
-
.initWixModules(publicFindOrCreateLabel, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
16
|
-
.apply(undefined, args);
|
|
17
|
-
};
|
|
18
|
-
export const getLabel = (...args) => {
|
|
19
|
-
var _a;
|
|
20
|
-
const context =
|
|
21
|
-
// @ts-expect-error
|
|
22
|
-
typeof $wixContext !== 'undefined'
|
|
23
|
-
? // @ts-expect-error
|
|
24
|
-
$wixContext
|
|
25
|
-
: // @ts-expect-error
|
|
26
|
-
globalThis.__wix_context__;
|
|
27
|
-
if (!context) {
|
|
28
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
29
|
-
}
|
|
30
|
-
return context
|
|
31
|
-
.initWixModules(publicGetLabel, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
32
|
-
.apply(undefined, args);
|
|
33
|
-
};
|
|
34
|
-
export const renameLabel = (...args) => {
|
|
35
|
-
var _a;
|
|
36
|
-
const context =
|
|
37
|
-
// @ts-expect-error
|
|
38
|
-
typeof $wixContext !== 'undefined'
|
|
39
|
-
? // @ts-expect-error
|
|
40
|
-
$wixContext
|
|
41
|
-
: // @ts-expect-error
|
|
42
|
-
globalThis.__wix_context__;
|
|
43
|
-
if (!context) {
|
|
44
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
45
|
-
}
|
|
46
|
-
return context
|
|
47
|
-
.initWixModules(publicRenameLabel, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
48
|
-
.apply(undefined, args);
|
|
49
|
-
};
|
|
50
|
-
export const deleteLabel = (...args) => {
|
|
51
|
-
var _a;
|
|
52
|
-
const context =
|
|
53
|
-
// @ts-expect-error
|
|
54
|
-
typeof $wixContext !== 'undefined'
|
|
55
|
-
? // @ts-expect-error
|
|
56
|
-
$wixContext
|
|
57
|
-
: // @ts-expect-error
|
|
58
|
-
globalThis.__wix_context__;
|
|
59
|
-
if (!context) {
|
|
60
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
61
|
-
}
|
|
62
|
-
return context
|
|
63
|
-
.initWixModules(publicDeleteLabel, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
64
|
-
.apply(undefined, args);
|
|
65
|
-
};
|
|
66
|
-
export const queryLabels = (...args) => {
|
|
67
|
-
var _a;
|
|
68
|
-
const context =
|
|
69
|
-
// @ts-expect-error
|
|
70
|
-
typeof $wixContext !== 'undefined'
|
|
71
|
-
? // @ts-expect-error
|
|
72
|
-
$wixContext
|
|
73
|
-
: // @ts-expect-error
|
|
74
|
-
globalThis.__wix_context__;
|
|
75
|
-
if (!context) {
|
|
76
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
77
|
-
}
|
|
78
|
-
return context
|
|
79
|
-
.initWixModules(publicQueryLabels, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
80
|
-
.apply(undefined, args);
|
|
81
|
-
};
|
|
82
|
-
//# sourceMappingURL=contacts-v4-label.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-label.context.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,IAAI,uBAAuB,EAC5C,QAAQ,IAAI,cAAc,EAC1B,WAAW,IAAI,iBAAiB,EAChC,WAAW,IAAI,iBAAiB,EAChC,WAAW,IAAI,iBAAiB,GACjC,MAAM,4BAA4B,CAAC;AAGpC,MAAM,CAAC,MAAM,iBAAiB,GAE1B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,uBAAuB,EACvB,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,QAAQ,GAA6C,CAChE,GAAG,IAAS,EACZ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;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CAAC,iBAAiB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SACtE,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAAgD,CACtE,GAAG,IAAS,EACZ,EAAE;;IACF,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CAAC,iBAAiB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SACtE,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieves a label with a given name, or creates one if it doesn't exist.
|
|
4
|
-
*
|
|
5
|
-
* The `findOrCreateLabel()` function returns a Promise that resolves when the specified label is found or created.
|
|
6
|
-
*
|
|
7
|
-
* Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
|
|
8
|
-
*
|
|
9
|
-
* To find an existing label without potentially creating a new one, use `getLabel()` or `queryLabels()`.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export declare function findOrCreateLabel(payload: object): RequestOptionsFactory<any>;
|
|
14
|
-
/**
|
|
15
|
-
* Retrieves a label by the specified label key.
|
|
16
|
-
*
|
|
17
|
-
* The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
|
|
18
|
-
*/
|
|
19
|
-
export declare function getLabel(payload: object): RequestOptionsFactory<any>;
|
|
20
|
-
/**
|
|
21
|
-
* Renames a label.
|
|
22
|
-
*
|
|
23
|
-
* The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
export declare function updateLabel(payload: object): RequestOptionsFactory<any>;
|
|
27
|
-
/**
|
|
28
|
-
* Deletes a label from the site and removes it from contacts it applies to.
|
|
29
|
-
*
|
|
30
|
-
* The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
export declare function deleteLabel(payload: object): RequestOptionsFactory<any>;
|
|
35
|
-
/**
|
|
36
|
-
* Creates a query to retrieve a list of labels.
|
|
37
|
-
*
|
|
38
|
-
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a `LabelsQueryBuilder` object.
|
|
39
|
-
*
|
|
40
|
-
* The returned object contains the query definition, which is used to run the query using the `find()` function.
|
|
41
|
-
*
|
|
42
|
-
* 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.
|
|
43
|
-
*
|
|
44
|
-
* `queryLabels()` runs with the following `LabelsQueryBuilder` defaults, which you can override:
|
|
45
|
-
* - `skip(0)`
|
|
46
|
-
* - `limit(50)`
|
|
47
|
-
* - `descending('_createdDate')`
|
|
48
|
-
*
|
|
49
|
-
* The following `LabelsQueryBuilder` functions are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the `items` property in `LabelsQueryResult`.
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
export declare function queryLabels(payload: object): RequestOptionsFactory<any>;
|