@wix/crm 1.0.80 → 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 -0
- package/build/cjs/index.js +7 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +7 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +7 -2
- 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 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +1 -0
- package/build/es/index.typings.js.map +1 -1
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +1 -0
- 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
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
export declare const __debug: {
|
|
2
|
-
verboseLogging: {
|
|
3
|
-
on: () => boolean;
|
|
4
|
-
off: () => boolean;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
1
|
/** Label that was found or created. */
|
|
8
2
|
export interface ContactLabel {
|
|
9
3
|
/**
|
|
10
4
|
* Label namespace.
|
|
11
5
|
*
|
|
12
|
-
* Labels created by site
|
|
6
|
+
* Labels created by site admins or 3rd-party apps
|
|
13
7
|
* are automatically assigned to the `custom` namespace.
|
|
14
8
|
* @readonly
|
|
15
9
|
*/
|
|
@@ -23,8 +17,8 @@ export interface ContactLabel {
|
|
|
23
17
|
/**
|
|
24
18
|
* Label key.
|
|
25
19
|
*
|
|
26
|
-
* `key` is generated when the label is created
|
|
27
|
-
*
|
|
20
|
+
* `key` is generated when the label is created.
|
|
21
|
+
* It cannot be modified, even if `displayName` is updated.
|
|
28
22
|
* @readonly
|
|
29
23
|
*/
|
|
30
24
|
key?: string;
|
|
@@ -170,8 +164,8 @@ export interface GetLabelRequest {
|
|
|
170
164
|
/**
|
|
171
165
|
* Label key.
|
|
172
166
|
*
|
|
173
|
-
* `key` is generated when the label is created
|
|
174
|
-
*
|
|
167
|
+
* `key` is generated when the label is created.
|
|
168
|
+
* It cannot be modified, even if `displayName` is updated.
|
|
175
169
|
*/
|
|
176
170
|
key: string;
|
|
177
171
|
/** Language for localization. */
|
|
@@ -257,6 +251,73 @@ export interface QueryLabelsResponse {
|
|
|
257
251
|
/** Details on the paged set of results returned. */
|
|
258
252
|
pagingMetadata?: PagingMetadata;
|
|
259
253
|
}
|
|
254
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
255
|
+
createdEvent?: EntityCreatedEvent;
|
|
256
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
257
|
+
deletedEvent?: EntityDeletedEvent;
|
|
258
|
+
actionEvent?: ActionEvent;
|
|
259
|
+
/**
|
|
260
|
+
* Unique event ID.
|
|
261
|
+
* Allows clients to ignore duplicate webhooks.
|
|
262
|
+
*/
|
|
263
|
+
_id?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Assumes actions are also always typed to an entity_type
|
|
266
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
267
|
+
*/
|
|
268
|
+
entityFqdn?: string;
|
|
269
|
+
/**
|
|
270
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
271
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
272
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
273
|
+
*/
|
|
274
|
+
slug?: string;
|
|
275
|
+
/** ID of the entity associated with the event. */
|
|
276
|
+
entityId?: string;
|
|
277
|
+
/** Event timestamp. */
|
|
278
|
+
eventTime?: Date;
|
|
279
|
+
/**
|
|
280
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
281
|
+
* (for example, GDPR).
|
|
282
|
+
*/
|
|
283
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
284
|
+
/** If present, indicates the action that triggered the event. */
|
|
285
|
+
originatedFrom?: string | null;
|
|
286
|
+
/**
|
|
287
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
288
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
289
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
290
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
291
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
292
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
293
|
+
*/
|
|
294
|
+
entityEventSequence?: string | null;
|
|
295
|
+
}
|
|
296
|
+
/** @oneof */
|
|
297
|
+
export interface DomainEventBodyOneOf {
|
|
298
|
+
createdEvent?: EntityCreatedEvent;
|
|
299
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
300
|
+
deletedEvent?: EntityDeletedEvent;
|
|
301
|
+
actionEvent?: ActionEvent;
|
|
302
|
+
}
|
|
303
|
+
export interface EntityCreatedEvent {
|
|
304
|
+
entityAsJson?: string;
|
|
305
|
+
}
|
|
306
|
+
export interface EntityUpdatedEvent {
|
|
307
|
+
/**
|
|
308
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
309
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
310
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
311
|
+
*/
|
|
312
|
+
currentEntityAsJson?: string;
|
|
313
|
+
}
|
|
314
|
+
export interface EntityDeletedEvent {
|
|
315
|
+
/** Entity that was deleted */
|
|
316
|
+
deletedEntityAsJson?: string | null;
|
|
317
|
+
}
|
|
318
|
+
export interface ActionEvent {
|
|
319
|
+
bodyAsJson?: string;
|
|
320
|
+
}
|
|
260
321
|
export interface FindOrCreateLabelResponseNonNullableFields {
|
|
261
322
|
label?: {
|
|
262
323
|
key: string;
|
|
@@ -293,10 +354,8 @@ export interface QueryLabelsResponseNonNullableFields {
|
|
|
293
354
|
*
|
|
294
355
|
* Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
|
|
295
356
|
*
|
|
296
|
-
* To find an existing label without potentially creating a new one, use
|
|
357
|
+
* To find an existing label without potentially creating a new one, use `getLabel()` or `queryLabels()`.
|
|
297
358
|
*
|
|
298
|
-
* > **Note:**
|
|
299
|
-
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
300
359
|
*
|
|
301
360
|
* @param displayName - Display name to retrieve or create.
|
|
302
361
|
*
|
|
@@ -305,9 +364,13 @@ export interface QueryLabelsResponseNonNullableFields {
|
|
|
305
364
|
* the existing label is returned.
|
|
306
365
|
* If not, a new label is created and returned.
|
|
307
366
|
* @public
|
|
367
|
+
* @documentationMaturity preview
|
|
308
368
|
* @requiredField displayName
|
|
309
369
|
* @param options - Language options.
|
|
310
370
|
* @permissionScope Manage Contact Labels
|
|
371
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
|
|
372
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
373
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
311
374
|
* @applicableIdentity APP
|
|
312
375
|
* @returns Label that was found or created.
|
|
313
376
|
*/
|
|
@@ -327,13 +390,18 @@ export interface FindOrCreateLabelOptions {
|
|
|
327
390
|
* The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
|
|
328
391
|
* @param key - Label key.
|
|
329
392
|
*
|
|
330
|
-
* `key` is generated when the label is created
|
|
331
|
-
*
|
|
393
|
+
* `key` is generated when the label is created.
|
|
394
|
+
* It cannot be modified, even if `displayName` is updated.
|
|
332
395
|
* @public
|
|
333
396
|
* @documentationMaturity preview
|
|
334
397
|
* @requiredField key
|
|
335
398
|
* @param options - Language options.
|
|
399
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
400
|
+
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
336
401
|
* @permissionScope Manage Contact Labels
|
|
402
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
|
|
403
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
404
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
337
405
|
* @applicableIdentity APP
|
|
338
406
|
* @returns The specified label.
|
|
339
407
|
*/
|
|
@@ -348,33 +416,34 @@ export interface GetLabelOptions {
|
|
|
348
416
|
language?: string | null;
|
|
349
417
|
}
|
|
350
418
|
/**
|
|
351
|
-
*
|
|
419
|
+
* Renames a label.
|
|
420
|
+
*
|
|
421
|
+
* The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
|
|
422
|
+
*
|
|
352
423
|
* @param key - Label key.
|
|
353
424
|
*
|
|
354
|
-
* `key` is generated when the label is created
|
|
355
|
-
*
|
|
425
|
+
* `key` is generated when the label is created.
|
|
426
|
+
* It cannot be modified, even if `displayName` is updated.
|
|
356
427
|
* @public
|
|
357
428
|
* @documentationMaturity preview
|
|
358
429
|
* @requiredField key
|
|
359
430
|
* @requiredField label
|
|
360
431
|
* @requiredField label.displayName
|
|
361
432
|
* @param options - Language options.
|
|
362
|
-
* @param label - Label
|
|
433
|
+
* @param label - Label to rename.
|
|
363
434
|
* @permissionScope Manage Contact Labels
|
|
435
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
|
|
436
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
437
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
364
438
|
* @applicableIdentity APP
|
|
365
|
-
* @returns
|
|
366
|
-
*
|
|
367
|
-
* The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
|
|
368
|
-
*
|
|
369
|
-
* >**Note:**
|
|
370
|
-
* > Only visitors with **Manage Contacts** permissions can rename a label.
|
|
439
|
+
* @returns
|
|
371
440
|
*/
|
|
372
441
|
export declare function renameLabel(key: string, label: RenameLabel, options?: RenameLabelOptions): Promise<ContactLabel & NonNullable<UpdateLabelResponseNonNullableFields>['label']>;
|
|
373
442
|
export interface RenameLabel {
|
|
374
443
|
/**
|
|
375
444
|
* Label namespace.
|
|
376
445
|
*
|
|
377
|
-
* Labels created by site
|
|
446
|
+
* Labels created by site admins or 3rd-party apps
|
|
378
447
|
* are automatically assigned to the `custom` namespace.
|
|
379
448
|
* @readonly
|
|
380
449
|
*/
|
|
@@ -421,40 +490,44 @@ export interface RenameLabelOptions {
|
|
|
421
490
|
*
|
|
422
491
|
* The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
|
|
423
492
|
*
|
|
424
|
-
* > **Note:**
|
|
425
|
-
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
426
493
|
*
|
|
427
494
|
* @param key - Label key to delete.
|
|
428
495
|
* @public
|
|
429
496
|
* @documentationMaturity preview
|
|
430
497
|
* @requiredField key
|
|
431
498
|
* @permissionScope Manage Contact Labels
|
|
499
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
|
|
500
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
501
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
432
502
|
* @applicableIdentity APP
|
|
433
503
|
*/
|
|
434
504
|
export declare function deleteLabel(key: string): Promise<void>;
|
|
435
505
|
/**
|
|
436
506
|
* Creates a query to retrieve a list of labels.
|
|
437
507
|
*
|
|
438
|
-
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a
|
|
508
|
+
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a `LabelsQueryBuilder` object.
|
|
439
509
|
*
|
|
440
|
-
* The returned object contains the query definition, which is used to run the query using the
|
|
510
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` function.
|
|
441
511
|
*
|
|
442
512
|
* 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.
|
|
443
513
|
*
|
|
444
514
|
* `queryLabels()` runs with the following `LabelsQueryBuilder` defaults, which you can override:
|
|
445
|
-
* -
|
|
446
|
-
* -
|
|
447
|
-
* -
|
|
448
|
-
*
|
|
449
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
|
|
515
|
+
* - `skip(0)`
|
|
516
|
+
* - `limit(50)`
|
|
517
|
+
* - `descending('_createdDate')`
|
|
450
518
|
*
|
|
451
|
-
* The following `LabelsQueryBuilder` functions are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the
|
|
519
|
+
* 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`.
|
|
452
520
|
*
|
|
453
521
|
*
|
|
454
522
|
* @public
|
|
455
523
|
* @documentationMaturity preview
|
|
456
524
|
* @param options - Language options.
|
|
525
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
526
|
+
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
457
527
|
* @permissionScope Manage Contact Labels
|
|
528
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
|
|
529
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
530
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
458
531
|
* @applicableIdentity APP
|
|
459
532
|
*/
|
|
460
533
|
export declare function queryLabels(options?: QueryLabelsOptions): LabelsQueryBuilder;
|
|
@@ -468,9 +541,9 @@ export interface QueryLabelsOptions {
|
|
|
468
541
|
language?: string | null | undefined;
|
|
469
542
|
}
|
|
470
543
|
interface QueryOffsetResult {
|
|
471
|
-
currentPage: number;
|
|
472
|
-
totalPages: number;
|
|
473
|
-
totalCount: number;
|
|
544
|
+
currentPage: number | undefined;
|
|
545
|
+
totalPages: number | undefined;
|
|
546
|
+
totalCount: number | undefined;
|
|
474
547
|
hasNext: () => boolean;
|
|
475
548
|
hasPrev: () => boolean;
|
|
476
549
|
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.queryLabels = exports.deleteLabel = exports.renameLabel = exports.getLabel = exports.findOrCreateLabel = exports.SortOrder = exports.LabelType =
|
|
35
|
+
exports.queryLabels = exports.deleteLabel = exports.renameLabel = exports.getLabel = exports.findOrCreateLabel = exports.SortOrder = exports.LabelType = 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 ambassadorWixContactsV4Label = __importStar(require("./contacts-v4-label.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 LabelType;
|
|
@@ -55,12 +47,12 @@ var LabelType;
|
|
|
55
47
|
LabelType["SYSTEM"] = "SYSTEM";
|
|
56
48
|
LabelType["USER_DEFINED"] = "USER_DEFINED";
|
|
57
49
|
LabelType["WIX_APP_DEFINED"] = "WIX_APP_DEFINED";
|
|
58
|
-
})(LabelType
|
|
50
|
+
})(LabelType || (exports.LabelType = LabelType = {}));
|
|
59
51
|
var SortOrder;
|
|
60
52
|
(function (SortOrder) {
|
|
61
53
|
SortOrder["ASC"] = "ASC";
|
|
62
54
|
SortOrder["DESC"] = "DESC";
|
|
63
|
-
})(SortOrder
|
|
55
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
64
56
|
const _deleteLabelRequest = {};
|
|
65
57
|
const _deleteLabelResponse = {};
|
|
66
58
|
const _findOrCreateLabelRequest = {};
|
|
@@ -78,10 +70,8 @@ const _updateLabelResponse = {};
|
|
|
78
70
|
*
|
|
79
71
|
* Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
|
|
80
72
|
*
|
|
81
|
-
* To find an existing label without potentially creating a new one, use
|
|
73
|
+
* To find an existing label without potentially creating a new one, use `getLabel()` or `queryLabels()`.
|
|
82
74
|
*
|
|
83
|
-
* > **Note:**
|
|
84
|
-
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
85
75
|
*
|
|
86
76
|
* @param displayName - Display name to retrieve or create.
|
|
87
77
|
*
|
|
@@ -90,9 +80,13 @@ const _updateLabelResponse = {};
|
|
|
90
80
|
* the existing label is returned.
|
|
91
81
|
* If not, a new label is created and returned.
|
|
92
82
|
* @public
|
|
83
|
+
* @documentationMaturity preview
|
|
93
84
|
* @requiredField displayName
|
|
94
85
|
* @param options - Language options.
|
|
95
86
|
* @permissionScope Manage Contact Labels
|
|
87
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
|
|
88
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
89
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
96
90
|
* @applicableIdentity APP
|
|
97
91
|
* @returns Label that was found or created.
|
|
98
92
|
*/
|
|
@@ -126,7 +120,6 @@ function findOrCreateLabel(displayName, options) {
|
|
|
126
120
|
});
|
|
127
121
|
const payload = toAmbassadorRequest([displayName, options]);
|
|
128
122
|
const reqOpts = ambassadorWixContactsV4Label.findOrCreateLabel(payload);
|
|
129
|
-
__log(`"FindOrCreateLabel" sending request with: ${__inspect(reqOpts)}`);
|
|
130
123
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
131
124
|
try {
|
|
132
125
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -134,10 +127,14 @@ function findOrCreateLabel(displayName, options) {
|
|
|
134
127
|
return fromJSON(result.data);
|
|
135
128
|
}
|
|
136
129
|
catch (err) {
|
|
137
|
-
const transformedError = (0,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
130
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
131
|
+
spreadPathsToArguments: {},
|
|
132
|
+
explicitPathsToArguments: {
|
|
133
|
+
displayName: '$[0]',
|
|
134
|
+
language: '$[1].language',
|
|
135
|
+
},
|
|
136
|
+
singleArgumentUnchanged: false,
|
|
137
|
+
}, ['displayName', 'options']);
|
|
141
138
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
142
139
|
throw transformedError;
|
|
143
140
|
}
|
|
@@ -150,13 +147,18 @@ exports.findOrCreateLabel = findOrCreateLabel;
|
|
|
150
147
|
* The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
|
|
151
148
|
* @param key - Label key.
|
|
152
149
|
*
|
|
153
|
-
* `key` is generated when the label is created
|
|
154
|
-
*
|
|
150
|
+
* `key` is generated when the label is created.
|
|
151
|
+
* It cannot be modified, even if `displayName` is updated.
|
|
155
152
|
* @public
|
|
156
153
|
* @documentationMaturity preview
|
|
157
154
|
* @requiredField key
|
|
158
155
|
* @param options - Language options.
|
|
156
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
157
|
+
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
159
158
|
* @permissionScope Manage Contact Labels
|
|
159
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
|
|
160
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
161
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
160
162
|
* @applicableIdentity APP
|
|
161
163
|
* @returns The specified label.
|
|
162
164
|
*/
|
|
@@ -187,7 +189,6 @@ function getLabel(key, options) {
|
|
|
187
189
|
});
|
|
188
190
|
const payload = toAmbassadorRequest([key, options]);
|
|
189
191
|
const reqOpts = ambassadorWixContactsV4Label.getLabel(payload);
|
|
190
|
-
__log(`"GetLabel" sending request with: ${__inspect(reqOpts)}`);
|
|
191
192
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
192
193
|
try {
|
|
193
194
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -195,10 +196,11 @@ function getLabel(key, options) {
|
|
|
195
196
|
return fromJSON(result.data);
|
|
196
197
|
}
|
|
197
198
|
catch (err) {
|
|
198
|
-
const transformedError = (0,
|
|
199
|
-
|
|
200
|
-
'
|
|
201
|
-
|
|
199
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
200
|
+
spreadPathsToArguments: {},
|
|
201
|
+
explicitPathsToArguments: { key: '$[0]', language: '$[1].language' },
|
|
202
|
+
singleArgumentUnchanged: false,
|
|
203
|
+
}, ['key', 'options']);
|
|
202
204
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
203
205
|
throw transformedError;
|
|
204
206
|
}
|
|
@@ -206,26 +208,27 @@ function getLabel(key, options) {
|
|
|
206
208
|
}
|
|
207
209
|
exports.getLabel = getLabel;
|
|
208
210
|
/**
|
|
209
|
-
*
|
|
211
|
+
* Renames a label.
|
|
212
|
+
*
|
|
213
|
+
* The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
|
|
214
|
+
*
|
|
210
215
|
* @param key - Label key.
|
|
211
216
|
*
|
|
212
|
-
* `key` is generated when the label is created
|
|
213
|
-
*
|
|
217
|
+
* `key` is generated when the label is created.
|
|
218
|
+
* It cannot be modified, even if `displayName` is updated.
|
|
214
219
|
* @public
|
|
215
220
|
* @documentationMaturity preview
|
|
216
221
|
* @requiredField key
|
|
217
222
|
* @requiredField label
|
|
218
223
|
* @requiredField label.displayName
|
|
219
224
|
* @param options - Language options.
|
|
220
|
-
* @param label - Label
|
|
225
|
+
* @param label - Label to rename.
|
|
221
226
|
* @permissionScope Manage Contact Labels
|
|
227
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
|
|
228
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
229
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
222
230
|
* @applicableIdentity APP
|
|
223
|
-
* @returns
|
|
224
|
-
*
|
|
225
|
-
* The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
|
|
226
|
-
*
|
|
227
|
-
* >**Note:**
|
|
228
|
-
* > Only visitors with **Manage Contacts** permissions can rename a label.
|
|
231
|
+
* @returns
|
|
229
232
|
*/
|
|
230
233
|
function renameLabel(key, label, options) {
|
|
231
234
|
var _a, _b, _c;
|
|
@@ -257,7 +260,6 @@ function renameLabel(key, label, options) {
|
|
|
257
260
|
});
|
|
258
261
|
const payload = toAmbassadorRequest([key, label, options]);
|
|
259
262
|
const reqOpts = ambassadorWixContactsV4Label.updateLabel(payload);
|
|
260
|
-
__log(`"UpdateLabel" sending request with: ${__inspect(reqOpts)}`);
|
|
261
263
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
262
264
|
try {
|
|
263
265
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -265,11 +267,14 @@ function renameLabel(key, label, options) {
|
|
|
265
267
|
return fromJSON(result.data);
|
|
266
268
|
}
|
|
267
269
|
catch (err) {
|
|
268
|
-
const transformedError = (0,
|
|
269
|
-
'
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
270
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
271
|
+
spreadPathsToArguments: { label: '$[1]' },
|
|
272
|
+
explicitPathsToArguments: {
|
|
273
|
+
'label.key': '$[0]',
|
|
274
|
+
language: '$[2].language',
|
|
275
|
+
},
|
|
276
|
+
singleArgumentUnchanged: false,
|
|
277
|
+
}, ['key', 'label', 'options']);
|
|
273
278
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
274
279
|
throw transformedError;
|
|
275
280
|
}
|
|
@@ -281,14 +286,15 @@ exports.renameLabel = renameLabel;
|
|
|
281
286
|
*
|
|
282
287
|
* The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
|
|
283
288
|
*
|
|
284
|
-
* > **Note:**
|
|
285
|
-
* > Only visitors with **Manage Contacts** permissions can run this function.
|
|
286
289
|
*
|
|
287
290
|
* @param key - Label key to delete.
|
|
288
291
|
* @public
|
|
289
292
|
* @documentationMaturity preview
|
|
290
293
|
* @requiredField key
|
|
291
294
|
* @permissionScope Manage Contact Labels
|
|
295
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
|
|
296
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
297
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
292
298
|
* @applicableIdentity APP
|
|
293
299
|
*/
|
|
294
300
|
function deleteLabel(key) {
|
|
@@ -318,16 +324,17 @@ function deleteLabel(key) {
|
|
|
318
324
|
});
|
|
319
325
|
const payload = toAmbassadorRequest([key]);
|
|
320
326
|
const reqOpts = ambassadorWixContactsV4Label.deleteLabel(payload);
|
|
321
|
-
__log(`"DeleteLabel" sending request with: ${__inspect(reqOpts)}`);
|
|
322
327
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
323
328
|
try {
|
|
324
329
|
const result = yield httpClient.request(reqOpts);
|
|
325
330
|
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
326
331
|
}
|
|
327
332
|
catch (err) {
|
|
328
|
-
const transformedError = (0,
|
|
329
|
-
|
|
330
|
-
|
|
333
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
334
|
+
spreadPathsToArguments: {},
|
|
335
|
+
explicitPathsToArguments: { key: '$[0]' },
|
|
336
|
+
singleArgumentUnchanged: false,
|
|
337
|
+
}, ['key']);
|
|
331
338
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
332
339
|
throw transformedError;
|
|
333
340
|
}
|
|
@@ -337,26 +344,29 @@ exports.deleteLabel = deleteLabel;
|
|
|
337
344
|
/**
|
|
338
345
|
* Creates a query to retrieve a list of labels.
|
|
339
346
|
*
|
|
340
|
-
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a
|
|
347
|
+
* The `queryLabels()` function builds a query to retrieve a list of labels and returns a `LabelsQueryBuilder` object.
|
|
341
348
|
*
|
|
342
|
-
* The returned object contains the query definition, which is used to run the query using the
|
|
349
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` function.
|
|
343
350
|
*
|
|
344
351
|
* 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.
|
|
345
352
|
*
|
|
346
353
|
* `queryLabels()` runs with the following `LabelsQueryBuilder` defaults, which you can override:
|
|
347
|
-
* -
|
|
348
|
-
* -
|
|
349
|
-
* -
|
|
350
|
-
*
|
|
351
|
-
* >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
|
|
354
|
+
* - `skip(0)`
|
|
355
|
+
* - `limit(50)`
|
|
356
|
+
* - `descending('_createdDate')`
|
|
352
357
|
*
|
|
353
|
-
* The following `LabelsQueryBuilder` functions are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the
|
|
358
|
+
* 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`.
|
|
354
359
|
*
|
|
355
360
|
*
|
|
356
361
|
* @public
|
|
357
362
|
* @documentationMaturity preview
|
|
358
363
|
* @param options - Language options.
|
|
364
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
365
|
+
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
359
366
|
* @permissionScope Manage Contact Labels
|
|
367
|
+
* @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
|
|
368
|
+
* @permissionScope Manage Members and Contacts - all permissions
|
|
369
|
+
* @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
|
|
360
370
|
* @applicableIdentity APP
|
|
361
371
|
*/
|
|
362
372
|
function queryLabels(options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-label.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.universal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contacts-v4-label.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AACjC,sEAAuF;AAEvF,uFAAyE;AACzE,aAAa;AACb,4FAA6E;AAE7E,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAiD5B,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,kDAAkD;IAClD,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;IAC7B,gDAAmC,CAAA;AACrC,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AA6BD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA8RD,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AACtC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAo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AI,EAAE,CAAC,CAAC;AAC7C,CAAC;AA5DD,kCA4DC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.appendOrCreateContact = void 0;
|
|
4
|
+
const contacts_v4_submit_contact_public_1 = require("./contacts-v4-submit-contact.public");
|
|
5
|
+
const appendOrCreateContact = (...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_submit_contact_public_1.appendOrCreateContact)
|
|
13
|
+
.apply(undefined, args);
|
|
14
|
+
};
|
|
15
|
+
exports.appendOrCreateContact = appendOrCreateContact;
|
|
16
|
+
//# sourceMappingURL=contacts-v4-submit-contact.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts-v4-submit-contact.context.js","sourceRoot":"","sources":["../../../src/contacts-v4-submit-contact.context.ts"],"names":[],"mappings":";;;AAAA,2FAA2G;AAGpG,MAAM,qBAAqB,GAE9B,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,yDAA2B,CAAC;SAC3C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,qBAAqB,yBAahC"}
|