@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;
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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 = exports.__debug = void 0;
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 = exports.LabelType || (exports.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 = exports.SortOrder || (exports.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 [`getLabel()`](#getlabel) or [`queryLabels()`](#querylabels).
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, velo_1.transformError)(err, requestTransformation, [
138
- 'displayName',
139
- 'options',
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
- * and cannot be modified, even if `displayName` changes.
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, velo_1.transformError)(err, requestTransformation, [
199
- 'key',
200
- 'options',
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
- * Updates a label's specified properties.
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
- * and cannot be modified, even if `displayName` changes.
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 display name to rename.
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 Renames a label.
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, velo_1.transformError)(err, requestTransformation, [
269
- 'key',
270
- 'label',
271
- 'options',
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, velo_1.transformError)(err, requestTransformation, [
329
- 'key',
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 [`LabelsQueryBuilder`](#labelsquerybuilder) object.
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 [`find()`](#labelsquerybuilder/find) function.
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
- * - [`skip(0)`](#labelsquerybuilder/skip)
348
- * - [`limit(50)`](#labelsquerybuilder/limit)
349
- * - [`descending('_createdDate')`](#labelsquerybuilder/descending)
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 [`items`](#labelsqueryresult/items) property in [`LabelsQueryResult`](#labelsqueryresult).
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,uFAAyE;AACzE,aAAa;AACb,4FAA6E;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;AAEY,QAAA,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,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,kDAAkD;IAClD,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0CAA6B,CAAA;IAC7B,gDAAmC,CAAA;AACrC,CAAC,EANW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAMpB;AA6BD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AAqND,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,0BAA0B,GAAG,EA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,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,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,IAAA,4CAAqC,EAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AA5DD,kCA4DC"}
@@ -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,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"}