@wix/crm 1.0.79 → 1.0.81
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 -0
- package/build/cjs/context.js +32 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +7 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +7 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +7 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact.context.d.ts +9 -0
- package/build/cjs/src/contacts-v4-contact.context.js +82 -0
- package/build/cjs/src/contacts-v4-contact.context.js.map +1 -0
- package/build/cjs/src/contacts-v4-contact.http.d.ts +20 -94
- package/build/cjs/src/contacts-v4-contact.http.js +211 -249
- package/build/cjs/src/contacts-v4-contact.http.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact.meta.d.ts +1 -1
- package/build/cjs/src/contacts-v4-contact.meta.js +5 -1
- package/build/cjs/src/contacts-v4-contact.meta.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact.public.d.ts +6 -6
- package/build/cjs/src/contacts-v4-contact.public.js +5 -2
- package/build/cjs/src/contacts-v4-contact.public.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact.types.d.ts +265 -5
- package/build/cjs/src/contacts-v4-contact.types.js +40 -19
- package/build/cjs/src/contacts-v4-contact.types.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact.universal.d.ts +221 -155
- package/build/cjs/src/contacts-v4-contact.universal.js +140 -168
- package/build/cjs/src/contacts-v4-contact.universal.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.context.d.ts +7 -0
- package/build/cjs/src/contacts-v4-extended-field.context.js +60 -0
- package/build/cjs/src/contacts-v4-extended-field.context.js.map +1 -0
- package/build/cjs/src/contacts-v4-extended-field.http.d.ts +7 -14
- package/build/cjs/src/contacts-v4-extended-field.http.js +60 -70
- package/build/cjs/src/contacts-v4-extended-field.http.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.meta.d.ts +1 -1
- package/build/cjs/src/contacts-v4-extended-field.meta.js +5 -1
- package/build/cjs/src/contacts-v4-extended-field.meta.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.public.d.ts +1 -1
- package/build/cjs/src/contacts-v4-extended-field.types.d.ts +68 -1
- package/build/cjs/src/contacts-v4-extended-field.types.js +3 -3
- package/build/cjs/src/contacts-v4-extended-field.types.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +104 -30
- package/build/cjs/src/contacts-v4-extended-field.universal.js +58 -51
- package/build/cjs/src/contacts-v4-extended-field.universal.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.context.d.ts +7 -0
- package/build/cjs/src/contacts-v4-label.context.js +60 -0
- package/build/cjs/src/contacts-v4-label.context.js.map +1 -0
- package/build/cjs/src/contacts-v4-label.http.d.ts +13 -14
- package/build/cjs/src/contacts-v4-label.http.js +66 -72
- package/build/cjs/src/contacts-v4-label.http.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.meta.d.ts +1 -1
- package/build/cjs/src/contacts-v4-label.meta.js +5 -1
- package/build/cjs/src/contacts-v4-label.meta.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.public.d.ts +5 -5
- package/build/cjs/src/contacts-v4-label.types.d.ts +76 -9
- package/build/cjs/src/contacts-v4-label.types.js +2 -2
- package/build/cjs/src/contacts-v4-label.types.js.map +1 -1
- package/build/cjs/src/contacts-v4-label.universal.d.ts +113 -40
- package/build/cjs/src/contacts-v4-label.universal.js +72 -62
- package/build/cjs/src/contacts-v4-label.universal.js.map +1 -1
- package/build/cjs/src/contacts-v4-submit-contact.context.d.ts +3 -0
- package/build/cjs/src/contacts-v4-submit-contact.context.js +16 -0
- package/build/cjs/src/contacts-v4-submit-contact.context.js.map +1 -0
- package/build/cjs/src/contacts-v4-submit-contact.http.js +20 -34
- package/build/cjs/src/contacts-v4-submit-contact.http.js.map +1 -1
- package/build/cjs/src/contacts-v4-submit-contact.meta.d.ts +1 -1
- package/build/cjs/src/contacts-v4-submit-contact.meta.js +5 -1
- package/build/cjs/src/contacts-v4-submit-contact.meta.js.map +1 -1
- package/build/cjs/src/contacts-v4-submit-contact.public.d.ts +2 -2
- package/build/cjs/src/contacts-v4-submit-contact.types.d.ts +8 -3
- package/build/cjs/src/contacts-v4-submit-contact.types.js +9 -9
- package/build/cjs/src/contacts-v4-submit-contact.types.js.map +1 -1
- package/build/cjs/src/contacts-v4-submit-contact.universal.d.ts +8 -9
- package/build/cjs/src/contacts-v4-submit-contact.universal.js +25 -28
- package/build/cjs/src/contacts-v4-submit-contact.universal.js.map +1 -1
- package/build/cjs/src/crm-tasks-v2-task.context.d.ts +9 -0
- package/build/cjs/src/crm-tasks-v2-task.context.js +82 -0
- package/build/cjs/src/crm-tasks-v2-task.context.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task.http.d.ts +60 -0
- package/build/cjs/src/crm-tasks-v2-task.http.js +268 -0
- package/build/cjs/src/crm-tasks-v2-task.http.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task.meta.d.ts +27 -0
- package/build/cjs/src/crm-tasks-v2-task.meta.js +161 -0
- package/build/cjs/src/crm-tasks-v2-task.meta.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task.public.d.ts +29 -0
- package/build/cjs/src/crm-tasks-v2-task.public.js +53 -0
- package/build/cjs/src/crm-tasks-v2-task.public.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task.types.d.ts +430 -0
- package/build/cjs/src/crm-tasks-v2-task.types.js +29 -0
- package/build/cjs/src/crm-tasks-v2-task.types.js.map +1 -0
- package/build/cjs/src/crm-tasks-v2-task.universal.d.ts +665 -0
- package/build/cjs/src/crm-tasks-v2-task.universal.js +515 -0
- package/build/cjs/src/crm-tasks-v2-task.universal.js.map +1 -0
- package/build/cjs/src/ping-notifications-v3-notification.public.d.ts +1 -1
- package/build/cjs/src/ping-notifications-v3-notification.types.js +1 -1
- package/build/cjs/src/ping-notifications-v3-notification.types.js.map +1 -1
- package/build/cjs/src/ping-notifications-v3-notification.universal.js +6 -2
- package/build/cjs/src/ping-notifications-v3-notification.universal.js.map +1 -1
- package/build/es/context.d.ts +5 -0
- package/build/es/context.js +6 -0
- package/build/es/context.js.map +1 -0
- 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/index.typings.d.ts +1 -1
- package/build/es/index.typings.js +1 -1
- package/build/es/index.typings.js.map +1 -1
- package/build/es/meta.d.ts +1 -1
- package/build/es/meta.js +1 -1
- package/build/es/meta.js.map +1 -1
- package/build/es/src/contacts-v4-contact.context.d.ts +9 -0
- package/build/es/src/contacts-v4-contact.context.js +72 -0
- package/build/es/src/contacts-v4-contact.context.js.map +1 -0
- package/build/es/src/contacts-v4-contact.http.d.ts +20 -94
- package/build/es/src/contacts-v4-contact.http.js +211 -249
- package/build/es/src/contacts-v4-contact.http.js.map +1 -1
- package/build/es/src/contacts-v4-contact.meta.d.ts +1 -1
- package/build/es/src/contacts-v4-contact.public.d.ts +6 -6
- package/build/es/src/contacts-v4-contact.public.js +2 -2
- package/build/es/src/contacts-v4-contact.public.js.map +1 -1
- package/build/es/src/contacts-v4-contact.types.d.ts +265 -5
- package/build/es/src/contacts-v4-contact.types.js +21 -0
- package/build/es/src/contacts-v4-contact.types.js.map +1 -1
- package/build/es/src/contacts-v4-contact.universal.d.ts +221 -155
- package/build/es/src/contacts-v4-contact.universal.js +117 -149
- package/build/es/src/contacts-v4-contact.universal.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field.context.d.ts +7 -0
- package/build/es/src/contacts-v4-extended-field.context.js +52 -0
- package/build/es/src/contacts-v4-extended-field.context.js.map +1 -0
- package/build/es/src/contacts-v4-extended-field.http.d.ts +7 -14
- package/build/es/src/contacts-v4-extended-field.http.js +60 -70
- package/build/es/src/contacts-v4-extended-field.http.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field.meta.d.ts +1 -1
- package/build/es/src/contacts-v4-extended-field.public.d.ts +1 -1
- package/build/es/src/contacts-v4-extended-field.types.d.ts +68 -1
- package/build/es/src/contacts-v4-extended-field.universal.d.ts +104 -30
- package/build/es/src/contacts-v4-extended-field.universal.js +49 -46
- package/build/es/src/contacts-v4-extended-field.universal.js.map +1 -1
- package/build/es/src/contacts-v4-label.context.d.ts +7 -0
- package/build/es/src/contacts-v4-label.context.js +52 -0
- package/build/es/src/contacts-v4-label.context.js.map +1 -0
- package/build/es/src/contacts-v4-label.http.d.ts +13 -14
- package/build/es/src/contacts-v4-label.http.js +66 -72
- package/build/es/src/contacts-v4-label.http.js.map +1 -1
- package/build/es/src/contacts-v4-label.meta.d.ts +1 -1
- package/build/es/src/contacts-v4-label.public.d.ts +5 -5
- package/build/es/src/contacts-v4-label.types.d.ts +76 -9
- package/build/es/src/contacts-v4-label.universal.d.ts +113 -40
- package/build/es/src/contacts-v4-label.universal.js +64 -58
- package/build/es/src/contacts-v4-label.universal.js.map +1 -1
- package/build/es/src/contacts-v4-submit-contact.context.d.ts +3 -0
- package/build/es/src/contacts-v4-submit-contact.context.js +12 -0
- package/build/es/src/contacts-v4-submit-contact.context.js.map +1 -0
- package/build/es/src/contacts-v4-submit-contact.http.js +20 -34
- package/build/es/src/contacts-v4-submit-contact.http.js.map +1 -1
- package/build/es/src/contacts-v4-submit-contact.meta.d.ts +1 -1
- package/build/es/src/contacts-v4-submit-contact.public.d.ts +2 -2
- package/build/es/src/contacts-v4-submit-contact.types.d.ts +8 -3
- package/build/es/src/contacts-v4-submit-contact.types.js.map +1 -1
- package/build/es/src/contacts-v4-submit-contact.universal.d.ts +8 -9
- package/build/es/src/contacts-v4-submit-contact.universal.js +11 -18
- package/build/es/src/contacts-v4-submit-contact.universal.js.map +1 -1
- package/build/es/src/crm-tasks-v2-task.context.d.ts +9 -0
- package/build/es/src/crm-tasks-v2-task.context.js +72 -0
- package/build/es/src/crm-tasks-v2-task.context.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task.http.d.ts +60 -0
- package/build/es/src/crm-tasks-v2-task.http.js +258 -0
- package/build/es/src/crm-tasks-v2-task.http.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task.meta.d.ts +27 -0
- package/build/es/src/crm-tasks-v2-task.meta.js +128 -0
- package/build/es/src/crm-tasks-v2-task.meta.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task.public.d.ts +29 -0
- package/build/es/src/crm-tasks-v2-task.public.js +39 -0
- package/build/es/src/crm-tasks-v2-task.public.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task.types.d.ts +430 -0
- package/build/es/src/crm-tasks-v2-task.types.js +26 -0
- package/build/es/src/crm-tasks-v2-task.types.js.map +1 -0
- package/build/es/src/crm-tasks-v2-task.universal.d.ts +665 -0
- package/build/es/src/crm-tasks-v2-task.universal.js +482 -0
- package/build/es/src/crm-tasks-v2-task.universal.js.map +1 -0
- package/build/es/src/ping-notifications-v3-notification.public.d.ts +1 -1
- package/build/es/src/ping-notifications-v3-notification.universal.js.map +1 -1
- package/context/package.json +6 -0
- package/package.json +12 -6
- package/build/cjs/src/crm-tasks-v1-task.http.d.ts +0 -43
- package/build/cjs/src/crm-tasks-v1-task.http.js +0 -215
- package/build/cjs/src/crm-tasks-v1-task.http.js.map +0 -1
- package/build/cjs/src/crm-tasks-v1-task.meta.d.ts +0 -25
- package/build/cjs/src/crm-tasks-v1-task.meta.js +0 -119
- package/build/cjs/src/crm-tasks-v1-task.meta.js.map +0 -1
- package/build/cjs/src/crm-tasks-v1-task.public.d.ts +0 -12
- package/build/cjs/src/crm-tasks-v1-task.public.js +0 -40
- package/build/cjs/src/crm-tasks-v1-task.public.js.map +0 -1
- package/build/cjs/src/crm-tasks-v1-task.types.d.ts +0 -269
- package/build/cjs/src/crm-tasks-v1-task.types.js +0 -21
- package/build/cjs/src/crm-tasks-v1-task.types.js.map +0 -1
- package/build/cjs/src/crm-tasks-v1-task.universal.d.ts +0 -350
- package/build/cjs/src/crm-tasks-v1-task.universal.js +0 -361
- package/build/cjs/src/crm-tasks-v1-task.universal.js.map +0 -1
- package/build/es/src/crm-tasks-v1-task.http.d.ts +0 -43
- package/build/es/src/crm-tasks-v1-task.http.js +0 -207
- package/build/es/src/crm-tasks-v1-task.http.js.map +0 -1
- package/build/es/src/crm-tasks-v1-task.meta.d.ts +0 -25
- package/build/es/src/crm-tasks-v1-task.meta.js +0 -92
- package/build/es/src/crm-tasks-v1-task.meta.js.map +0 -1
- package/build/es/src/crm-tasks-v1-task.public.d.ts +0 -12
- package/build/es/src/crm-tasks-v1-task.public.js +0 -29
- package/build/es/src/crm-tasks-v1-task.public.js.map +0 -1
- package/build/es/src/crm-tasks-v1-task.types.d.ts +0 -269
- package/build/es/src/crm-tasks-v1-task.types.js +0 -18
- package/build/es/src/crm-tasks-v1-task.types.js.map +0 -1
- package/build/es/src/crm-tasks-v1-task.universal.d.ts +0 -350
- package/build/es/src/crm-tasks-v1-task.universal.js +0 -334
- package/build/es/src/crm-tasks-v1-task.universal.js.map +0 -1
|
@@ -8,16 +8,16 @@ var FieldDataType;
|
|
|
8
8
|
FieldDataType["NUMBER"] = "NUMBER";
|
|
9
9
|
FieldDataType["DATE"] = "DATE";
|
|
10
10
|
FieldDataType["URL"] = "URL";
|
|
11
|
-
})(FieldDataType
|
|
11
|
+
})(FieldDataType || (exports.FieldDataType = FieldDataType = {}));
|
|
12
12
|
var FieldType;
|
|
13
13
|
(function (FieldType) {
|
|
14
14
|
FieldType["UNKNOWN"] = "UNKNOWN";
|
|
15
15
|
FieldType["SYSTEM"] = "SYSTEM";
|
|
16
16
|
FieldType["USER_DEFINED"] = "USER_DEFINED";
|
|
17
|
-
})(FieldType
|
|
17
|
+
})(FieldType || (exports.FieldType = FieldType = {}));
|
|
18
18
|
var SortOrder;
|
|
19
19
|
(function (SortOrder) {
|
|
20
20
|
SortOrder["ASC"] = "ASC";
|
|
21
21
|
SortOrder["DESC"] = "DESC";
|
|
22
|
-
})(SortOrder
|
|
22
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
23
23
|
//# sourceMappingURL=contacts-v4-extended-field.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field.types.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.types.ts"],"names":[],"mappings":";;;AA4DA,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,wDAAuC,CAAA;IACvC,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8BAAa,CAAA;IACb,4BAAW,CAAA;AACb,CAAC,EANW,aAAa,
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field.types.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.types.ts"],"names":[],"mappings":";;;AA4DA,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,wDAAuC,CAAA;IACvC,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8BAAa,CAAA;IACb,4BAAW,CAAA;AACb,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;AAC/B,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AA+BD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
export declare const __debug: {
|
|
2
|
-
verboseLogging: {
|
|
3
|
-
on: () => boolean;
|
|
4
|
-
off: () => boolean;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
1
|
/** Extended field that was found or created. */
|
|
8
2
|
export interface ExtendedField {
|
|
9
3
|
/**
|
|
10
4
|
* Extended field namespace.
|
|
11
5
|
*
|
|
12
|
-
* Extended fields created by site
|
|
6
|
+
* Extended fields created by site collaborators or 3rd-party apps
|
|
13
7
|
* are automatically assigned to the `custom` namespace.
|
|
14
8
|
* @readonly
|
|
15
9
|
*/
|
|
@@ -44,8 +38,8 @@ export interface ExtendedField {
|
|
|
44
38
|
* Indicates whether the extended field is a system field or custom field.
|
|
45
39
|
*
|
|
46
40
|
* One of:
|
|
47
|
-
* - `"SYSTEM"`:
|
|
48
|
-
* - `"USER_DEFINED"`:
|
|
41
|
+
* - `"SYSTEM"`: System field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
|
|
42
|
+
* - `"USER_DEFINED"`: Custom field that can be modified by 3rd-party apps or site admins.
|
|
49
43
|
* @readonly
|
|
50
44
|
*/
|
|
51
45
|
fieldType?: FieldType;
|
|
@@ -263,6 +257,73 @@ export interface QueryExtendedFieldsResponse {
|
|
|
263
257
|
/** Details on the paged set of results returned. */
|
|
264
258
|
pagingMetadata?: PagingMetadata;
|
|
265
259
|
}
|
|
260
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
261
|
+
createdEvent?: EntityCreatedEvent;
|
|
262
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
263
|
+
deletedEvent?: EntityDeletedEvent;
|
|
264
|
+
actionEvent?: ActionEvent;
|
|
265
|
+
/**
|
|
266
|
+
* Unique event ID.
|
|
267
|
+
* Allows clients to ignore duplicate webhooks.
|
|
268
|
+
*/
|
|
269
|
+
_id?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Assumes actions are also always typed to an entity_type
|
|
272
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
273
|
+
*/
|
|
274
|
+
entityFqdn?: string;
|
|
275
|
+
/**
|
|
276
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
277
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
278
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
279
|
+
*/
|
|
280
|
+
slug?: string;
|
|
281
|
+
/** ID of the entity associated with the event. */
|
|
282
|
+
entityId?: string;
|
|
283
|
+
/** Event timestamp. */
|
|
284
|
+
eventTime?: Date;
|
|
285
|
+
/**
|
|
286
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
287
|
+
* (for example, GDPR).
|
|
288
|
+
*/
|
|
289
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
290
|
+
/** If present, indicates the action that triggered the event. */
|
|
291
|
+
originatedFrom?: string | null;
|
|
292
|
+
/**
|
|
293
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
294
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
295
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
296
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
297
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
298
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
299
|
+
*/
|
|
300
|
+
entityEventSequence?: string | null;
|
|
301
|
+
}
|
|
302
|
+
/** @oneof */
|
|
303
|
+
export interface DomainEventBodyOneOf {
|
|
304
|
+
createdEvent?: EntityCreatedEvent;
|
|
305
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
306
|
+
deletedEvent?: EntityDeletedEvent;
|
|
307
|
+
actionEvent?: ActionEvent;
|
|
308
|
+
}
|
|
309
|
+
export interface EntityCreatedEvent {
|
|
310
|
+
entityAsJson?: string;
|
|
311
|
+
}
|
|
312
|
+
export interface EntityUpdatedEvent {
|
|
313
|
+
/**
|
|
314
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
315
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
316
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
317
|
+
*/
|
|
318
|
+
currentEntityAsJson?: string;
|
|
319
|
+
}
|
|
320
|
+
export interface EntityDeletedEvent {
|
|
321
|
+
/** Entity that was deleted */
|
|
322
|
+
deletedEntityAsJson?: string | null;
|
|
323
|
+
}
|
|
324
|
+
export interface ActionEvent {
|
|
325
|
+
bodyAsJson?: string;
|
|
326
|
+
}
|
|
266
327
|
export interface FindOrCreateExtendedFieldResponseNonNullableFields {
|
|
267
328
|
field?: {
|
|
268
329
|
key: string;
|
|
@@ -303,9 +364,7 @@ export interface QueryExtendedFieldsResponseNonNullableFields {
|
|
|
303
364
|
*
|
|
304
365
|
* Successful calls to `findOrCreateExtendedField()` always return an extended field, which can be passed to subsequent function calls.
|
|
305
366
|
*
|
|
306
|
-
* To find an existing extended field without potentially creating a new one, use
|
|
307
|
-
*
|
|
308
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can find or create extended fields.
|
|
367
|
+
* To find an existing extended field without potentially creating a new one, use `getExtendedField()` or `queryExtendedFields()`.
|
|
309
368
|
*
|
|
310
369
|
* @param displayName - Display name to find or create.
|
|
311
370
|
*
|
|
@@ -322,9 +381,13 @@ export interface QueryExtendedFieldsResponseNonNullableFields {
|
|
|
322
381
|
* - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
|
|
323
382
|
* - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
324
383
|
* @public
|
|
384
|
+
* @documentationMaturity preview
|
|
325
385
|
* @requiredField dataType
|
|
326
386
|
* @requiredField displayName
|
|
327
387
|
* @permissionScope Manage Contact Extended Fields
|
|
388
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
389
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
390
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
328
391
|
* @applicableIdentity APP
|
|
329
392
|
* @returns Extended field that was found or created.
|
|
330
393
|
*/
|
|
@@ -334,7 +397,6 @@ export declare function findOrCreateExtendedField(displayName: string, dataType:
|
|
|
334
397
|
*
|
|
335
398
|
* The `getExtendedField()` function returns a Promise that resolves when the extended field is retrieved.
|
|
336
399
|
*
|
|
337
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can retrieve extended fields.
|
|
338
400
|
* @public
|
|
339
401
|
* @documentationMaturity preview
|
|
340
402
|
* @requiredField key
|
|
@@ -346,7 +408,12 @@ export declare function findOrCreateExtendedField(displayName: string, dataType:
|
|
|
346
408
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
347
409
|
*
|
|
348
410
|
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
411
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
412
|
+
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
349
413
|
* @permissionScope Manage Contact Extended Fields
|
|
414
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
415
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
416
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
350
417
|
* @applicableIdentity APP
|
|
351
418
|
* @returns The specified field.
|
|
352
419
|
*/
|
|
@@ -356,7 +423,6 @@ export declare function getExtendedField(key: string): Promise<ExtendedField & N
|
|
|
356
423
|
*
|
|
357
424
|
* The `renameExtendedField()` function returns a Promise that resolves when the specified extended field's display name is changed
|
|
358
425
|
*
|
|
359
|
-
* > **Note:** Only visitors with **Manage Contacts** permissions can rename extended fields.
|
|
360
426
|
* @public
|
|
361
427
|
* @documentationMaturity preview
|
|
362
428
|
* @requiredField field
|
|
@@ -370,8 +436,11 @@ export declare function getExtendedField(key: string): Promise<ExtendedField & N
|
|
|
370
436
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
371
437
|
*
|
|
372
438
|
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
373
|
-
* @param field - Extended field
|
|
439
|
+
* @param field - Extended field to rename.
|
|
374
440
|
* @permissionScope Manage Contact Extended Fields
|
|
441
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
442
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
443
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
375
444
|
* @applicableIdentity APP
|
|
376
445
|
* @returns Updated extended field.
|
|
377
446
|
*/
|
|
@@ -380,7 +449,7 @@ export interface RenameExtendedField {
|
|
|
380
449
|
/**
|
|
381
450
|
* Extended field namespace.
|
|
382
451
|
*
|
|
383
|
-
* Extended fields created by site
|
|
452
|
+
* Extended fields created by site collaborators or 3rd-party apps
|
|
384
453
|
* are automatically assigned to the `custom` namespace.
|
|
385
454
|
* @readonly
|
|
386
455
|
*/
|
|
@@ -402,8 +471,8 @@ export interface RenameExtendedField {
|
|
|
402
471
|
* Indicates whether the extended field is a system field or custom field.
|
|
403
472
|
*
|
|
404
473
|
* One of:
|
|
405
|
-
* - `"SYSTEM"`:
|
|
406
|
-
* - `"USER_DEFINED"`:
|
|
474
|
+
* - `"SYSTEM"`: System field managed by Wix. System fields cannot be modified by 3rd-party apps or site contributors.
|
|
475
|
+
* - `"USER_DEFINED"`: Custom field that can be modified by 3rd-party apps or site admins.
|
|
407
476
|
* @readonly
|
|
408
477
|
*/
|
|
409
478
|
fieldType?: FieldType;
|
|
@@ -430,42 +499,47 @@ export interface RenameExtendedField {
|
|
|
430
499
|
*
|
|
431
500
|
* When an extended field is deleted, any contact data stored in the field is permanently deleted as well.
|
|
432
501
|
*
|
|
433
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can delete extended fields.
|
|
434
502
|
* @param key - Extended field key.
|
|
435
503
|
* @public
|
|
436
504
|
* @documentationMaturity preview
|
|
437
505
|
* @requiredField key
|
|
438
506
|
* @permissionScope Manage Contact Extended Fields
|
|
507
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
508
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
509
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
439
510
|
* @applicableIdentity APP
|
|
440
511
|
*/
|
|
441
512
|
export declare function deleteExtendedField(key: string): Promise<void>;
|
|
442
513
|
/**
|
|
443
514
|
* Creates a query to retrieve a list of extended fields.
|
|
444
515
|
*
|
|
445
|
-
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an
|
|
516
|
+
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an `FieldsQueryBuilder` object.
|
|
446
517
|
*
|
|
447
|
-
* The returned object contains the query definition, which is used to run the query using the
|
|
518
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` function.
|
|
448
519
|
*
|
|
449
520
|
* 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.
|
|
450
521
|
*
|
|
451
522
|
* `queryExtendedFields()` runs with these `FieldsQueryBuilder` defaults, which you can override:
|
|
452
|
-
* -
|
|
453
|
-
* -
|
|
454
|
-
* -
|
|
455
|
-
*
|
|
456
|
-
* > **Note:** Only visitors with **Manage Contacts** permissions can query extended fields.
|
|
523
|
+
* - `skip()`
|
|
524
|
+
* - `limit(50)`
|
|
525
|
+
* - `descending('_createdDate')`
|
|
457
526
|
*
|
|
458
|
-
* The following `FieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the
|
|
527
|
+
* 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`.
|
|
459
528
|
* @public
|
|
460
529
|
* @documentationMaturity preview
|
|
530
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
531
|
+
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
461
532
|
* @permissionScope Manage Contact Extended Fields
|
|
533
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
534
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
535
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
462
536
|
* @applicableIdentity APP
|
|
463
537
|
*/
|
|
464
538
|
export declare function queryExtendedFields(): FieldsQueryBuilder;
|
|
465
539
|
interface QueryOffsetResult {
|
|
466
|
-
currentPage: number;
|
|
467
|
-
totalPages: number;
|
|
468
|
-
totalCount: number;
|
|
540
|
+
currentPage: number | undefined;
|
|
541
|
+
totalPages: number | undefined;
|
|
542
|
+
totalCount: number | undefined;
|
|
469
543
|
hasNext: () => boolean;
|
|
470
544
|
hasPrev: () => boolean;
|
|
471
545
|
length: number;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -28,24 +32,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
32
|
});
|
|
29
33
|
};
|
|
30
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.queryExtendedFields = exports.deleteExtendedField = exports.renameExtendedField = exports.getExtendedField = exports.findOrCreateExtendedField = exports.SortOrder = exports.FieldType = exports.FieldDataType =
|
|
35
|
+
exports.queryExtendedFields = exports.deleteExtendedField = exports.renameExtendedField = exports.getExtendedField = exports.findOrCreateExtendedField = exports.SortOrder = exports.FieldType = exports.FieldDataType = void 0;
|
|
32
36
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
37
|
+
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
33
38
|
const ambassadorWixContactsV4ExtendedField = __importStar(require("./contacts-v4-extended-field.http"));
|
|
34
39
|
// @ts-ignore
|
|
35
40
|
const motion_edm_autogen_query_wrapper_1 = require("@wix/motion-edm-autogen-query-wrapper");
|
|
36
|
-
let __verbose = false;
|
|
37
|
-
function __log(...args) {
|
|
38
|
-
__verbose && console.log(...args);
|
|
39
|
-
}
|
|
40
|
-
function __inspect(obj) {
|
|
41
|
-
return obj;
|
|
42
|
-
}
|
|
43
|
-
exports.__debug = {
|
|
44
|
-
verboseLogging: {
|
|
45
|
-
on: () => (__verbose = true),
|
|
46
|
-
off: () => (__verbose = false),
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
41
|
const _toVeloEntity = '$';
|
|
50
42
|
const _fromVeloEntity = '$';
|
|
51
43
|
var FieldDataType;
|
|
@@ -55,18 +47,18 @@ var FieldDataType;
|
|
|
55
47
|
FieldDataType["NUMBER"] = "NUMBER";
|
|
56
48
|
FieldDataType["DATE"] = "DATE";
|
|
57
49
|
FieldDataType["URL"] = "URL";
|
|
58
|
-
})(FieldDataType
|
|
50
|
+
})(FieldDataType || (exports.FieldDataType = FieldDataType = {}));
|
|
59
51
|
var FieldType;
|
|
60
52
|
(function (FieldType) {
|
|
61
53
|
FieldType["UNKNOWN"] = "UNKNOWN";
|
|
62
54
|
FieldType["SYSTEM"] = "SYSTEM";
|
|
63
55
|
FieldType["USER_DEFINED"] = "USER_DEFINED";
|
|
64
|
-
})(FieldType
|
|
56
|
+
})(FieldType || (exports.FieldType = FieldType = {}));
|
|
65
57
|
var SortOrder;
|
|
66
58
|
(function (SortOrder) {
|
|
67
59
|
SortOrder["ASC"] = "ASC";
|
|
68
60
|
SortOrder["DESC"] = "DESC";
|
|
69
|
-
})(SortOrder
|
|
61
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
70
62
|
const _deleteExtendedFieldRequest = {};
|
|
71
63
|
const _deleteExtendedFieldResponse = {};
|
|
72
64
|
const _findOrCreateExtendedFieldRequest = {};
|
|
@@ -84,9 +76,7 @@ const _updateExtendedFieldResponse = {};
|
|
|
84
76
|
*
|
|
85
77
|
* Successful calls to `findOrCreateExtendedField()` always return an extended field, which can be passed to subsequent function calls.
|
|
86
78
|
*
|
|
87
|
-
* To find an existing extended field without potentially creating a new one, use
|
|
88
|
-
*
|
|
89
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can find or create extended fields.
|
|
79
|
+
* To find an existing extended field without potentially creating a new one, use `getExtendedField()` or `queryExtendedFields()`.
|
|
90
80
|
*
|
|
91
81
|
* @param displayName - Display name to find or create.
|
|
92
82
|
*
|
|
@@ -103,9 +93,13 @@ const _updateExtendedFieldResponse = {};
|
|
|
103
93
|
* - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
|
|
104
94
|
* - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
105
95
|
* @public
|
|
96
|
+
* @documentationMaturity preview
|
|
106
97
|
* @requiredField dataType
|
|
107
98
|
* @requiredField displayName
|
|
108
99
|
* @permissionScope Manage Contact Extended Fields
|
|
100
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
101
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
102
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
109
103
|
* @applicableIdentity APP
|
|
110
104
|
* @returns Extended field that was found or created.
|
|
111
105
|
*/
|
|
@@ -136,7 +130,6 @@ function findOrCreateExtendedField(displayName, dataType) {
|
|
|
136
130
|
});
|
|
137
131
|
const payload = toAmbassadorRequest([displayName, dataType]);
|
|
138
132
|
const reqOpts = ambassadorWixContactsV4ExtendedField.findOrCreateExtendedField(payload);
|
|
139
|
-
__log(`"FindOrCreateExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
140
133
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
141
134
|
try {
|
|
142
135
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -144,10 +137,11 @@ function findOrCreateExtendedField(displayName, dataType) {
|
|
|
144
137
|
return fromJSON(result.data);
|
|
145
138
|
}
|
|
146
139
|
catch (err) {
|
|
147
|
-
const transformedError = (0,
|
|
148
|
-
|
|
149
|
-
'dataType',
|
|
150
|
-
|
|
140
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
141
|
+
spreadPathsToArguments: {},
|
|
142
|
+
explicitPathsToArguments: { displayName: '$[0]', dataType: '$[1]' },
|
|
143
|
+
singleArgumentUnchanged: false,
|
|
144
|
+
}, ['displayName', 'dataType']);
|
|
151
145
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
152
146
|
throw transformedError;
|
|
153
147
|
}
|
|
@@ -159,7 +153,6 @@ exports.findOrCreateExtendedField = findOrCreateExtendedField;
|
|
|
159
153
|
*
|
|
160
154
|
* The `getExtendedField()` function returns a Promise that resolves when the extended field is retrieved.
|
|
161
155
|
*
|
|
162
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can retrieve extended fields.
|
|
163
156
|
* @public
|
|
164
157
|
* @documentationMaturity preview
|
|
165
158
|
* @requiredField key
|
|
@@ -171,7 +164,12 @@ exports.findOrCreateExtendedField = findOrCreateExtendedField;
|
|
|
171
164
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
172
165
|
*
|
|
173
166
|
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
167
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
168
|
+
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
174
169
|
* @permissionScope Manage Contact Extended Fields
|
|
170
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
171
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
172
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
175
173
|
* @applicableIdentity APP
|
|
176
174
|
* @returns The specified field.
|
|
177
175
|
*/
|
|
@@ -202,7 +200,6 @@ function getExtendedField(key) {
|
|
|
202
200
|
});
|
|
203
201
|
const payload = toAmbassadorRequest([key]);
|
|
204
202
|
const reqOpts = ambassadorWixContactsV4ExtendedField.getExtendedField(payload);
|
|
205
|
-
__log(`"GetExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
206
203
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
207
204
|
try {
|
|
208
205
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -210,9 +207,11 @@ function getExtendedField(key) {
|
|
|
210
207
|
return fromJSON(result.data);
|
|
211
208
|
}
|
|
212
209
|
catch (err) {
|
|
213
|
-
const transformedError = (0,
|
|
214
|
-
|
|
215
|
-
|
|
210
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
211
|
+
spreadPathsToArguments: {},
|
|
212
|
+
explicitPathsToArguments: { key: '$[0]' },
|
|
213
|
+
singleArgumentUnchanged: false,
|
|
214
|
+
}, ['key']);
|
|
216
215
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
217
216
|
throw transformedError;
|
|
218
217
|
}
|
|
@@ -224,7 +223,6 @@ exports.getExtendedField = getExtendedField;
|
|
|
224
223
|
*
|
|
225
224
|
* The `renameExtendedField()` function returns a Promise that resolves when the specified extended field's display name is changed
|
|
226
225
|
*
|
|
227
|
-
* > **Note:** Only visitors with **Manage Contacts** permissions can rename extended fields.
|
|
228
226
|
* @public
|
|
229
227
|
* @documentationMaturity preview
|
|
230
228
|
* @requiredField field
|
|
@@ -238,8 +236,11 @@ exports.getExtendedField = getExtendedField;
|
|
|
238
236
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
239
237
|
*
|
|
240
238
|
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
241
|
-
* @param field - Extended field
|
|
239
|
+
* @param field - Extended field to rename.
|
|
242
240
|
* @permissionScope Manage Contact Extended Fields
|
|
241
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
242
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
243
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
243
244
|
* @applicableIdentity APP
|
|
244
245
|
* @returns Updated extended field.
|
|
245
246
|
*/
|
|
@@ -270,7 +271,6 @@ function renameExtendedField(key, field) {
|
|
|
270
271
|
});
|
|
271
272
|
const payload = toAmbassadorRequest([key, field]);
|
|
272
273
|
const reqOpts = ambassadorWixContactsV4ExtendedField.updateExtendedField(payload);
|
|
273
|
-
__log(`"UpdateExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
274
274
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
275
275
|
try {
|
|
276
276
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -278,10 +278,11 @@ function renameExtendedField(key, field) {
|
|
|
278
278
|
return fromJSON(result.data);
|
|
279
279
|
}
|
|
280
280
|
catch (err) {
|
|
281
|
-
const transformedError = (0,
|
|
282
|
-
'
|
|
283
|
-
'field',
|
|
284
|
-
|
|
281
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
282
|
+
spreadPathsToArguments: { field: '$[1]' },
|
|
283
|
+
explicitPathsToArguments: { 'field.key': '$[0]' },
|
|
284
|
+
singleArgumentUnchanged: false,
|
|
285
|
+
}, ['key', 'field']);
|
|
285
286
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
286
287
|
throw transformedError;
|
|
287
288
|
}
|
|
@@ -295,12 +296,14 @@ exports.renameExtendedField = renameExtendedField;
|
|
|
295
296
|
*
|
|
296
297
|
* When an extended field is deleted, any contact data stored in the field is permanently deleted as well.
|
|
297
298
|
*
|
|
298
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can delete extended fields.
|
|
299
299
|
* @param key - Extended field key.
|
|
300
300
|
* @public
|
|
301
301
|
* @documentationMaturity preview
|
|
302
302
|
* @requiredField key
|
|
303
303
|
* @permissionScope Manage Contact Extended Fields
|
|
304
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
305
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
306
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
304
307
|
* @applicableIdentity APP
|
|
305
308
|
*/
|
|
306
309
|
function deleteExtendedField(key) {
|
|
@@ -330,16 +333,17 @@ function deleteExtendedField(key) {
|
|
|
330
333
|
});
|
|
331
334
|
const payload = toAmbassadorRequest([key]);
|
|
332
335
|
const reqOpts = ambassadorWixContactsV4ExtendedField.deleteExtendedField(payload);
|
|
333
|
-
__log(`"DeleteExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
334
336
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
335
337
|
try {
|
|
336
338
|
const result = yield httpClient.request(reqOpts);
|
|
337
339
|
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
338
340
|
}
|
|
339
341
|
catch (err) {
|
|
340
|
-
const transformedError = (0,
|
|
341
|
-
|
|
342
|
-
|
|
342
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
343
|
+
spreadPathsToArguments: {},
|
|
344
|
+
explicitPathsToArguments: { key: '$[0]' },
|
|
345
|
+
singleArgumentUnchanged: false,
|
|
346
|
+
}, ['key']);
|
|
343
347
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
344
348
|
throw transformedError;
|
|
345
349
|
}
|
|
@@ -349,23 +353,26 @@ exports.deleteExtendedField = deleteExtendedField;
|
|
|
349
353
|
/**
|
|
350
354
|
* Creates a query to retrieve a list of extended fields.
|
|
351
355
|
*
|
|
352
|
-
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an
|
|
356
|
+
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an `FieldsQueryBuilder` object.
|
|
353
357
|
*
|
|
354
|
-
* The returned object contains the query definition, which is used to run the query using the
|
|
358
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` function.
|
|
355
359
|
*
|
|
356
360
|
* 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.
|
|
357
361
|
*
|
|
358
362
|
* `queryExtendedFields()` runs with these `FieldsQueryBuilder` defaults, which you can override:
|
|
359
|
-
* -
|
|
360
|
-
* -
|
|
361
|
-
* -
|
|
362
|
-
*
|
|
363
|
-
* > **Note:** Only visitors with **Manage Contacts** permissions can query extended fields.
|
|
363
|
+
* - `skip()`
|
|
364
|
+
* - `limit(50)`
|
|
365
|
+
* - `descending('_createdDate')`
|
|
364
366
|
*
|
|
365
|
-
* The following `FieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the
|
|
367
|
+
* 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`.
|
|
366
368
|
* @public
|
|
367
369
|
* @documentationMaturity preview
|
|
370
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
371
|
+
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
368
372
|
* @permissionScope Manage Contact Extended Fields
|
|
373
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
374
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
375
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
369
376
|
* @applicableIdentity APP
|
|
370
377
|
*/
|
|
371
378
|
function queryExtendedFields() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.universal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AACjC,sEAAuF;AAEvF,wGAA0F;AAC1F,aAAa;AACb,4FAA6E;AAE7E,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAgE5B,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,wDAAuC,CAAA;IACvC,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8BAAa,CAAA;IACb,4BAAW,CAAA;AACb,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;AAC/B,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AA+BD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EA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AC;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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { findOrCreateLabel as publicFindOrCreateLabel, getLabel as publicGetLabel, renameLabel as publicRenameLabel, deleteLabel as publicDeleteLabel, 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>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryLabels = exports.deleteLabel = exports.renameLabel = exports.getLabel = exports.findOrCreateLabel = void 0;
|
|
4
|
+
const contacts_v4_label_public_1 = require("./contacts-v4-label.public");
|
|
5
|
+
const findOrCreateLabel = (...args) => {
|
|
6
|
+
// @ts-expect-error
|
|
7
|
+
if (!globalThis.__wix_context__) {
|
|
8
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
9
|
+
}
|
|
10
|
+
// @ts-expect-error
|
|
11
|
+
return globalThis.__wix_context__
|
|
12
|
+
.initWixModules(contacts_v4_label_public_1.findOrCreateLabel)
|
|
13
|
+
.apply(undefined, args);
|
|
14
|
+
};
|
|
15
|
+
exports.findOrCreateLabel = findOrCreateLabel;
|
|
16
|
+
const getLabel = (...args) => {
|
|
17
|
+
// @ts-expect-error
|
|
18
|
+
if (!globalThis.__wix_context__) {
|
|
19
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
20
|
+
}
|
|
21
|
+
// @ts-expect-error
|
|
22
|
+
return globalThis.__wix_context__
|
|
23
|
+
.initWixModules(contacts_v4_label_public_1.getLabel)
|
|
24
|
+
.apply(undefined, args);
|
|
25
|
+
};
|
|
26
|
+
exports.getLabel = getLabel;
|
|
27
|
+
const renameLabel = (...args) => {
|
|
28
|
+
// @ts-expect-error
|
|
29
|
+
if (!globalThis.__wix_context__) {
|
|
30
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
31
|
+
}
|
|
32
|
+
// @ts-expect-error
|
|
33
|
+
return globalThis.__wix_context__
|
|
34
|
+
.initWixModules(contacts_v4_label_public_1.renameLabel)
|
|
35
|
+
.apply(undefined, args);
|
|
36
|
+
};
|
|
37
|
+
exports.renameLabel = renameLabel;
|
|
38
|
+
const deleteLabel = (...args) => {
|
|
39
|
+
// @ts-expect-error
|
|
40
|
+
if (!globalThis.__wix_context__) {
|
|
41
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
42
|
+
}
|
|
43
|
+
// @ts-expect-error
|
|
44
|
+
return globalThis.__wix_context__
|
|
45
|
+
.initWixModules(contacts_v4_label_public_1.deleteLabel)
|
|
46
|
+
.apply(undefined, args);
|
|
47
|
+
};
|
|
48
|
+
exports.deleteLabel = deleteLabel;
|
|
49
|
+
const queryLabels = (...args) => {
|
|
50
|
+
// @ts-expect-error
|
|
51
|
+
if (!globalThis.__wix_context__) {
|
|
52
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
53
|
+
}
|
|
54
|
+
// @ts-expect-error
|
|
55
|
+
return globalThis.__wix_context__
|
|
56
|
+
.initWixModules(contacts_v4_label_public_1.queryLabels)
|
|
57
|
+
.apply(undefined, args);
|
|
58
|
+
};
|
|
59
|
+
exports.queryLabels = queryLabels;
|
|
60
|
+
//# sourceMappingURL=contacts-v4-label.context.js.map
|