@wix/crm 1.0.80 → 1.0.82

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 (194) 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 +7 -6
  23. package/build/cjs/src/contacts-v4-contact.public.js +10 -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 +234 -155
  29. package/build/cjs/src/contacts-v4-contact.universal.js +145 -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 +2 -1
  41. package/build/cjs/src/contacts-v4-extended-field.public.js +5 -1
  42. package/build/cjs/src/contacts-v4-extended-field.public.js.map +1 -1
  43. package/build/cjs/src/contacts-v4-extended-field.types.d.ts +68 -1
  44. package/build/cjs/src/contacts-v4-extended-field.types.js +3 -3
  45. package/build/cjs/src/contacts-v4-extended-field.types.js.map +1 -1
  46. package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +116 -30
  47. package/build/cjs/src/contacts-v4-extended-field.universal.js +62 -51
  48. package/build/cjs/src/contacts-v4-extended-field.universal.js.map +1 -1
  49. package/build/cjs/src/contacts-v4-label.context.d.ts +7 -0
  50. package/build/cjs/src/contacts-v4-label.context.js +60 -0
  51. package/build/cjs/src/contacts-v4-label.context.js.map +1 -0
  52. package/build/cjs/src/contacts-v4-label.http.d.ts +13 -14
  53. package/build/cjs/src/contacts-v4-label.http.js +66 -72
  54. package/build/cjs/src/contacts-v4-label.http.js.map +1 -1
  55. package/build/cjs/src/contacts-v4-label.meta.d.ts +1 -1
  56. package/build/cjs/src/contacts-v4-label.meta.js +5 -1
  57. package/build/cjs/src/contacts-v4-label.meta.js.map +1 -1
  58. package/build/cjs/src/contacts-v4-label.public.d.ts +6 -5
  59. package/build/cjs/src/contacts-v4-label.public.js +5 -1
  60. package/build/cjs/src/contacts-v4-label.public.js.map +1 -1
  61. package/build/cjs/src/contacts-v4-label.types.d.ts +76 -9
  62. package/build/cjs/src/contacts-v4-label.types.js +2 -2
  63. package/build/cjs/src/contacts-v4-label.types.js.map +1 -1
  64. package/build/cjs/src/contacts-v4-label.universal.d.ts +125 -40
  65. package/build/cjs/src/contacts-v4-label.universal.js +76 -62
  66. package/build/cjs/src/contacts-v4-label.universal.js.map +1 -1
  67. package/build/cjs/src/contacts-v4-submit-contact.context.d.ts +3 -0
  68. package/build/cjs/src/contacts-v4-submit-contact.context.js +16 -0
  69. package/build/cjs/src/contacts-v4-submit-contact.context.js.map +1 -0
  70. package/build/cjs/src/contacts-v4-submit-contact.http.js +20 -34
  71. package/build/cjs/src/contacts-v4-submit-contact.http.js.map +1 -1
  72. package/build/cjs/src/contacts-v4-submit-contact.meta.d.ts +1 -1
  73. package/build/cjs/src/contacts-v4-submit-contact.meta.js +5 -1
  74. package/build/cjs/src/contacts-v4-submit-contact.meta.js.map +1 -1
  75. package/build/cjs/src/contacts-v4-submit-contact.public.d.ts +2 -2
  76. package/build/cjs/src/contacts-v4-submit-contact.types.d.ts +8 -3
  77. package/build/cjs/src/contacts-v4-submit-contact.types.js +9 -9
  78. package/build/cjs/src/contacts-v4-submit-contact.types.js.map +1 -1
  79. package/build/cjs/src/contacts-v4-submit-contact.universal.d.ts +8 -9
  80. package/build/cjs/src/contacts-v4-submit-contact.universal.js +25 -28
  81. package/build/cjs/src/contacts-v4-submit-contact.universal.js.map +1 -1
  82. package/build/cjs/src/crm-tasks-v2-task.context.d.ts +9 -0
  83. package/build/cjs/src/crm-tasks-v2-task.context.js +82 -0
  84. package/build/cjs/src/crm-tasks-v2-task.context.js.map +1 -0
  85. package/build/cjs/src/crm-tasks-v2-task.http.d.ts +60 -0
  86. package/build/cjs/src/crm-tasks-v2-task.http.js +268 -0
  87. package/build/cjs/src/crm-tasks-v2-task.http.js.map +1 -0
  88. package/build/cjs/src/crm-tasks-v2-task.meta.d.ts +27 -0
  89. package/build/cjs/src/crm-tasks-v2-task.meta.js +161 -0
  90. package/build/cjs/src/crm-tasks-v2-task.meta.js.map +1 -0
  91. package/build/cjs/src/crm-tasks-v2-task.public.d.ts +30 -0
  92. package/build/cjs/src/crm-tasks-v2-task.public.js +58 -0
  93. package/build/cjs/src/crm-tasks-v2-task.public.js.map +1 -0
  94. package/build/cjs/src/crm-tasks-v2-task.types.d.ts +430 -0
  95. package/build/cjs/src/crm-tasks-v2-task.types.js +29 -0
  96. package/build/cjs/src/crm-tasks-v2-task.types.js.map +1 -0
  97. package/build/cjs/src/crm-tasks-v2-task.universal.d.ts +678 -0
  98. package/build/cjs/src/crm-tasks-v2-task.universal.js +520 -0
  99. package/build/cjs/src/crm-tasks-v2-task.universal.js.map +1 -0
  100. package/build/cjs/src/ping-notifications-v3-notification.public.d.ts +1 -1
  101. package/build/cjs/src/ping-notifications-v3-notification.types.js +1 -1
  102. package/build/cjs/src/ping-notifications-v3-notification.types.js.map +1 -1
  103. package/build/cjs/src/ping-notifications-v3-notification.universal.js +6 -2
  104. package/build/cjs/src/ping-notifications-v3-notification.universal.js.map +1 -1
  105. package/build/es/context.d.ts +5 -0
  106. package/build/es/context.js +6 -0
  107. package/build/es/context.js.map +1 -0
  108. package/build/es/index.d.ts +1 -0
  109. package/build/es/index.js +1 -0
  110. package/build/es/index.js.map +1 -1
  111. package/build/es/index.typings.d.ts +1 -0
  112. package/build/es/index.typings.js +1 -0
  113. package/build/es/index.typings.js.map +1 -1
  114. package/build/es/meta.d.ts +1 -0
  115. package/build/es/meta.js +1 -0
  116. package/build/es/meta.js.map +1 -1
  117. package/build/es/src/contacts-v4-contact.context.d.ts +9 -0
  118. package/build/es/src/contacts-v4-contact.context.js +72 -0
  119. package/build/es/src/contacts-v4-contact.context.js.map +1 -0
  120. package/build/es/src/contacts-v4-contact.http.d.ts +20 -94
  121. package/build/es/src/contacts-v4-contact.http.js +211 -249
  122. package/build/es/src/contacts-v4-contact.http.js.map +1 -1
  123. package/build/es/src/contacts-v4-contact.meta.d.ts +1 -1
  124. package/build/es/src/contacts-v4-contact.public.d.ts +7 -6
  125. package/build/es/src/contacts-v4-contact.public.js +3 -2
  126. package/build/es/src/contacts-v4-contact.public.js.map +1 -1
  127. package/build/es/src/contacts-v4-contact.types.d.ts +265 -5
  128. package/build/es/src/contacts-v4-contact.types.js +21 -0
  129. package/build/es/src/contacts-v4-contact.types.js.map +1 -1
  130. package/build/es/src/contacts-v4-contact.universal.d.ts +234 -155
  131. package/build/es/src/contacts-v4-contact.universal.js +122 -149
  132. package/build/es/src/contacts-v4-contact.universal.js.map +1 -1
  133. package/build/es/src/contacts-v4-extended-field.context.d.ts +7 -0
  134. package/build/es/src/contacts-v4-extended-field.context.js +52 -0
  135. package/build/es/src/contacts-v4-extended-field.context.js.map +1 -0
  136. package/build/es/src/contacts-v4-extended-field.http.d.ts +7 -14
  137. package/build/es/src/contacts-v4-extended-field.http.js +60 -70
  138. package/build/es/src/contacts-v4-extended-field.http.js.map +1 -1
  139. package/build/es/src/contacts-v4-extended-field.meta.d.ts +1 -1
  140. package/build/es/src/contacts-v4-extended-field.public.d.ts +2 -1
  141. package/build/es/src/contacts-v4-extended-field.public.js +1 -0
  142. package/build/es/src/contacts-v4-extended-field.public.js.map +1 -1
  143. package/build/es/src/contacts-v4-extended-field.types.d.ts +68 -1
  144. package/build/es/src/contacts-v4-extended-field.universal.d.ts +116 -30
  145. package/build/es/src/contacts-v4-extended-field.universal.js +53 -46
  146. package/build/es/src/contacts-v4-extended-field.universal.js.map +1 -1
  147. package/build/es/src/contacts-v4-label.context.d.ts +7 -0
  148. package/build/es/src/contacts-v4-label.context.js +52 -0
  149. package/build/es/src/contacts-v4-label.context.js.map +1 -0
  150. package/build/es/src/contacts-v4-label.http.d.ts +13 -14
  151. package/build/es/src/contacts-v4-label.http.js +66 -72
  152. package/build/es/src/contacts-v4-label.http.js.map +1 -1
  153. package/build/es/src/contacts-v4-label.meta.d.ts +1 -1
  154. package/build/es/src/contacts-v4-label.public.d.ts +6 -5
  155. package/build/es/src/contacts-v4-label.public.js +1 -0
  156. package/build/es/src/contacts-v4-label.public.js.map +1 -1
  157. package/build/es/src/contacts-v4-label.types.d.ts +76 -9
  158. package/build/es/src/contacts-v4-label.universal.d.ts +125 -40
  159. package/build/es/src/contacts-v4-label.universal.js +68 -58
  160. package/build/es/src/contacts-v4-label.universal.js.map +1 -1
  161. package/build/es/src/contacts-v4-submit-contact.context.d.ts +3 -0
  162. package/build/es/src/contacts-v4-submit-contact.context.js +12 -0
  163. package/build/es/src/contacts-v4-submit-contact.context.js.map +1 -0
  164. package/build/es/src/contacts-v4-submit-contact.http.js +20 -34
  165. package/build/es/src/contacts-v4-submit-contact.http.js.map +1 -1
  166. package/build/es/src/contacts-v4-submit-contact.meta.d.ts +1 -1
  167. package/build/es/src/contacts-v4-submit-contact.public.d.ts +2 -2
  168. package/build/es/src/contacts-v4-submit-contact.types.d.ts +8 -3
  169. package/build/es/src/contacts-v4-submit-contact.types.js.map +1 -1
  170. package/build/es/src/contacts-v4-submit-contact.universal.d.ts +8 -9
  171. package/build/es/src/contacts-v4-submit-contact.universal.js +11 -18
  172. package/build/es/src/contacts-v4-submit-contact.universal.js.map +1 -1
  173. package/build/es/src/crm-tasks-v2-task.context.d.ts +9 -0
  174. package/build/es/src/crm-tasks-v2-task.context.js +72 -0
  175. package/build/es/src/crm-tasks-v2-task.context.js.map +1 -0
  176. package/build/es/src/crm-tasks-v2-task.http.d.ts +60 -0
  177. package/build/es/src/crm-tasks-v2-task.http.js +258 -0
  178. package/build/es/src/crm-tasks-v2-task.http.js.map +1 -0
  179. package/build/es/src/crm-tasks-v2-task.meta.d.ts +27 -0
  180. package/build/es/src/crm-tasks-v2-task.meta.js +128 -0
  181. package/build/es/src/crm-tasks-v2-task.meta.js.map +1 -0
  182. package/build/es/src/crm-tasks-v2-task.public.d.ts +30 -0
  183. package/build/es/src/crm-tasks-v2-task.public.js +40 -0
  184. package/build/es/src/crm-tasks-v2-task.public.js.map +1 -0
  185. package/build/es/src/crm-tasks-v2-task.types.d.ts +430 -0
  186. package/build/es/src/crm-tasks-v2-task.types.js +26 -0
  187. package/build/es/src/crm-tasks-v2-task.types.js.map +1 -0
  188. package/build/es/src/crm-tasks-v2-task.universal.d.ts +678 -0
  189. package/build/es/src/crm-tasks-v2-task.universal.js +487 -0
  190. package/build/es/src/crm-tasks-v2-task.universal.js.map +1 -0
  191. package/build/es/src/ping-notifications-v3-notification.public.d.ts +1 -1
  192. package/build/es/src/ping-notifications-v3-notification.universal.js.map +1 -1
  193. package/context/package.json +6 -0
  194. package/package.json +12 -6
@@ -1,15 +1,10 @@
1
- export declare const __debug: {
2
- verboseLogging: {
3
- on: () => boolean;
4
- off: () => boolean;
5
- };
6
- };
1
+ import { EventDefinition } from '@wix/sdk-types';
7
2
  /** Label that was found or created. */
8
3
  export interface ContactLabel {
9
4
  /**
10
5
  * Label namespace.
11
6
  *
12
- * Labels created by site contributors or 3rd-party apps
7
+ * Labels created by site admins or 3rd-party apps
13
8
  * are automatically assigned to the `custom` namespace.
14
9
  * @readonly
15
10
  */
@@ -23,8 +18,8 @@ export interface ContactLabel {
23
18
  /**
24
19
  * Label key.
25
20
  *
26
- * `key` is generated when the label is created
27
- * and cannot be modified, even if `displayName` changes.
21
+ * `key` is generated when the label is created.
22
+ * It cannot be modified, even if `displayName` is updated.
28
23
  * @readonly
29
24
  */
30
25
  key?: string;
@@ -170,8 +165,8 @@ export interface GetLabelRequest {
170
165
  /**
171
166
  * Label key.
172
167
  *
173
- * `key` is generated when the label is created
174
- * and cannot be modified, even if `displayName` changes.
168
+ * `key` is generated when the label is created.
169
+ * It cannot be modified, even if `displayName` is updated.
175
170
  */
176
171
  key: string;
177
172
  /** Language for localization. */
@@ -257,6 +252,81 @@ export interface QueryLabelsResponse {
257
252
  /** Details on the paged set of results returned. */
258
253
  pagingMetadata?: PagingMetadata;
259
254
  }
255
+ export interface DomainEvent<T = string> extends DomainEventBodyOneOf<T> {
256
+ createdEvent?: EntityCreatedEvent<T>;
257
+ updatedEvent?: EntityUpdatedEvent<T>;
258
+ deletedEvent?: EntityDeletedEvent<T>;
259
+ actionEvent?: ActionEvent<T>;
260
+ /**
261
+ * Unique event ID.
262
+ * Allows clients to ignore duplicate webhooks.
263
+ */
264
+ _id?: string;
265
+ /**
266
+ * Assumes actions are also always typed to an entity_type
267
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
268
+ */
269
+ entityFqdn?: string;
270
+ /**
271
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
272
+ * This is although the created/updated/deleted notion is duplication of the oneof types
273
+ * Example: created/updated/deleted/started/completed/email_opened
274
+ */
275
+ slug?: string;
276
+ /** ID of the entity associated with the event. */
277
+ entityId?: string;
278
+ /** Event timestamp. */
279
+ eventTime?: Date;
280
+ /**
281
+ * Whether the event was triggered as a result of a privacy regulation application
282
+ * (for example, GDPR).
283
+ */
284
+ triggeredByAnonymizeRequest?: boolean | null;
285
+ /** If present, indicates the action that triggered the event. */
286
+ originatedFrom?: string | null;
287
+ /**
288
+ * A sequence number defining the order of updates to the underlying entity.
289
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
290
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
291
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
292
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
293
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
294
+ */
295
+ entityEventSequence?: string | null;
296
+ }
297
+ export interface DomainCreatedEvent<T> extends Omit<DomainEvent<T>, 'deletedEvent' | 'updatedEvent' | 'actionEvent'> {
298
+ }
299
+ export interface DomainDeletedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'updatedEvent' | 'actionEvent'> {
300
+ }
301
+ export interface DomainUpdatedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'actionEvent'> {
302
+ }
303
+ export interface DomainActionEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'updatedEvent'> {
304
+ }
305
+ /** @oneof */
306
+ export interface DomainEventBodyOneOf<T> {
307
+ createdEvent?: EntityCreatedEvent<T>;
308
+ updatedEvent?: EntityUpdatedEvent<T>;
309
+ deletedEvent?: EntityDeletedEvent<T>;
310
+ actionEvent?: ActionEvent<T>;
311
+ }
312
+ export interface EntityCreatedEvent<T> {
313
+ entity?: T;
314
+ }
315
+ export interface EntityUpdatedEvent<T> {
316
+ /**
317
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
318
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
319
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
320
+ */
321
+ currentEntity?: T;
322
+ }
323
+ export interface EntityDeletedEvent<T> {
324
+ /** Entity that was deleted */
325
+ deletedEntity?: T | null;
326
+ }
327
+ export interface ActionEvent<T> {
328
+ body?: T;
329
+ }
260
330
  export interface FindOrCreateLabelResponseNonNullableFields {
261
331
  label?: {
262
332
  key: string;
@@ -286,6 +356,9 @@ export interface QueryLabelsResponseNonNullableFields {
286
356
  labelType: LabelType;
287
357
  }[];
288
358
  }
359
+ export declare const onLabelCreated: EventDefinition<DomainCreatedEvent<ContactLabel>, "wix.contacts.v4.label_created">;
360
+ export declare const onLabelUpdated: EventDefinition<DomainUpdatedEvent<ContactLabel>, "wix.contacts.v4.label_updated">;
361
+ export declare const onLabelDeleted: EventDefinition<DomainDeletedEvent<ContactLabel>, "wix.contacts.v4.label_deleted">;
289
362
  /**
290
363
  * Retrieves a label with a given name, or creates one if it doesn't exist.
291
364
  *
@@ -293,10 +366,8 @@ export interface QueryLabelsResponseNonNullableFields {
293
366
  *
294
367
  * Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
295
368
  *
296
- * To find an existing label without potentially creating a new one, use [`getLabel()`](#getlabel) or [`queryLabels()`](#querylabels).
369
+ * To find an existing label without potentially creating a new one, use `getLabel()` or `queryLabels()`.
297
370
  *
298
- * > **Note:**
299
- * > Only visitors with **Manage Contacts** permissions can run this function.
300
371
  *
301
372
  * @param displayName - Display name to retrieve or create.
302
373
  *
@@ -305,9 +376,13 @@ export interface QueryLabelsResponseNonNullableFields {
305
376
  * the existing label is returned.
306
377
  * If not, a new label is created and returned.
307
378
  * @public
379
+ * @documentationMaturity preview
308
380
  * @requiredField displayName
309
381
  * @param options - Language options.
310
382
  * @permissionScope Manage Contact Labels
383
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
384
+ * @permissionScope Manage Members and Contacts - all permissions
385
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
311
386
  * @applicableIdentity APP
312
387
  * @returns Label that was found or created.
313
388
  */
@@ -327,13 +402,18 @@ export interface FindOrCreateLabelOptions {
327
402
  * The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
328
403
  * @param key - Label key.
329
404
  *
330
- * `key` is generated when the label is created
331
- * and cannot be modified, even if `displayName` changes.
405
+ * `key` is generated when the label is created.
406
+ * It cannot be modified, even if `displayName` is updated.
332
407
  * @public
333
408
  * @documentationMaturity preview
334
409
  * @requiredField key
335
410
  * @param options - Language options.
411
+ * @permissionScope Manage Bookings Services and Settings
412
+ * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
336
413
  * @permissionScope Manage Contact Labels
414
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
415
+ * @permissionScope Manage Members and Contacts - all permissions
416
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
337
417
  * @applicableIdentity APP
338
418
  * @returns The specified label.
339
419
  */
@@ -348,33 +428,34 @@ export interface GetLabelOptions {
348
428
  language?: string | null;
349
429
  }
350
430
  /**
351
- * Updates a label's specified properties.
431
+ * Renames a label.
432
+ *
433
+ * The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
434
+ *
352
435
  * @param key - Label key.
353
436
  *
354
- * `key` is generated when the label is created
355
- * and cannot be modified, even if `displayName` changes.
437
+ * `key` is generated when the label is created.
438
+ * It cannot be modified, even if `displayName` is updated.
356
439
  * @public
357
440
  * @documentationMaturity preview
358
441
  * @requiredField key
359
442
  * @requiredField label
360
443
  * @requiredField label.displayName
361
444
  * @param options - Language options.
362
- * @param label - Label display name to rename.
445
+ * @param label - Label to rename.
363
446
  * @permissionScope Manage Contact Labels
447
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
448
+ * @permissionScope Manage Members and Contacts - all permissions
449
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
364
450
  * @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.
451
+ * @returns
371
452
  */
372
453
  export declare function renameLabel(key: string, label: RenameLabel, options?: RenameLabelOptions): Promise<ContactLabel & NonNullable<UpdateLabelResponseNonNullableFields>['label']>;
373
454
  export interface RenameLabel {
374
455
  /**
375
456
  * Label namespace.
376
457
  *
377
- * Labels created by site contributors or 3rd-party apps
458
+ * Labels created by site admins or 3rd-party apps
378
459
  * are automatically assigned to the `custom` namespace.
379
460
  * @readonly
380
461
  */
@@ -421,40 +502,44 @@ export interface RenameLabelOptions {
421
502
  *
422
503
  * The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
423
504
  *
424
- * > **Note:**
425
- * > Only visitors with **Manage Contacts** permissions can run this function.
426
505
  *
427
506
  * @param key - Label key to delete.
428
507
  * @public
429
508
  * @documentationMaturity preview
430
509
  * @requiredField key
431
510
  * @permissionScope Manage Contact Labels
511
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
512
+ * @permissionScope Manage Members and Contacts - all permissions
513
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
432
514
  * @applicableIdentity APP
433
515
  */
434
516
  export declare function deleteLabel(key: string): Promise<void>;
435
517
  /**
436
518
  * Creates a query to retrieve a list of labels.
437
519
  *
438
- * The `queryLabels()` function builds a query to retrieve a list of labels and returns a [`LabelsQueryBuilder`](#labelsquerybuilder) object.
520
+ * The `queryLabels()` function builds a query to retrieve a list of labels and returns a `LabelsQueryBuilder` object.
439
521
  *
440
- * The returned object contains the query definition, which is used to run the query using the [`find()`](#labelsquerybuilder/find) function.
522
+ * The returned object contains the query definition, which is used to run the query using the `find()` function.
441
523
  *
442
524
  * 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
525
  *
444
526
  * `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.
527
+ * - `skip(0)`
528
+ * - `limit(50)`
529
+ * - `descending('_createdDate')`
450
530
  *
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).
531
+ * 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
532
  *
453
533
  *
454
534
  * @public
455
535
  * @documentationMaturity preview
456
536
  * @param options - Language options.
537
+ * @permissionScope Manage Bookings Services and Settings
538
+ * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
457
539
  * @permissionScope Manage Contact Labels
540
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
541
+ * @permissionScope Manage Members and Contacts - all permissions
542
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
458
543
  * @applicableIdentity APP
459
544
  */
460
545
  export declare function queryLabels(options?: QueryLabelsOptions): LabelsQueryBuilder;
@@ -468,9 +553,9 @@ export interface QueryLabelsOptions {
468
553
  language?: string | null | undefined;
469
554
  }
470
555
  interface QueryOffsetResult {
471
- currentPage: number;
472
- totalPages: number;
473
- totalCount: number;
556
+ currentPage: number | undefined;
557
+ totalPages: number | undefined;
558
+ totalCount: number | undefined;
474
559
  hasNext: () => boolean;
475
560
  hasPrev: () => boolean;
476
561
  length: number;
@@ -8,22 +8,11 @@ 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';
12
+ import { EventDefinition } from '@wix/sdk-types';
11
13
  import * as ambassadorWixContactsV4Label from './contacts-v4-label.http';
12
14
  // @ts-ignore
13
15
  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
16
  const _toVeloEntity = '$';
28
17
  const _fromVeloEntity = '$';
29
18
  export var LabelType;
@@ -49,6 +38,9 @@ const _queryLabelsRequest = {};
49
38
  const _queryLabelsResponse = {};
50
39
  const _updateLabelRequest = {};
51
40
  const _updateLabelResponse = {};
41
+ export const onLabelCreated = EventDefinition('wix.contacts.v4.label_created')();
42
+ export const onLabelUpdated = EventDefinition('wix.contacts.v4.label_updated')();
43
+ export const onLabelDeleted = EventDefinition('wix.contacts.v4.label_deleted')();
52
44
  /**
53
45
  * Retrieves a label with a given name, or creates one if it doesn't exist.
54
46
  *
@@ -56,10 +48,8 @@ const _updateLabelResponse = {};
56
48
  *
57
49
  * Successful calls to `findOrCreateLabel()` always returns a label, which can be passed to subsequent function calls.
58
50
  *
59
- * To find an existing label without potentially creating a new one, use [`getLabel()`](#getlabel) or [`queryLabels()`](#querylabels).
51
+ * To find an existing label without potentially creating a new one, use `getLabel()` or `queryLabels()`.
60
52
  *
61
- * > **Note:**
62
- * > Only visitors with **Manage Contacts** permissions can run this function.
63
53
  *
64
54
  * @param displayName - Display name to retrieve or create.
65
55
  *
@@ -68,9 +58,13 @@ const _updateLabelResponse = {};
68
58
  * the existing label is returned.
69
59
  * If not, a new label is created and returned.
70
60
  * @public
61
+ * @documentationMaturity preview
71
62
  * @requiredField displayName
72
63
  * @param options - Language options.
73
64
  * @permissionScope Manage Contact Labels
65
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
66
+ * @permissionScope Manage Members and Contacts - all permissions
67
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
74
68
  * @applicableIdentity APP
75
69
  * @returns Label that was found or created.
76
70
  */
@@ -104,7 +98,6 @@ export function findOrCreateLabel(displayName, options) {
104
98
  });
105
99
  const payload = toAmbassadorRequest([displayName, options]);
106
100
  const reqOpts = ambassadorWixContactsV4Label.findOrCreateLabel(payload);
107
- __log(`"FindOrCreateLabel" sending request with: ${__inspect(reqOpts)}`);
108
101
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
109
102
  try {
110
103
  const result = yield httpClient.request(reqOpts);
@@ -112,10 +105,14 @@ export function findOrCreateLabel(displayName, options) {
112
105
  return fromJSON(result.data);
113
106
  }
114
107
  catch (err) {
115
- const transformedError = transformError(err, requestTransformation, [
116
- 'displayName',
117
- 'options',
118
- ]);
108
+ const transformedError = sdkTransformError(err, {
109
+ spreadPathsToArguments: {},
110
+ explicitPathsToArguments: {
111
+ displayName: '$[0]',
112
+ language: '$[1].language',
113
+ },
114
+ singleArgumentUnchanged: false,
115
+ }, ['displayName', 'options']);
119
116
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
120
117
  throw transformedError;
121
118
  }
@@ -127,13 +124,18 @@ export function findOrCreateLabel(displayName, options) {
127
124
  * The `getLabel()` function returns a Promise that resolves when the specified label is retrieved.
128
125
  * @param key - Label key.
129
126
  *
130
- * `key` is generated when the label is created
131
- * and cannot be modified, even if `displayName` changes.
127
+ * `key` is generated when the label is created.
128
+ * It cannot be modified, even if `displayName` is updated.
132
129
  * @public
133
130
  * @documentationMaturity preview
134
131
  * @requiredField key
135
132
  * @param options - Language options.
133
+ * @permissionScope Manage Bookings Services and Settings
134
+ * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
136
135
  * @permissionScope Manage Contact Labels
136
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
137
+ * @permissionScope Manage Members and Contacts - all permissions
138
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
137
139
  * @applicableIdentity APP
138
140
  * @returns The specified label.
139
141
  */
@@ -164,7 +166,6 @@ export function getLabel(key, options) {
164
166
  });
165
167
  const payload = toAmbassadorRequest([key, options]);
166
168
  const reqOpts = ambassadorWixContactsV4Label.getLabel(payload);
167
- __log(`"GetLabel" sending request with: ${__inspect(reqOpts)}`);
168
169
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
169
170
  try {
170
171
  const result = yield httpClient.request(reqOpts);
@@ -172,36 +173,38 @@ export function getLabel(key, options) {
172
173
  return fromJSON(result.data);
173
174
  }
174
175
  catch (err) {
175
- const transformedError = transformError(err, requestTransformation, [
176
- 'key',
177
- 'options',
178
- ]);
176
+ const transformedError = sdkTransformError(err, {
177
+ spreadPathsToArguments: {},
178
+ explicitPathsToArguments: { key: '$[0]', language: '$[1].language' },
179
+ singleArgumentUnchanged: false,
180
+ }, ['key', 'options']);
179
181
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
180
182
  throw transformedError;
181
183
  }
182
184
  });
183
185
  }
184
186
  /**
185
- * Updates a label's specified properties.
187
+ * Renames a label.
188
+ *
189
+ * The `renameLabel()` function returns a Promise that resolves when the specified label's display name is changed.
190
+ *
186
191
  * @param key - Label key.
187
192
  *
188
- * `key` is generated when the label is created
189
- * and cannot be modified, even if `displayName` changes.
193
+ * `key` is generated when the label is created.
194
+ * It cannot be modified, even if `displayName` is updated.
190
195
  * @public
191
196
  * @documentationMaturity preview
192
197
  * @requiredField key
193
198
  * @requiredField label
194
199
  * @requiredField label.displayName
195
200
  * @param options - Language options.
196
- * @param label - Label display name to rename.
201
+ * @param label - Label to rename.
197
202
  * @permissionScope Manage Contact Labels
203
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
204
+ * @permissionScope Manage Members and Contacts - all permissions
205
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
198
206
  * @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.
207
+ * @returns
205
208
  */
206
209
  export function renameLabel(key, label, options) {
207
210
  var _a, _b, _c;
@@ -233,7 +236,6 @@ export function renameLabel(key, label, options) {
233
236
  });
234
237
  const payload = toAmbassadorRequest([key, label, options]);
235
238
  const reqOpts = ambassadorWixContactsV4Label.updateLabel(payload);
236
- __log(`"UpdateLabel" sending request with: ${__inspect(reqOpts)}`);
237
239
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
238
240
  try {
239
241
  const result = yield httpClient.request(reqOpts);
@@ -241,11 +243,14 @@ export function renameLabel(key, label, options) {
241
243
  return fromJSON(result.data);
242
244
  }
243
245
  catch (err) {
244
- const transformedError = transformError(err, requestTransformation, [
245
- 'key',
246
- 'label',
247
- 'options',
248
- ]);
246
+ const transformedError = sdkTransformError(err, {
247
+ spreadPathsToArguments: { label: '$[1]' },
248
+ explicitPathsToArguments: {
249
+ 'label.key': '$[0]',
250
+ language: '$[2].language',
251
+ },
252
+ singleArgumentUnchanged: false,
253
+ }, ['key', 'label', 'options']);
249
254
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
250
255
  throw transformedError;
251
256
  }
@@ -256,14 +261,15 @@ export function renameLabel(key, label, options) {
256
261
  *
257
262
  * The `deleteLabel()` function returns a Promise that resolves when the specified label is deleted.
258
263
  *
259
- * > **Note:**
260
- * > Only visitors with **Manage Contacts** permissions can run this function.
261
264
  *
262
265
  * @param key - Label key to delete.
263
266
  * @public
264
267
  * @documentationMaturity preview
265
268
  * @requiredField key
266
269
  * @permissionScope Manage Contact Labels
270
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
271
+ * @permissionScope Manage Members and Contacts - all permissions
272
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
267
273
  * @applicableIdentity APP
268
274
  */
269
275
  export function deleteLabel(key) {
@@ -293,16 +299,17 @@ export function deleteLabel(key) {
293
299
  });
294
300
  const payload = toAmbassadorRequest([key]);
295
301
  const reqOpts = ambassadorWixContactsV4Label.deleteLabel(payload);
296
- __log(`"DeleteLabel" sending request with: ${__inspect(reqOpts)}`);
297
302
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
298
303
  try {
299
304
  const result = yield httpClient.request(reqOpts);
300
305
  (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
301
306
  }
302
307
  catch (err) {
303
- const transformedError = transformError(err, requestTransformation, [
304
- 'key',
305
- ]);
308
+ const transformedError = sdkTransformError(err, {
309
+ spreadPathsToArguments: {},
310
+ explicitPathsToArguments: { key: '$[0]' },
311
+ singleArgumentUnchanged: false,
312
+ }, ['key']);
306
313
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
307
314
  throw transformedError;
308
315
  }
@@ -311,26 +318,29 @@ export function deleteLabel(key) {
311
318
  /**
312
319
  * Creates a query to retrieve a list of labels.
313
320
  *
314
- * The `queryLabels()` function builds a query to retrieve a list of labels and returns a [`LabelsQueryBuilder`](#labelsquerybuilder) object.
321
+ * The `queryLabels()` function builds a query to retrieve a list of labels and returns a `LabelsQueryBuilder` object.
315
322
  *
316
- * The returned object contains the query definition, which is used to run the query using the [`find()`](#labelsquerybuilder/find) function.
323
+ * The returned object contains the query definition, which is used to run the query using the `find()` function.
317
324
  *
318
325
  * 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
326
  *
320
327
  * `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.
328
+ * - `skip(0)`
329
+ * - `limit(50)`
330
+ * - `descending('_createdDate')`
326
331
  *
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).
332
+ * 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
333
  *
329
334
  *
330
335
  * @public
331
336
  * @documentationMaturity preview
332
337
  * @param options - Language options.
338
+ * @permissionScope Manage Bookings Services and Settings
339
+ * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
333
340
  * @permissionScope Manage Contact Labels
341
+ * @permissionScopeId SCOPE.DC-CONTACTS.MANAGE-LABELS
342
+ * @permissionScope Manage Members and Contacts - all permissions
343
+ * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS
334
344
  * @applicableIdentity APP
335
345
  */
336
346
  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,0CAA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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"}
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;AACvF,OAAO,EAAc,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC7D,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;AAsTD,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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AC,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"}