@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
|
@@ -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;
|
|
@@ -8,22 +8,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { serializer, transformError, resolveQueryFieldsTransformationPaths, } from '@wix/metro-runtime/velo';
|
|
11
|
+
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
11
12
|
import * as ambassadorWixContactsV4ExtendedField from './contacts-v4-extended-field.http';
|
|
12
13
|
// @ts-ignore
|
|
13
14
|
import { wrapWithQueryBuilder } from '@wix/motion-edm-autogen-query-wrapper';
|
|
14
|
-
let __verbose = false;
|
|
15
|
-
function __log(...args) {
|
|
16
|
-
__verbose && console.log(...args);
|
|
17
|
-
}
|
|
18
|
-
function __inspect(obj) {
|
|
19
|
-
return obj;
|
|
20
|
-
}
|
|
21
|
-
export const __debug = {
|
|
22
|
-
verboseLogging: {
|
|
23
|
-
on: () => (__verbose = true),
|
|
24
|
-
off: () => (__verbose = false),
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
15
|
const _toVeloEntity = '$';
|
|
28
16
|
const _fromVeloEntity = '$';
|
|
29
17
|
export var FieldDataType;
|
|
@@ -62,9 +50,7 @@ const _updateExtendedFieldResponse = {};
|
|
|
62
50
|
*
|
|
63
51
|
* Successful calls to `findOrCreateExtendedField()` always return an extended field, which can be passed to subsequent function calls.
|
|
64
52
|
*
|
|
65
|
-
* To find an existing extended field without potentially creating a new one, use
|
|
66
|
-
*
|
|
67
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can find or create extended fields.
|
|
53
|
+
* To find an existing extended field without potentially creating a new one, use `getExtendedField()` or `queryExtendedFields()`.
|
|
68
54
|
*
|
|
69
55
|
* @param displayName - Display name to find or create.
|
|
70
56
|
*
|
|
@@ -81,9 +67,13 @@ const _updateExtendedFieldResponse = {};
|
|
|
81
67
|
* - `"DATE"`: Accepts dates formatted as `YYYY-MM-DD`.
|
|
82
68
|
* - `"URL"`: Accepts strings. Prepends `https://` if no protocol is included.
|
|
83
69
|
* @public
|
|
70
|
+
* @documentationMaturity preview
|
|
84
71
|
* @requiredField dataType
|
|
85
72
|
* @requiredField displayName
|
|
86
73
|
* @permissionScope Manage Contact Extended Fields
|
|
74
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
75
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
76
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
87
77
|
* @applicableIdentity APP
|
|
88
78
|
* @returns Extended field that was found or created.
|
|
89
79
|
*/
|
|
@@ -114,7 +104,6 @@ export function findOrCreateExtendedField(displayName, dataType) {
|
|
|
114
104
|
});
|
|
115
105
|
const payload = toAmbassadorRequest([displayName, dataType]);
|
|
116
106
|
const reqOpts = ambassadorWixContactsV4ExtendedField.findOrCreateExtendedField(payload);
|
|
117
|
-
__log(`"FindOrCreateExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
118
107
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
119
108
|
try {
|
|
120
109
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -122,10 +111,11 @@ export function findOrCreateExtendedField(displayName, dataType) {
|
|
|
122
111
|
return fromJSON(result.data);
|
|
123
112
|
}
|
|
124
113
|
catch (err) {
|
|
125
|
-
const transformedError =
|
|
126
|
-
|
|
127
|
-
'dataType',
|
|
128
|
-
|
|
114
|
+
const transformedError = sdkTransformError(err, {
|
|
115
|
+
spreadPathsToArguments: {},
|
|
116
|
+
explicitPathsToArguments: { displayName: '$[0]', dataType: '$[1]' },
|
|
117
|
+
singleArgumentUnchanged: false,
|
|
118
|
+
}, ['displayName', 'dataType']);
|
|
129
119
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
130
120
|
throw transformedError;
|
|
131
121
|
}
|
|
@@ -136,7 +126,6 @@ export function findOrCreateExtendedField(displayName, dataType) {
|
|
|
136
126
|
*
|
|
137
127
|
* The `getExtendedField()` function returns a Promise that resolves when the extended field is retrieved.
|
|
138
128
|
*
|
|
139
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can retrieve extended fields.
|
|
140
129
|
* @public
|
|
141
130
|
* @documentationMaturity preview
|
|
142
131
|
* @requiredField key
|
|
@@ -148,7 +137,12 @@ export function findOrCreateExtendedField(displayName, dataType) {
|
|
|
148
137
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
149
138
|
*
|
|
150
139
|
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
140
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
141
|
+
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
151
142
|
* @permissionScope Manage Contact Extended Fields
|
|
143
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
144
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
145
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
152
146
|
* @applicableIdentity APP
|
|
153
147
|
* @returns The specified field.
|
|
154
148
|
*/
|
|
@@ -179,7 +173,6 @@ export function getExtendedField(key) {
|
|
|
179
173
|
});
|
|
180
174
|
const payload = toAmbassadorRequest([key]);
|
|
181
175
|
const reqOpts = ambassadorWixContactsV4ExtendedField.getExtendedField(payload);
|
|
182
|
-
__log(`"GetExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
183
176
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
184
177
|
try {
|
|
185
178
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -187,9 +180,11 @@ export function getExtendedField(key) {
|
|
|
187
180
|
return fromJSON(result.data);
|
|
188
181
|
}
|
|
189
182
|
catch (err) {
|
|
190
|
-
const transformedError =
|
|
191
|
-
|
|
192
|
-
|
|
183
|
+
const transformedError = sdkTransformError(err, {
|
|
184
|
+
spreadPathsToArguments: {},
|
|
185
|
+
explicitPathsToArguments: { key: '$[0]' },
|
|
186
|
+
singleArgumentUnchanged: false,
|
|
187
|
+
}, ['key']);
|
|
193
188
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
194
189
|
throw transformedError;
|
|
195
190
|
}
|
|
@@ -200,7 +195,6 @@ export function getExtendedField(key) {
|
|
|
200
195
|
*
|
|
201
196
|
* The `renameExtendedField()` function returns a Promise that resolves when the specified extended field's display name is changed
|
|
202
197
|
*
|
|
203
|
-
* > **Note:** Only visitors with **Manage Contacts** permissions can rename extended fields.
|
|
204
198
|
* @public
|
|
205
199
|
* @documentationMaturity preview
|
|
206
200
|
* @requiredField field
|
|
@@ -214,8 +208,11 @@ export function getExtendedField(key) {
|
|
|
214
208
|
* the value can be accessed at `fields["custom.notes"]`.
|
|
215
209
|
*
|
|
216
210
|
* Once set, `key` cannot be modified, even if `displayName` changes.
|
|
217
|
-
* @param field - Extended field
|
|
211
|
+
* @param field - Extended field to rename.
|
|
218
212
|
* @permissionScope Manage Contact Extended Fields
|
|
213
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
214
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
215
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
219
216
|
* @applicableIdentity APP
|
|
220
217
|
* @returns Updated extended field.
|
|
221
218
|
*/
|
|
@@ -246,7 +243,6 @@ export function renameExtendedField(key, field) {
|
|
|
246
243
|
});
|
|
247
244
|
const payload = toAmbassadorRequest([key, field]);
|
|
248
245
|
const reqOpts = ambassadorWixContactsV4ExtendedField.updateExtendedField(payload);
|
|
249
|
-
__log(`"UpdateExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
250
246
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
251
247
|
try {
|
|
252
248
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -254,10 +250,11 @@ export function renameExtendedField(key, field) {
|
|
|
254
250
|
return fromJSON(result.data);
|
|
255
251
|
}
|
|
256
252
|
catch (err) {
|
|
257
|
-
const transformedError =
|
|
258
|
-
'
|
|
259
|
-
'field',
|
|
260
|
-
|
|
253
|
+
const transformedError = sdkTransformError(err, {
|
|
254
|
+
spreadPathsToArguments: { field: '$[1]' },
|
|
255
|
+
explicitPathsToArguments: { 'field.key': '$[0]' },
|
|
256
|
+
singleArgumentUnchanged: false,
|
|
257
|
+
}, ['key', 'field']);
|
|
261
258
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
262
259
|
throw transformedError;
|
|
263
260
|
}
|
|
@@ -270,12 +267,14 @@ export function renameExtendedField(key, field) {
|
|
|
270
267
|
*
|
|
271
268
|
* When an extended field is deleted, any contact data stored in the field is permanently deleted as well.
|
|
272
269
|
*
|
|
273
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can delete extended fields.
|
|
274
270
|
* @param key - Extended field key.
|
|
275
271
|
* @public
|
|
276
272
|
* @documentationMaturity preview
|
|
277
273
|
* @requiredField key
|
|
278
274
|
* @permissionScope Manage Contact Extended Fields
|
|
275
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
276
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
277
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
279
278
|
* @applicableIdentity APP
|
|
280
279
|
*/
|
|
281
280
|
export function deleteExtendedField(key) {
|
|
@@ -305,16 +304,17 @@ export function deleteExtendedField(key) {
|
|
|
305
304
|
});
|
|
306
305
|
const payload = toAmbassadorRequest([key]);
|
|
307
306
|
const reqOpts = ambassadorWixContactsV4ExtendedField.deleteExtendedField(payload);
|
|
308
|
-
__log(`"DeleteExtendedField" sending request with: ${__inspect(reqOpts)}`);
|
|
309
307
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
310
308
|
try {
|
|
311
309
|
const result = yield httpClient.request(reqOpts);
|
|
312
310
|
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
313
311
|
}
|
|
314
312
|
catch (err) {
|
|
315
|
-
const transformedError =
|
|
316
|
-
|
|
317
|
-
|
|
313
|
+
const transformedError = sdkTransformError(err, {
|
|
314
|
+
spreadPathsToArguments: {},
|
|
315
|
+
explicitPathsToArguments: { key: '$[0]' },
|
|
316
|
+
singleArgumentUnchanged: false,
|
|
317
|
+
}, ['key']);
|
|
318
318
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
319
319
|
throw transformedError;
|
|
320
320
|
}
|
|
@@ -323,23 +323,26 @@ export function deleteExtendedField(key) {
|
|
|
323
323
|
/**
|
|
324
324
|
* Creates a query to retrieve a list of extended fields.
|
|
325
325
|
*
|
|
326
|
-
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an
|
|
326
|
+
* The `queryExtendedFields()` function builds a query to retrieve a list of extended fields and returns an `FieldsQueryBuilder` object.
|
|
327
327
|
*
|
|
328
|
-
* The returned object contains the query definition, which is used to run the query using the
|
|
328
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` function.
|
|
329
329
|
*
|
|
330
330
|
* 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.
|
|
331
331
|
*
|
|
332
332
|
* `queryExtendedFields()` runs with these `FieldsQueryBuilder` defaults, which you can override:
|
|
333
|
-
* -
|
|
334
|
-
* -
|
|
335
|
-
* -
|
|
336
|
-
*
|
|
337
|
-
* > **Note:** Only visitors with **Manage Contacts** permissions can query extended fields.
|
|
333
|
+
* - `skip()`
|
|
334
|
+
* - `limit(50)`
|
|
335
|
+
* - `descending('_createdDate')`
|
|
338
336
|
*
|
|
339
|
-
* The following `FieldsQueryBuilder` functions are supported for `queryExtendedFields()`. For a full description of the `Extended Field` object, see the object returned for the
|
|
337
|
+
* 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`.
|
|
340
338
|
* @public
|
|
341
339
|
* @documentationMaturity preview
|
|
340
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
341
|
+
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
342
342
|
* @permissionScope Manage Contact Extended Fields
|
|
343
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-EX-FIELDS
|
|
344
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
345
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
343
346
|
* @applicableIdentity APP
|
|
344
347
|
*/
|
|
345
348
|
export 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":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAEvF,OAAO,KAAK,oCAAoC,MAAM,mCAAmC,CAAC;AAC1F,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAgE5B,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,wDAAuC,CAAA;IACvC,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8BAAa,CAAA;IACb,4BAAW,CAAA;AACb,CAAC,EANW,aAAa,KAAb,aAAa,QAMxB;AAED,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;AAC/B,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AA+BD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA8RD,MAAM,2BAA2B,GAAG,EAAE,CAAC;AACvC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AACxC,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAC7C,MAAM,kCAAkC,GAAG,EAAE,CAAC;AAC9C,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,2BAA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EAAE;;YAC3B,MAAM,OAAO,GACX,oCAAoC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAEpE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,2DAAI,CAAC;YAC5B,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,4DAAG,MAAM,CAAC,CAAC;gBACjC,OAAO,MAAM,CAAC;YAChB,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;gBAC5B,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC,CAAA;QACD,kBAAkB,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC;QACjE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,qCAAqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -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,52 @@
|
|
|
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
|
+
// @ts-expect-error
|
|
4
|
+
if (!globalThis.__wix_context__) {
|
|
5
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
6
|
+
}
|
|
7
|
+
// @ts-expect-error
|
|
8
|
+
return globalThis.__wix_context__
|
|
9
|
+
.initWixModules(publicFindOrCreateLabel)
|
|
10
|
+
.apply(undefined, args);
|
|
11
|
+
};
|
|
12
|
+
export const getLabel = (...args) => {
|
|
13
|
+
// @ts-expect-error
|
|
14
|
+
if (!globalThis.__wix_context__) {
|
|
15
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
16
|
+
}
|
|
17
|
+
// @ts-expect-error
|
|
18
|
+
return globalThis.__wix_context__
|
|
19
|
+
.initWixModules(publicGetLabel)
|
|
20
|
+
.apply(undefined, args);
|
|
21
|
+
};
|
|
22
|
+
export const renameLabel = (...args) => {
|
|
23
|
+
// @ts-expect-error
|
|
24
|
+
if (!globalThis.__wix_context__) {
|
|
25
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
26
|
+
}
|
|
27
|
+
// @ts-expect-error
|
|
28
|
+
return globalThis.__wix_context__
|
|
29
|
+
.initWixModules(publicRenameLabel)
|
|
30
|
+
.apply(undefined, args);
|
|
31
|
+
};
|
|
32
|
+
export const deleteLabel = (...args) => {
|
|
33
|
+
// @ts-expect-error
|
|
34
|
+
if (!globalThis.__wix_context__) {
|
|
35
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
36
|
+
}
|
|
37
|
+
// @ts-expect-error
|
|
38
|
+
return globalThis.__wix_context__
|
|
39
|
+
.initWixModules(publicDeleteLabel)
|
|
40
|
+
.apply(undefined, args);
|
|
41
|
+
};
|
|
42
|
+
export const queryLabels = (...args) => {
|
|
43
|
+
// @ts-expect-error
|
|
44
|
+
if (!globalThis.__wix_context__) {
|
|
45
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
46
|
+
}
|
|
47
|
+
// @ts-expect-error
|
|
48
|
+
return globalThis.__wix_context__
|
|
49
|
+
.initWixModules(publicQueryLabels)
|
|
50
|
+
.apply(undefined, args);
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=contacts-v4-label.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,uBAAuB,CAAC;SACvC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CA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AAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,iBAAiB,CAAC;SACjC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -7,10 +7,8 @@ import { DeleteLabelRequest, DeleteLabelResponse, FindOrCreateLabelRequest, Find
|
|
|
7
7
|
*
|
|
8
8
|
* Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
|
|
9
9
|
*
|
|
10
|
-
* To find an existing label without potentially creating a new one, use
|
|
10
|
+
* To find an existing label without potentially creating a new one, use `getLabel()` or `queryLabels()`.
|
|
11
11
|
*
|
|
12
|
-
* > **Note:**
|
|
13
|
-
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
14
12
|
*
|
|
15
13
|
*/
|
|
16
14
|
export declare function findOrCreateLabel(payload: FindOrCreateLabelRequest): RequestOptionsFactory<FindOrCreateLabelResponse & FindOrCreateLabelResponseNonNullableFields>;
|
|
@@ -20,35 +18,36 @@ export declare function findOrCreateLabel(payload: FindOrCreateLabelRequest): Re
|
|
|
20
18
|
* The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
|
|
21
19
|
*/
|
|
22
20
|
export declare function getLabel(payload: GetLabelRequest): RequestOptionsFactory<GetLabelResponse & GetLabelResponseNonNullableFields>;
|
|
23
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Renames a label.
|
|
23
|
+
*
|
|
24
|
+
* The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
24
27
|
export declare function updateLabel(payload: UpdateLabelRequest): RequestOptionsFactory<UpdateLabelResponse & UpdateLabelResponseNonNullableFields>;
|
|
25
28
|
/**
|
|
26
29
|
* Deletes a label from the site and removes it from contacts it applies to.
|
|
27
30
|
*
|
|
28
31
|
* The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
|
|
29
32
|
*
|
|
30
|
-
* > **Note:**
|
|
31
|
-
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
32
33
|
*
|
|
33
34
|
*/
|
|
34
35
|
export declare function deleteLabel(payload: DeleteLabelRequest): RequestOptionsFactory<DeleteLabelResponse>;
|
|
35
36
|
/**
|
|
36
37
|
* Creates a query to retrieve a list of labels.
|
|
37
38
|
*
|
|
38
|
-
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a
|
|
39
|
+
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a `LabelsQueryBuilder` object.
|
|
39
40
|
*
|
|
40
|
-
* The returned object contains the query definition, which is used to run the query using the
|
|
41
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` function.
|
|
41
42
|
*
|
|
42
43
|
* 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
|
*
|
|
44
45
|
* `queryLabels()` runs with the following `LabelsQueryBuilder` defaults, which you can override:
|
|
45
|
-
* -
|
|
46
|
-
* -
|
|
47
|
-
* -
|
|
48
|
-
*
|
|
49
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
|
|
46
|
+
* - `skip(0)`
|
|
47
|
+
* - `limit(50)`
|
|
48
|
+
* - `descending('_createdDate')`
|
|
50
49
|
*
|
|
51
|
-
* The following `LabelsQueryBuilder` functions are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the
|
|
50
|
+
* 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`.
|
|
52
51
|
*
|
|
53
52
|
*
|
|
54
53
|
*/
|