@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.
Files changed (186) hide show
  1. package/build/cjs/context.d.ts +5 -0
  2. package/build/cjs/context.js +32 -0
  3. package/build/cjs/context.js.map +1 -0
  4. package/build/cjs/index.d.ts +1 -0
  5. package/build/cjs/index.js +7 -2
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/index.typings.d.ts +1 -0
  8. package/build/cjs/index.typings.js +7 -2
  9. package/build/cjs/index.typings.js.map +1 -1
  10. package/build/cjs/meta.d.ts +1 -0
  11. package/build/cjs/meta.js +7 -2
  12. package/build/cjs/meta.js.map +1 -1
  13. package/build/cjs/src/contacts-v4-contact.context.d.ts +9 -0
  14. package/build/cjs/src/contacts-v4-contact.context.js +82 -0
  15. package/build/cjs/src/contacts-v4-contact.context.js.map +1 -0
  16. package/build/cjs/src/contacts-v4-contact.http.d.ts +20 -94
  17. package/build/cjs/src/contacts-v4-contact.http.js +211 -249
  18. package/build/cjs/src/contacts-v4-contact.http.js.map +1 -1
  19. package/build/cjs/src/contacts-v4-contact.meta.d.ts +1 -1
  20. package/build/cjs/src/contacts-v4-contact.meta.js +5 -1
  21. package/build/cjs/src/contacts-v4-contact.meta.js.map +1 -1
  22. package/build/cjs/src/contacts-v4-contact.public.d.ts +6 -6
  23. package/build/cjs/src/contacts-v4-contact.public.js +5 -2
  24. package/build/cjs/src/contacts-v4-contact.public.js.map +1 -1
  25. package/build/cjs/src/contacts-v4-contact.types.d.ts +265 -5
  26. package/build/cjs/src/contacts-v4-contact.types.js +40 -19
  27. package/build/cjs/src/contacts-v4-contact.types.js.map +1 -1
  28. package/build/cjs/src/contacts-v4-contact.universal.d.ts +221 -155
  29. package/build/cjs/src/contacts-v4-contact.universal.js +140 -168
  30. package/build/cjs/src/contacts-v4-contact.universal.js.map +1 -1
  31. package/build/cjs/src/contacts-v4-extended-field.context.d.ts +7 -0
  32. package/build/cjs/src/contacts-v4-extended-field.context.js +60 -0
  33. package/build/cjs/src/contacts-v4-extended-field.context.js.map +1 -0
  34. package/build/cjs/src/contacts-v4-extended-field.http.d.ts +7 -14
  35. package/build/cjs/src/contacts-v4-extended-field.http.js +60 -70
  36. package/build/cjs/src/contacts-v4-extended-field.http.js.map +1 -1
  37. package/build/cjs/src/contacts-v4-extended-field.meta.d.ts +1 -1
  38. package/build/cjs/src/contacts-v4-extended-field.meta.js +5 -1
  39. package/build/cjs/src/contacts-v4-extended-field.meta.js.map +1 -1
  40. package/build/cjs/src/contacts-v4-extended-field.public.d.ts +1 -1
  41. package/build/cjs/src/contacts-v4-extended-field.types.d.ts +68 -1
  42. package/build/cjs/src/contacts-v4-extended-field.types.js +3 -3
  43. package/build/cjs/src/contacts-v4-extended-field.types.js.map +1 -1
  44. package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +104 -30
  45. package/build/cjs/src/contacts-v4-extended-field.universal.js +58 -51
  46. package/build/cjs/src/contacts-v4-extended-field.universal.js.map +1 -1
  47. package/build/cjs/src/contacts-v4-label.context.d.ts +7 -0
  48. package/build/cjs/src/contacts-v4-label.context.js +60 -0
  49. package/build/cjs/src/contacts-v4-label.context.js.map +1 -0
  50. package/build/cjs/src/contacts-v4-label.http.d.ts +13 -14
  51. package/build/cjs/src/contacts-v4-label.http.js +66 -72
  52. package/build/cjs/src/contacts-v4-label.http.js.map +1 -1
  53. package/build/cjs/src/contacts-v4-label.meta.d.ts +1 -1
  54. package/build/cjs/src/contacts-v4-label.meta.js +5 -1
  55. package/build/cjs/src/contacts-v4-label.meta.js.map +1 -1
  56. package/build/cjs/src/contacts-v4-label.public.d.ts +5 -5
  57. package/build/cjs/src/contacts-v4-label.types.d.ts +76 -9
  58. package/build/cjs/src/contacts-v4-label.types.js +2 -2
  59. package/build/cjs/src/contacts-v4-label.types.js.map +1 -1
  60. package/build/cjs/src/contacts-v4-label.universal.d.ts +113 -40
  61. package/build/cjs/src/contacts-v4-label.universal.js +72 -62
  62. package/build/cjs/src/contacts-v4-label.universal.js.map +1 -1
  63. package/build/cjs/src/contacts-v4-submit-contact.context.d.ts +3 -0
  64. package/build/cjs/src/contacts-v4-submit-contact.context.js +16 -0
  65. package/build/cjs/src/contacts-v4-submit-contact.context.js.map +1 -0
  66. package/build/cjs/src/contacts-v4-submit-contact.http.js +20 -34
  67. package/build/cjs/src/contacts-v4-submit-contact.http.js.map +1 -1
  68. package/build/cjs/src/contacts-v4-submit-contact.meta.d.ts +1 -1
  69. package/build/cjs/src/contacts-v4-submit-contact.meta.js +5 -1
  70. package/build/cjs/src/contacts-v4-submit-contact.meta.js.map +1 -1
  71. package/build/cjs/src/contacts-v4-submit-contact.public.d.ts +2 -2
  72. package/build/cjs/src/contacts-v4-submit-contact.types.d.ts +8 -3
  73. package/build/cjs/src/contacts-v4-submit-contact.types.js +9 -9
  74. package/build/cjs/src/contacts-v4-submit-contact.types.js.map +1 -1
  75. package/build/cjs/src/contacts-v4-submit-contact.universal.d.ts +8 -9
  76. package/build/cjs/src/contacts-v4-submit-contact.universal.js +25 -28
  77. package/build/cjs/src/contacts-v4-submit-contact.universal.js.map +1 -1
  78. package/build/cjs/src/crm-tasks-v2-task.context.d.ts +9 -0
  79. package/build/cjs/src/crm-tasks-v2-task.context.js +82 -0
  80. package/build/cjs/src/crm-tasks-v2-task.context.js.map +1 -0
  81. package/build/cjs/src/crm-tasks-v2-task.http.d.ts +60 -0
  82. package/build/cjs/src/crm-tasks-v2-task.http.js +268 -0
  83. package/build/cjs/src/crm-tasks-v2-task.http.js.map +1 -0
  84. package/build/cjs/src/crm-tasks-v2-task.meta.d.ts +27 -0
  85. package/build/cjs/src/crm-tasks-v2-task.meta.js +161 -0
  86. package/build/cjs/src/crm-tasks-v2-task.meta.js.map +1 -0
  87. package/build/cjs/src/crm-tasks-v2-task.public.d.ts +29 -0
  88. package/build/cjs/src/crm-tasks-v2-task.public.js +53 -0
  89. package/build/cjs/src/crm-tasks-v2-task.public.js.map +1 -0
  90. package/build/cjs/src/crm-tasks-v2-task.types.d.ts +430 -0
  91. package/build/cjs/src/crm-tasks-v2-task.types.js +29 -0
  92. package/build/cjs/src/crm-tasks-v2-task.types.js.map +1 -0
  93. package/build/cjs/src/crm-tasks-v2-task.universal.d.ts +665 -0
  94. package/build/cjs/src/crm-tasks-v2-task.universal.js +515 -0
  95. package/build/cjs/src/crm-tasks-v2-task.universal.js.map +1 -0
  96. package/build/cjs/src/ping-notifications-v3-notification.public.d.ts +1 -1
  97. package/build/cjs/src/ping-notifications-v3-notification.types.js +1 -1
  98. package/build/cjs/src/ping-notifications-v3-notification.types.js.map +1 -1
  99. package/build/cjs/src/ping-notifications-v3-notification.universal.js +6 -2
  100. package/build/cjs/src/ping-notifications-v3-notification.universal.js.map +1 -1
  101. package/build/es/context.d.ts +5 -0
  102. package/build/es/context.js +6 -0
  103. package/build/es/context.js.map +1 -0
  104. package/build/es/index.d.ts +1 -0
  105. package/build/es/index.js +1 -0
  106. package/build/es/index.js.map +1 -1
  107. package/build/es/index.typings.d.ts +1 -0
  108. package/build/es/index.typings.js +1 -0
  109. package/build/es/index.typings.js.map +1 -1
  110. package/build/es/meta.d.ts +1 -0
  111. package/build/es/meta.js +1 -0
  112. package/build/es/meta.js.map +1 -1
  113. package/build/es/src/contacts-v4-contact.context.d.ts +9 -0
  114. package/build/es/src/contacts-v4-contact.context.js +72 -0
  115. package/build/es/src/contacts-v4-contact.context.js.map +1 -0
  116. package/build/es/src/contacts-v4-contact.http.d.ts +20 -94
  117. package/build/es/src/contacts-v4-contact.http.js +211 -249
  118. package/build/es/src/contacts-v4-contact.http.js.map +1 -1
  119. package/build/es/src/contacts-v4-contact.meta.d.ts +1 -1
  120. package/build/es/src/contacts-v4-contact.public.d.ts +6 -6
  121. package/build/es/src/contacts-v4-contact.public.js +2 -2
  122. package/build/es/src/contacts-v4-contact.public.js.map +1 -1
  123. package/build/es/src/contacts-v4-contact.types.d.ts +265 -5
  124. package/build/es/src/contacts-v4-contact.types.js +21 -0
  125. package/build/es/src/contacts-v4-contact.types.js.map +1 -1
  126. package/build/es/src/contacts-v4-contact.universal.d.ts +221 -155
  127. package/build/es/src/contacts-v4-contact.universal.js +117 -149
  128. package/build/es/src/contacts-v4-contact.universal.js.map +1 -1
  129. package/build/es/src/contacts-v4-extended-field.context.d.ts +7 -0
  130. package/build/es/src/contacts-v4-extended-field.context.js +52 -0
  131. package/build/es/src/contacts-v4-extended-field.context.js.map +1 -0
  132. package/build/es/src/contacts-v4-extended-field.http.d.ts +7 -14
  133. package/build/es/src/contacts-v4-extended-field.http.js +60 -70
  134. package/build/es/src/contacts-v4-extended-field.http.js.map +1 -1
  135. package/build/es/src/contacts-v4-extended-field.meta.d.ts +1 -1
  136. package/build/es/src/contacts-v4-extended-field.public.d.ts +1 -1
  137. package/build/es/src/contacts-v4-extended-field.types.d.ts +68 -1
  138. package/build/es/src/contacts-v4-extended-field.universal.d.ts +104 -30
  139. package/build/es/src/contacts-v4-extended-field.universal.js +49 -46
  140. package/build/es/src/contacts-v4-extended-field.universal.js.map +1 -1
  141. package/build/es/src/contacts-v4-label.context.d.ts +7 -0
  142. package/build/es/src/contacts-v4-label.context.js +52 -0
  143. package/build/es/src/contacts-v4-label.context.js.map +1 -0
  144. package/build/es/src/contacts-v4-label.http.d.ts +13 -14
  145. package/build/es/src/contacts-v4-label.http.js +66 -72
  146. package/build/es/src/contacts-v4-label.http.js.map +1 -1
  147. package/build/es/src/contacts-v4-label.meta.d.ts +1 -1
  148. package/build/es/src/contacts-v4-label.public.d.ts +5 -5
  149. package/build/es/src/contacts-v4-label.types.d.ts +76 -9
  150. package/build/es/src/contacts-v4-label.universal.d.ts +113 -40
  151. package/build/es/src/contacts-v4-label.universal.js +64 -58
  152. package/build/es/src/contacts-v4-label.universal.js.map +1 -1
  153. package/build/es/src/contacts-v4-submit-contact.context.d.ts +3 -0
  154. package/build/es/src/contacts-v4-submit-contact.context.js +12 -0
  155. package/build/es/src/contacts-v4-submit-contact.context.js.map +1 -0
  156. package/build/es/src/contacts-v4-submit-contact.http.js +20 -34
  157. package/build/es/src/contacts-v4-submit-contact.http.js.map +1 -1
  158. package/build/es/src/contacts-v4-submit-contact.meta.d.ts +1 -1
  159. package/build/es/src/contacts-v4-submit-contact.public.d.ts +2 -2
  160. package/build/es/src/contacts-v4-submit-contact.types.d.ts +8 -3
  161. package/build/es/src/contacts-v4-submit-contact.types.js.map +1 -1
  162. package/build/es/src/contacts-v4-submit-contact.universal.d.ts +8 -9
  163. package/build/es/src/contacts-v4-submit-contact.universal.js +11 -18
  164. package/build/es/src/contacts-v4-submit-contact.universal.js.map +1 -1
  165. package/build/es/src/crm-tasks-v2-task.context.d.ts +9 -0
  166. package/build/es/src/crm-tasks-v2-task.context.js +72 -0
  167. package/build/es/src/crm-tasks-v2-task.context.js.map +1 -0
  168. package/build/es/src/crm-tasks-v2-task.http.d.ts +60 -0
  169. package/build/es/src/crm-tasks-v2-task.http.js +258 -0
  170. package/build/es/src/crm-tasks-v2-task.http.js.map +1 -0
  171. package/build/es/src/crm-tasks-v2-task.meta.d.ts +27 -0
  172. package/build/es/src/crm-tasks-v2-task.meta.js +128 -0
  173. package/build/es/src/crm-tasks-v2-task.meta.js.map +1 -0
  174. package/build/es/src/crm-tasks-v2-task.public.d.ts +29 -0
  175. package/build/es/src/crm-tasks-v2-task.public.js +39 -0
  176. package/build/es/src/crm-tasks-v2-task.public.js.map +1 -0
  177. package/build/es/src/crm-tasks-v2-task.types.d.ts +430 -0
  178. package/build/es/src/crm-tasks-v2-task.types.js +26 -0
  179. package/build/es/src/crm-tasks-v2-task.types.js.map +1 -0
  180. package/build/es/src/crm-tasks-v2-task.universal.d.ts +665 -0
  181. package/build/es/src/crm-tasks-v2-task.universal.js +482 -0
  182. package/build/es/src/crm-tasks-v2-task.universal.js.map +1 -0
  183. package/build/es/src/ping-notifications-v3-notification.public.d.ts +1 -1
  184. package/build/es/src/ping-notifications-v3-notification.universal.js.map +1 -1
  185. package/context/package.json +6 -0
  186. 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 contributors or 3rd-party apps
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
- * and cannot be modified, even if `displayName` changes.
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
- * and cannot be modified, even if `displayName` changes.
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 [`getLabel()`](#getlabel) or [`queryLabels()`](#querylabels).
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
- * and cannot be modified, even if `displayName` changes.
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
- * Updates a label's specified properties.
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
- * and cannot be modified, even if `displayName` changes.
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 display name to rename.
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 Renames a label.
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 contributors or 3rd-party apps
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 [`LabelsQueryBuilder`](#labelsquerybuilder) object.
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 [`find()`](#labelsquerybuilder/find) function.
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
- * - [`skip(0)`](#labelsquerybuilder/skip)
446
- * - [`limit(50)`](#labelsquerybuilder/limit)
447
- * - [`descending('_createdDate')`](#labelsquerybuilder/descending)
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 [`items`](#labelsqueryresult/items) property in [`LabelsQueryResult`](#labelsqueryresult).
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;
@@ -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 ambassadorWixContactsV4Label from './contacts-v4-label.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 LabelType;
@@ -56,10 +44,8 @@ const _updateLabelResponse = {};
56
44
  *
57
45
  * Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
58
46
  *
59
- * To find an existing label without potentially creating a new one, use [`getLabel()`](#getlabel) or [`queryLabels()`](#querylabels).
47
+ * To find an existing label without potentially creating a new one, use `getLabel()` or `queryLabels()`.
60
48
  *
61
- * > **Note:**
62
- * > Only visitors with **Manage Contacts** permissions can run this function.
63
49
  *
64
50
  * @param displayName - Display name to retrieve or create.
65
51
  *
@@ -68,9 +54,13 @@ const _updateLabelResponse = {};
68
54
  * the existing label is returned.
69
55
  * If not, a new label is created and returned.
70
56
  * @public
57
+ * @documentationMaturity preview
71
58
  * @requiredField displayName
72
59
  * @param options - Language options.
73
60
  * @permissionScope Manage Contact Labels
61
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
62
+ * @permissionScope Manage Members and Contacts - all permissions
63
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
74
64
  * @applicableIdentity APP
75
65
  * @returns Label that was found or created.
76
66
  */
@@ -104,7 +94,6 @@ export function findOrCreateLabel(displayName, options) {
104
94
  });
105
95
  const payload = toAmbassadorRequest([displayName, options]);
106
96
  const reqOpts = ambassadorWixContactsV4Label.findOrCreateLabel(payload);
107
- __log(`"FindOrCreateLabel" sending request with: ${__inspect(reqOpts)}`);
108
97
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
109
98
  try {
110
99
  const result = yield httpClient.request(reqOpts);
@@ -112,10 +101,14 @@ export function findOrCreateLabel(displayName, options) {
112
101
  return fromJSON(result.data);
113
102
  }
114
103
  catch (err) {
115
- const transformedError = transformError(err, requestTransformation, [
116
- 'displayName',
117
- 'options',
118
- ]);
104
+ const transformedError = sdkTransformError(err, {
105
+ spreadPathsToArguments: {},
106
+ explicitPathsToArguments: {
107
+ displayName: '$[0]',
108
+ language: '$[1].language',
109
+ },
110
+ singleArgumentUnchanged: false,
111
+ }, ['displayName', 'options']);
119
112
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
120
113
  throw transformedError;
121
114
  }
@@ -127,13 +120,18 @@ export function findOrCreateLabel(displayName, options) {
127
120
  * The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
128
121
  * @param key - Label key.
129
122
  *
130
- * `key` is generated when the label is created
131
- * and cannot be modified, even if `displayName` changes.
123
+ * `key` is generated when the label is created.
124
+ * It cannot be modified, even if `displayName` is updated.
132
125
  * @public
133
126
  * @documentationMaturity preview
134
127
  * @requiredField key
135
128
  * @param options - Language options.
129
+ * @permissionScope Manage Bookings Services and Settings
130
+ * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
136
131
  * @permissionScope Manage Contact Labels
132
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
133
+ * @permissionScope Manage Members and Contacts - all permissions
134
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
137
135
  * @applicableIdentity APP
138
136
  * @returns The specified label.
139
137
  */
@@ -164,7 +162,6 @@ export function getLabel(key, options) {
164
162
  });
165
163
  const payload = toAmbassadorRequest([key, options]);
166
164
  const reqOpts = ambassadorWixContactsV4Label.getLabel(payload);
167
- __log(`"GetLabel" sending request with: ${__inspect(reqOpts)}`);
168
165
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
169
166
  try {
170
167
  const result = yield httpClient.request(reqOpts);
@@ -172,36 +169,38 @@ export function getLabel(key, options) {
172
169
  return fromJSON(result.data);
173
170
  }
174
171
  catch (err) {
175
- const transformedError = transformError(err, requestTransformation, [
176
- 'key',
177
- 'options',
178
- ]);
172
+ const transformedError = sdkTransformError(err, {
173
+ spreadPathsToArguments: {},
174
+ explicitPathsToArguments: { key: '$[0]', language: '$[1].language' },
175
+ singleArgumentUnchanged: false,
176
+ }, ['key', 'options']);
179
177
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
180
178
  throw transformedError;
181
179
  }
182
180
  });
183
181
  }
184
182
  /**
185
- * Updates a label's specified properties.
183
+ * Renames a label.
184
+ *
185
+ * The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
186
+ *
186
187
  * @param key - Label key.
187
188
  *
188
- * `key` is generated when the label is created
189
- * and cannot be modified, even if `displayName` changes.
189
+ * `key` is generated when the label is created.
190
+ * It cannot be modified, even if `displayName` is updated.
190
191
  * @public
191
192
  * @documentationMaturity preview
192
193
  * @requiredField key
193
194
  * @requiredField label
194
195
  * @requiredField label.displayName
195
196
  * @param options - Language options.
196
- * @param label - Label display name to rename.
197
+ * @param label - Label to rename.
197
198
  * @permissionScope Manage Contact Labels
199
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
200
+ * @permissionScope Manage Members and Contacts - all permissions
201
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
198
202
  * @applicableIdentity APP
199
- * @returns Renames a label.
200
- *
201
- * The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
202
- *
203
- * >**Note:**
204
- * > Only visitors with **Manage Contacts** permissions can rename a label.
203
+ * @returns
205
204
  */
206
205
  export function renameLabel(key, label, options) {
207
206
  var _a, _b, _c;
@@ -233,7 +232,6 @@ export function renameLabel(key, label, options) {
233
232
  });
234
233
  const payload = toAmbassadorRequest([key, label, options]);
235
234
  const reqOpts = ambassadorWixContactsV4Label.updateLabel(payload);
236
- __log(`"UpdateLabel" sending request with: ${__inspect(reqOpts)}`);
237
235
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
238
236
  try {
239
237
  const result = yield httpClient.request(reqOpts);
@@ -241,11 +239,14 @@ export function renameLabel(key, label, options) {
241
239
  return fromJSON(result.data);
242
240
  }
243
241
  catch (err) {
244
- const transformedError = transformError(err, requestTransformation, [
245
- 'key',
246
- 'label',
247
- 'options',
248
- ]);
242
+ const transformedError = sdkTransformError(err, {
243
+ spreadPathsToArguments: { label: '$[1]' },
244
+ explicitPathsToArguments: {
245
+ 'label.key': '$[0]',
246
+ language: '$[2].language',
247
+ },
248
+ singleArgumentUnchanged: false,
249
+ }, ['key', 'label', 'options']);
249
250
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
250
251
  throw transformedError;
251
252
  }
@@ -256,14 +257,15 @@ export function renameLabel(key, label, options) {
256
257
  *
257
258
  * The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
258
259
  *
259
- * > **Note:**
260
- * > Only visitors with **Manage Contacts** permissions can run this function.
261
260
  *
262
261
  * @param key - Label key to delete.
263
262
  * @public
264
263
  * @documentationMaturity preview
265
264
  * @requiredField key
266
265
  * @permissionScope Manage Contact Labels
266
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
267
+ * @permissionScope Manage Members and Contacts - all permissions
268
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
267
269
  * @applicableIdentity APP
268
270
  */
269
271
  export function deleteLabel(key) {
@@ -293,16 +295,17 @@ export function deleteLabel(key) {
293
295
  });
294
296
  const payload = toAmbassadorRequest([key]);
295
297
  const reqOpts = ambassadorWixContactsV4Label.deleteLabel(payload);
296
- __log(`"DeleteLabel" sending request with: ${__inspect(reqOpts)}`);
297
298
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
298
299
  try {
299
300
  const result = yield httpClient.request(reqOpts);
300
301
  (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
301
302
  }
302
303
  catch (err) {
303
- const transformedError = transformError(err, requestTransformation, [
304
- 'key',
305
- ]);
304
+ const transformedError = sdkTransformError(err, {
305
+ spreadPathsToArguments: {},
306
+ explicitPathsToArguments: { key: '$[0]' },
307
+ singleArgumentUnchanged: false,
308
+ }, ['key']);
306
309
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
307
310
  throw transformedError;
308
311
  }
@@ -311,26 +314,29 @@ export function deleteLabel(key) {
311
314
  /**
312
315
  * Creates a query to retrieve a list of labels.
313
316
  *
314
- * The `queryLabels()` function builds a query to retrieve a list of labels and returns a [`LabelsQueryBuilder`](#labelsquerybuilder) object.
317
+ * The `queryLabels()` function builds a query to retrieve a list of labels and returns a `LabelsQueryBuilder` object.
315
318
  *
316
- * The returned object contains the query definition, which is used to run the query using the [`find()`](#labelsquerybuilder/find) function.
319
+ * The returned object contains the query definition, which is used to run the query using the `find()` function.
317
320
  *
318
321
  * 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.
319
322
  *
320
323
  * `queryLabels()` runs with the following `LabelsQueryBuilder` defaults, which you can override:
321
- * - [`skip(0)`](#labelsquerybuilder/skip)
322
- * - [`limit(50)`](#labelsquerybuilder/limit)
323
- * - [`descending('_createdDate')`](#labelsquerybuilder/descending)
324
- *
325
- * >**Note:** Only visitors with **Manage Contacts** permissions can query labels.
324
+ * - `skip(0)`
325
+ * - `limit(50)`
326
+ * - `descending('_createdDate')`
326
327
  *
327
- * The following `LabelsQueryBuilder` functions are supported for `queryLabels()`. For a full description of the `Labels` object, see the object returned for the [`items`](#labelsqueryresult/items) property in [`LabelsQueryResult`](#labelsqueryresult).
328
+ * 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`.
328
329
  *
329
330
  *
330
331
  * @public
331
332
  * @documentationMaturity preview
332
333
  * @param options - Language options.
334
+ * @permissionScope Manage Bookings Services and Settings
335
+ * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
333
336
  * @permissionScope Manage Contact Labels
337
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
338
+ * @permissionScope Manage Members and Contacts - all permissions
339
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
334
340
  * @applicableIdentity APP
335
341
  */
336
342
  export function queryLabels(options) {
@@ -1 +1 @@
1
- {"version":3,"file":"contacts-v4-label.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,4BAA4B,MAAM,0BAA0B,CAAC;AACzE,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAiD5B,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,kDAAkD;IAClD,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;IAC7B,gDAAmC,CAAA;AACrC,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AA6BD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,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CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC"}
1
+ {"version":3,"file":"contacts-v4-label.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-label.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAEvF,OAAO,KAAK,4BAA4B,MAAM,0BAA0B,CAAC;AACzE,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAiD5B,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,kDAAkD;IAClD,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;IAC7B,gDAAmC,CAAA;AACrC,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AA6BD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,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,oBAAoB,GAAG,EAAE,CAAC;AAEhC;;;;;;;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AAI,EAAE,CAAO,OAAY,EAAE,EAAE;;YAC3B,MAAM,OAAO,GAAG,4BAA4B,CAAC,WAAW,iCACnD,OAAO,GACP,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,EAClB,CAAC;YAEH,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,3 @@
1
+ import { appendOrCreateContact as publicAppendOrCreateContact } from './contacts-v4-submit-contact.public';
2
+ import { BuildRESTFunction } from '@wix/sdk-types';
3
+ export declare const appendOrCreateContact: BuildRESTFunction<typeof publicAppendOrCreateContact>;
@@ -0,0 +1,12 @@
1
+ import { appendOrCreateContact as publicAppendOrCreateContact } from './contacts-v4-submit-contact.public';
2
+ export const appendOrCreateContact = (...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(publicAppendOrCreateContact)
10
+ .apply(undefined, args);
11
+ };
12
+ //# 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,OAAO,EAAE,qBAAqB,IAAI,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAG3G,MAAM,CAAC,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,2BAA2B,CAAC;SAC3C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}