@wix/auto_sdk_crm_contacts 1.0.353 → 1.0.355

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 (130) hide show
  1. package/build/{cjs/src/contacts-v4-contact-contacts.types.d.ts → contacts-v4-contact-contacts.universal-B8Y8hXy8.d.mts} +378 -218
  2. package/build/{internal/cjs/src/contacts-v4-contact-contacts.types.d.ts → contacts-v4-contact-contacts.universal-B8Y8hXy8.d.ts} +378 -218
  3. package/build/{cjs/src/contacts-v4-contact-contacts.public.d.ts → index.d.mts} +46 -18
  4. package/build/{es/src/contacts-v4-contact-contacts.public.d.ts → index.d.ts} +46 -18
  5. package/build/index.js +1338 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1281 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/contacts-v4-contact-contacts.types.d.ts → contacts-v4-contact-contacts.universal-GFgRnaQp.d.mts} +385 -214
  10. package/build/{es/src/contacts-v4-contact-contacts.types.d.ts → internal/contacts-v4-contact-contacts.universal-GFgRnaQp.d.ts} +385 -214
  11. package/build/internal/{cjs/src/contacts-v4-contact-contacts.public.d.ts → index.d.mts} +46 -18
  12. package/build/internal/{es/src/contacts-v4-contact-contacts.public.d.ts → index.d.ts} +46 -18
  13. package/build/internal/index.js +1338 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1281 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +934 -0
  18. package/build/internal/meta.d.ts +934 -0
  19. package/build/internal/meta.js +618 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +584 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +934 -0
  24. package/build/meta.d.ts +934 -0
  25. package/build/meta.js +618 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +584 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/contacts-v4-contact-contacts.context.d.ts +0 -36
  40. package/build/cjs/src/contacts-v4-contact-contacts.context.js +0 -61
  41. package/build/cjs/src/contacts-v4-contact-contacts.context.js.map +0 -1
  42. package/build/cjs/src/contacts-v4-contact-contacts.http.d.ts +0 -126
  43. package/build/cjs/src/contacts-v4-contact-contacts.http.js +0 -555
  44. package/build/cjs/src/contacts-v4-contact-contacts.http.js.map +0 -1
  45. package/build/cjs/src/contacts-v4-contact-contacts.meta.d.ts +0 -32
  46. package/build/cjs/src/contacts-v4-contact-contacts.meta.js +0 -180
  47. package/build/cjs/src/contacts-v4-contact-contacts.meta.js.map +0 -1
  48. package/build/cjs/src/contacts-v4-contact-contacts.public.js +0 -193
  49. package/build/cjs/src/contacts-v4-contact-contacts.public.js.map +0 -1
  50. package/build/cjs/src/contacts-v4-contact-contacts.types.js +0 -278
  51. package/build/cjs/src/contacts-v4-contact-contacts.types.js.map +0 -1
  52. package/build/cjs/src/contacts-v4-contact-contacts.universal.d.ts +0 -2434
  53. package/build/cjs/src/contacts-v4-contact-contacts.universal.js +0 -923
  54. package/build/cjs/src/contacts-v4-contact-contacts.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/contacts-v4-contact-contacts.context.d.ts +0 -36
  66. package/build/es/src/contacts-v4-contact-contacts.context.js +0 -36
  67. package/build/es/src/contacts-v4-contact-contacts.context.js.map +0 -1
  68. package/build/es/src/contacts-v4-contact-contacts.http.d.ts +0 -126
  69. package/build/es/src/contacts-v4-contact-contacts.http.js +0 -544
  70. package/build/es/src/contacts-v4-contact-contacts.http.js.map +0 -1
  71. package/build/es/src/contacts-v4-contact-contacts.meta.d.ts +0 -32
  72. package/build/es/src/contacts-v4-contact-contacts.meta.js +0 -146
  73. package/build/es/src/contacts-v4-contact-contacts.meta.js.map +0 -1
  74. package/build/es/src/contacts-v4-contact-contacts.public.js +0 -160
  75. package/build/es/src/contacts-v4-contact-contacts.public.js.map +0 -1
  76. package/build/es/src/contacts-v4-contact-contacts.types.js +0 -275
  77. package/build/es/src/contacts-v4-contact-contacts.types.js.map +0 -1
  78. package/build/es/src/contacts-v4-contact-contacts.universal.d.ts +0 -2434
  79. package/build/es/src/contacts-v4-contact-contacts.universal.js +0 -889
  80. package/build/es/src/contacts-v4-contact-contacts.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/contacts-v4-contact-contacts.context.d.ts +0 -36
  91. package/build/internal/cjs/src/contacts-v4-contact-contacts.context.js +0 -61
  92. package/build/internal/cjs/src/contacts-v4-contact-contacts.context.js.map +0 -1
  93. package/build/internal/cjs/src/contacts-v4-contact-contacts.http.d.ts +0 -126
  94. package/build/internal/cjs/src/contacts-v4-contact-contacts.http.js +0 -555
  95. package/build/internal/cjs/src/contacts-v4-contact-contacts.http.js.map +0 -1
  96. package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.d.ts +0 -32
  97. package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.js +0 -180
  98. package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.js.map +0 -1
  99. package/build/internal/cjs/src/contacts-v4-contact-contacts.public.js +0 -193
  100. package/build/internal/cjs/src/contacts-v4-contact-contacts.public.js.map +0 -1
  101. package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js +0 -278
  102. package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js.map +0 -1
  103. package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.d.ts +0 -2445
  104. package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js +0 -923
  105. package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/contacts-v4-contact-contacts.context.d.ts +0 -36
  116. package/build/internal/es/src/contacts-v4-contact-contacts.context.js +0 -36
  117. package/build/internal/es/src/contacts-v4-contact-contacts.context.js.map +0 -1
  118. package/build/internal/es/src/contacts-v4-contact-contacts.http.d.ts +0 -126
  119. package/build/internal/es/src/contacts-v4-contact-contacts.http.js +0 -544
  120. package/build/internal/es/src/contacts-v4-contact-contacts.http.js.map +0 -1
  121. package/build/internal/es/src/contacts-v4-contact-contacts.meta.d.ts +0 -32
  122. package/build/internal/es/src/contacts-v4-contact-contacts.meta.js +0 -146
  123. package/build/internal/es/src/contacts-v4-contact-contacts.meta.js.map +0 -1
  124. package/build/internal/es/src/contacts-v4-contact-contacts.public.js +0 -160
  125. package/build/internal/es/src/contacts-v4-contact-contacts.public.js.map +0 -1
  126. package/build/internal/es/src/contacts-v4-contact-contacts.types.js +0 -275
  127. package/build/internal/es/src/contacts-v4-contact-contacts.types.js.map +0 -1
  128. package/build/internal/es/src/contacts-v4-contact-contacts.universal.d.ts +0 -2445
  129. package/build/internal/es/src/contacts-v4-contact-contacts.universal.js +0 -889
  130. package/build/internal/es/src/contacts-v4-contact-contacts.universal.js.map +0 -1
@@ -1,10 +1,10 @@
1
- export interface Contact {
1
+ interface Contact {
2
2
  /**
3
3
  * Contact ID.
4
4
  * @format GUID
5
5
  * @readonly
6
6
  */
7
- id?: string;
7
+ _id?: string;
8
8
  /**
9
9
  * Revision number, which increments by 1 each time the contact is updated.
10
10
  * To prevent conflicting changes,
@@ -21,12 +21,12 @@ export interface Contact {
21
21
  * Date and time the contact was created.
22
22
  * @readonly
23
23
  */
24
- createdDate?: Date | null;
24
+ _createdDate?: Date | null;
25
25
  /**
26
26
  * Date and time the contact was last updated.
27
27
  * @readonly
28
28
  */
29
- updatedDate?: Date | null;
29
+ _updatedDate?: Date | null;
30
30
  /**
31
31
  * Details about the contact's last action in the site.
32
32
  * @readonly
@@ -50,7 +50,7 @@ export interface Contact {
50
50
  */
51
51
  primaryPhone?: PrimaryPhone;
52
52
  }
53
- export interface ContactSource {
53
+ interface ContactSource {
54
54
  /**
55
55
  * Source type.
56
56
  * @readonly
@@ -63,7 +63,7 @@ export interface ContactSource {
63
63
  */
64
64
  appId?: string | null;
65
65
  }
66
- export declare enum ContactSourceType {
66
+ declare enum ContactSourceType {
67
67
  OTHER = "OTHER",
68
68
  ADMIN = "ADMIN",
69
69
  WIX_APP = "WIX_APP",
@@ -85,14 +85,14 @@ export declare enum ContactSourceType {
85
85
  HOPP = "HOPP"
86
86
  }
87
87
  /** @enumType */
88
- export type ContactSourceTypeWithLiterals = ContactSourceType | 'OTHER' | 'ADMIN' | 'WIX_APP' | 'IMPORT' | 'THIRD_PARTY' | 'WIX_BOOKINGS' | 'WIX_CHAT' | 'WIX_EMAIL_MARKETING' | 'WIX_EVENTS' | 'WIX_FORMS' | 'WIX_GROUPS' | 'WIX_HOTELS' | 'WIX_MARKET_PLACE' | 'WIX_MUSIC' | 'WIX_RESTAURANTS' | 'WIX_SITE_MEMBERS' | 'WIX_STORES' | 'WIX_CODE' | 'HOPP';
89
- export interface ContactActivity {
88
+ type ContactSourceTypeWithLiterals = ContactSourceType | 'OTHER' | 'ADMIN' | 'WIX_APP' | 'IMPORT' | 'THIRD_PARTY' | 'WIX_BOOKINGS' | 'WIX_CHAT' | 'WIX_EMAIL_MARKETING' | 'WIX_EVENTS' | 'WIX_FORMS' | 'WIX_GROUPS' | 'WIX_HOTELS' | 'WIX_MARKET_PLACE' | 'WIX_MUSIC' | 'WIX_RESTAURANTS' | 'WIX_SITE_MEMBERS' | 'WIX_STORES' | 'WIX_CODE' | 'HOPP';
89
+ interface ContactActivity {
90
90
  /** Date and time of the last action. */
91
91
  activityDate?: Date | null;
92
92
  /** Contact's last action in the site. */
93
93
  activityType?: ContactActivityTypeWithLiterals;
94
94
  }
95
- export declare enum ContactActivityType {
95
+ declare enum ContactActivityType {
96
96
  /** Visited the site. */
97
97
  GENERAL = "GENERAL",
98
98
  /** Became a new contact. */
@@ -177,8 +177,8 @@ export declare enum ContactActivityType {
177
177
  PHONE_SUBSCRIPTION_UNSUBSCRIBE = "PHONE_SUBSCRIPTION_UNSUBSCRIBE"
178
178
  }
179
179
  /** @enumType */
180
- export type ContactActivityTypeWithLiterals = ContactActivityType | 'GENERAL' | 'CONTACT_CREATED' | 'MEMBER_LOGIN' | 'MEMBER_REGISTER' | 'MEMBER_STATUS_CHANGED' | 'FORM_SUBMITTED' | 'INBOX_FORM_SUBMITTED' | 'INBOX_PAYMENT_REQUEST_PAID' | 'INBOX_MESSAGE_TO_CUSTOMER' | 'INBOX_MESSAGE_FROM_CUSTOMER' | 'NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED' | 'NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE' | 'ECOM_PURCHASE' | 'ECOM_CART_ABANDON' | 'ECOM_CHECKOUT_BUYER' | 'BOOKINGS_APPOINTMENT' | 'HOTELS_RESERVATION' | 'HOTELS_PURCHASE' | 'HOTELS_CONFIRMATION' | 'HOTELS_CANCEL' | 'VIDEO_PURCHASE' | 'VIDEO_RENT' | 'CASHIER_BUTTON_PURCHASE' | 'ARENA_NEW_LEAD' | 'EVENTS_RSVP' | 'INVOICE_PAY' | 'INVOICE_OVERDUE' | 'PRICE_QUOTE_ACCEPT' | 'PRICE_QUOTE_EXPIRE' | 'RESTAURANTS_ORDER' | 'RESTAURANTS_RESERVATION' | 'SHOUTOUT_OPEN' | 'SHOUTOUT_CLICK' | 'CONTACT_MERGED' | 'NEWSLETTER_SUBSCRIPTION_SUBSCRIBE' | 'NEWSLETTER_SUBSCRIPTION_PENDING' | 'NEWSLETTER_SUBSCRIPTION_NOT_SET' | 'PHONE_SUBSCRIPTION_SUBSCRIBE' | 'PHONE_SUBSCRIPTION_PENDING' | 'PHONE_SUBSCRIPTION_NOT_SET' | 'PHONE_SUBSCRIPTION_UNSUBSCRIBE';
181
- export interface ActivityIcon {
180
+ type ContactActivityTypeWithLiterals = ContactActivityType | 'GENERAL' | 'CONTACT_CREATED' | 'MEMBER_LOGIN' | 'MEMBER_REGISTER' | 'MEMBER_STATUS_CHANGED' | 'FORM_SUBMITTED' | 'INBOX_FORM_SUBMITTED' | 'INBOX_PAYMENT_REQUEST_PAID' | 'INBOX_MESSAGE_TO_CUSTOMER' | 'INBOX_MESSAGE_FROM_CUSTOMER' | 'NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED' | 'NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE' | 'ECOM_PURCHASE' | 'ECOM_CART_ABANDON' | 'ECOM_CHECKOUT_BUYER' | 'BOOKINGS_APPOINTMENT' | 'HOTELS_RESERVATION' | 'HOTELS_PURCHASE' | 'HOTELS_CONFIRMATION' | 'HOTELS_CANCEL' | 'VIDEO_PURCHASE' | 'VIDEO_RENT' | 'CASHIER_BUTTON_PURCHASE' | 'ARENA_NEW_LEAD' | 'EVENTS_RSVP' | 'INVOICE_PAY' | 'INVOICE_OVERDUE' | 'PRICE_QUOTE_ACCEPT' | 'PRICE_QUOTE_EXPIRE' | 'RESTAURANTS_ORDER' | 'RESTAURANTS_RESERVATION' | 'SHOUTOUT_OPEN' | 'SHOUTOUT_CLICK' | 'CONTACT_MERGED' | 'NEWSLETTER_SUBSCRIPTION_SUBSCRIBE' | 'NEWSLETTER_SUBSCRIPTION_PENDING' | 'NEWSLETTER_SUBSCRIPTION_NOT_SET' | 'PHONE_SUBSCRIPTION_SUBSCRIBE' | 'PHONE_SUBSCRIPTION_PENDING' | 'PHONE_SUBSCRIPTION_NOT_SET' | 'PHONE_SUBSCRIPTION_UNSUBSCRIBE';
181
+ interface ActivityIcon {
182
182
  /**
183
183
  * Icon name
184
184
  * @maxLength 50
@@ -190,7 +190,7 @@ export interface ActivityIcon {
190
190
  */
191
191
  url?: string | null;
192
192
  }
193
- export interface PrimaryContactInfo {
193
+ interface PrimaryContactInfo {
194
194
  /**
195
195
  * Primary email address.
196
196
  *
@@ -209,27 +209,7 @@ export interface PrimaryContactInfo {
209
209
  */
210
210
  phone?: string | null;
211
211
  }
212
- export interface Image {
213
- /**
214
- * WixMedia image ID.
215
- * This property is written by Wix when an image is uploaded to the Wix Media Manager.
216
- */
217
- id?: string;
218
- /** Image source: Either a Media Manager URL or external URL. */
219
- url?: string;
220
- /** Height of the original image. */
221
- height?: number;
222
- /** Width of the original image. */
223
- width?: number;
224
- /** Image alt text (optional). */
225
- altText?: string | null;
226
- /**
227
- * Image URL expiration date (optional).
228
- * @readonly
229
- */
230
- urlExpirationDate?: Date | null;
231
- }
232
- export interface ContactInfo {
212
+ interface ContactInfo {
233
213
  /** Contact's first and last name. */
234
214
  name?: ContactName;
235
215
  /** Contact's email addresses. */
@@ -280,7 +260,7 @@ export interface ContactInfo {
280
260
  /** Contact's profile picture. */
281
261
  picture?: ContactPicture;
282
262
  }
283
- export interface ContactName {
263
+ interface ContactName {
284
264
  /**
285
265
  * Contact's first name.
286
266
  * @maxLength 1000
@@ -292,20 +272,20 @@ export interface ContactName {
292
272
  */
293
273
  last?: string | null;
294
274
  }
295
- export interface ContactEmailsWrapper {
275
+ interface ContactEmailsWrapper {
296
276
  /**
297
277
  * List of up to 50 email addresses.
298
278
  * @maxSize 50
299
279
  */
300
280
  items?: ContactEmail[];
301
281
  }
302
- export interface ContactEmail {
282
+ interface ContactEmail {
303
283
  /**
304
284
  * Email ID.
305
285
  * @format GUID
306
286
  * @readonly
307
287
  */
308
- id?: string | null;
288
+ _id?: string | null;
309
289
  /**
310
290
  * Email type.
311
291
  *
@@ -326,28 +306,28 @@ export interface ContactEmail {
326
306
  */
327
307
  primary?: boolean | null;
328
308
  }
329
- export declare enum EmailTag {
309
+ declare enum EmailTag {
330
310
  UNTAGGED = "UNTAGGED",
331
311
  MAIN = "MAIN",
332
312
  HOME = "HOME",
333
313
  WORK = "WORK"
334
314
  }
335
315
  /** @enumType */
336
- export type EmailTagWithLiterals = EmailTag | 'UNTAGGED' | 'MAIN' | 'HOME' | 'WORK';
337
- export interface ContactPhonesWrapper {
316
+ type EmailTagWithLiterals = EmailTag | 'UNTAGGED' | 'MAIN' | 'HOME' | 'WORK';
317
+ interface ContactPhonesWrapper {
338
318
  /**
339
319
  * List of up to 50 phone numbers.
340
320
  * @maxSize 50
341
321
  */
342
322
  items?: ContactPhone[];
343
323
  }
344
- export interface ContactPhone {
324
+ interface ContactPhone {
345
325
  /**
346
326
  * Phone ID.
347
327
  * @format GUID
348
328
  * @readonly
349
329
  */
350
- id?: string | null;
330
+ _id?: string | null;
351
331
  /**
352
332
  * Phone type.
353
333
  *
@@ -380,7 +360,7 @@ export interface ContactPhone {
380
360
  */
381
361
  primary?: boolean | null;
382
362
  }
383
- export declare enum PhoneTag {
363
+ declare enum PhoneTag {
384
364
  UNTAGGED = "UNTAGGED",
385
365
  MAIN = "MAIN",
386
366
  HOME = "HOME",
@@ -389,21 +369,21 @@ export declare enum PhoneTag {
389
369
  FAX = "FAX"
390
370
  }
391
371
  /** @enumType */
392
- export type PhoneTagWithLiterals = PhoneTag | 'UNTAGGED' | 'MAIN' | 'HOME' | 'MOBILE' | 'WORK' | 'FAX';
393
- export interface ContactAddressesWrapper {
372
+ type PhoneTagWithLiterals = PhoneTag | 'UNTAGGED' | 'MAIN' | 'HOME' | 'MOBILE' | 'WORK' | 'FAX';
373
+ interface ContactAddressesWrapper {
394
374
  /**
395
375
  * List of up to 50 addresses.
396
376
  * @maxSize 50
397
377
  */
398
378
  items?: ContactAddress[];
399
379
  }
400
- export interface ContactAddress {
380
+ interface ContactAddress {
401
381
  /**
402
382
  * Street address ID.
403
383
  * @format GUID
404
384
  * @readonly
405
385
  */
406
- id?: string | null;
386
+ _id?: string | null;
407
387
  /**
408
388
  * Address type.
409
389
  * `UNTAGGED` is shown as "Other" in the Contact List.
@@ -412,7 +392,7 @@ export interface ContactAddress {
412
392
  /** Street address. */
413
393
  address?: Address;
414
394
  }
415
- export declare enum AddressTag {
395
+ declare enum AddressTag {
416
396
  UNTAGGED = "UNTAGGED",
417
397
  HOME = "HOME",
418
398
  WORK = "WORK",
@@ -420,16 +400,16 @@ export declare enum AddressTag {
420
400
  SHIPPING = "SHIPPING"
421
401
  }
422
402
  /** @enumType */
423
- export type AddressTagWithLiterals = AddressTag | 'UNTAGGED' | 'HOME' | 'WORK' | 'BILLING' | 'SHIPPING';
403
+ type AddressTagWithLiterals = AddressTag | 'UNTAGGED' | 'HOME' | 'WORK' | 'BILLING' | 'SHIPPING';
424
404
  /** Physical address */
425
- export interface Address extends AddressStreetOneOf {
405
+ interface Address extends AddressStreetOneOf {
426
406
  /** Street address object, with number and name in separate fields. */
427
407
  streetAddress?: StreetAddress;
428
408
  /**
429
409
  * Main address line, usually street and number, as free text.
430
410
  * @maxLength 1000
431
411
  */
432
- addressLine?: string | null;
412
+ addressLine1?: string | null;
433
413
  /**
434
414
  * 2-letter country code in an
435
415
  * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
@@ -460,7 +440,7 @@ export interface Address extends AddressStreetOneOf {
460
440
  addressLine2?: string | null;
461
441
  }
462
442
  /** @oneof */
463
- export interface AddressStreetOneOf {
443
+ interface AddressStreetOneOf {
464
444
  /** Street address object, with number and name in separate fields. */
465
445
  streetAddress?: StreetAddress;
466
446
  /**
@@ -469,7 +449,7 @@ export interface AddressStreetOneOf {
469
449
  */
470
450
  addressLine?: string | null;
471
451
  }
472
- export interface StreetAddress {
452
+ interface StreetAddress {
473
453
  /**
474
454
  * Street number.
475
455
  * @maxLength 100
@@ -481,19 +461,19 @@ export interface StreetAddress {
481
461
  */
482
462
  name?: string;
483
463
  }
484
- export interface AddressLocation {
464
+ interface AddressLocation {
485
465
  /** Address's latitude. */
486
466
  latitude?: number | null;
487
467
  /** Address's longitude. */
488
468
  longitude?: number | null;
489
469
  }
490
- export interface Subdivision {
470
+ interface Subdivision {
491
471
  /** subdivision short code */
492
472
  code?: string;
493
473
  /** Full subdivision name. */
494
474
  name?: string;
495
475
  }
496
- export declare enum SubdivisionType {
476
+ declare enum SubdivisionType {
497
477
  UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
498
478
  /** State */
499
479
  ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
@@ -508,9 +488,7 @@ export declare enum SubdivisionType {
508
488
  /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
509
489
  COUNTRY = "COUNTRY"
510
490
  }
511
- /** @enumType */
512
- export type SubdivisionTypeWithLiterals = SubdivisionType | 'UNKNOWN_SUBDIVISION_TYPE' | 'ADMINISTRATIVE_AREA_LEVEL_1' | 'ADMINISTRATIVE_AREA_LEVEL_2' | 'ADMINISTRATIVE_AREA_LEVEL_3' | 'ADMINISTRATIVE_AREA_LEVEL_4' | 'ADMINISTRATIVE_AREA_LEVEL_5' | 'COUNTRY';
513
- export interface AssigneesWrapper {
491
+ interface AssigneesWrapper {
514
492
  /**
515
493
  * List of site contributor user IDs.
516
494
  * @format GUID
@@ -518,7 +496,7 @@ export interface AssigneesWrapper {
518
496
  */
519
497
  items?: string[];
520
498
  }
521
- export interface LabelsWrapper {
499
+ interface LabelsWrapper {
522
500
  /**
523
501
  * List of contact label keys.
524
502
  *
@@ -528,7 +506,7 @@ export interface LabelsWrapper {
528
506
  */
529
507
  items?: string[];
530
508
  }
531
- export interface ExtendedFieldsWrapper {
509
+ interface ExtendedFieldsWrapper {
532
510
  /**
533
511
  * Contact's extended fields,
534
512
  * where each key is the field key,
@@ -538,7 +516,7 @@ export interface ExtendedFieldsWrapper {
538
516
  */
539
517
  items?: Record<string, any>;
540
518
  }
541
- export interface LocationsWrapper {
519
+ interface LocationsWrapper {
542
520
  /**
543
521
  * List of location ids.
544
522
  * @format GUID
@@ -547,23 +525,21 @@ export interface LocationsWrapper {
547
525
  items?: string[];
548
526
  }
549
527
  /** TEST contact picture description */
550
- export interface ContactPicture {
528
+ interface ContactPicture {
551
529
  /**
552
530
  * Image.
553
531
  * This can contain an image URL or a Wix Media image ID.
554
532
  */
555
- image?: Image;
533
+ image?: string;
556
534
  }
557
- export declare enum ImageProvider {
535
+ declare enum ImageProvider {
558
536
  UNKNOWN = "UNKNOWN",
559
537
  /** Image stored outside Wix */
560
538
  EXTERNAL = "EXTERNAL",
561
539
  /** Stored in wix media platform, Must be uploaded by using `GeneratePictureUploadUrl` */
562
540
  WIX_MEDIA = "WIX_MEDIA"
563
541
  }
564
- /** @enumType */
565
- export type ImageProviderWithLiterals = ImageProvider | 'UNKNOWN' | 'EXTERNAL' | 'WIX_MEDIA';
566
- export interface SegmentsWrapper {
542
+ interface SegmentsWrapper {
567
543
  /**
568
544
  * List of Contact segment IDs
569
545
  * @maxSize 60
@@ -571,7 +547,7 @@ export interface SegmentsWrapper {
571
547
  */
572
548
  items?: string[];
573
549
  }
574
- export interface PrimaryEmail {
550
+ interface PrimaryEmail {
575
551
  /**
576
552
  * Primary email address.
577
553
  *
@@ -596,7 +572,7 @@ export interface PrimaryEmail {
596
572
  */
597
573
  deliverabilityStatus?: EmailDeliverabilityStatusWithLiterals;
598
574
  }
599
- export declare enum SubscriptionStatus {
575
+ declare enum SubscriptionStatus {
600
576
  /** No status exists. */
601
577
  NO_SUBSCRIPTION_STATUS = "NO_SUBSCRIPTION_STATUS",
602
578
  /** No status specified. */
@@ -609,8 +585,8 @@ export declare enum SubscriptionStatus {
609
585
  UNSUBSCRIBED = "UNSUBSCRIBED"
610
586
  }
611
587
  /** @enumType */
612
- export type SubscriptionStatusWithLiterals = SubscriptionStatus | 'NO_SUBSCRIPTION_STATUS' | 'NOT_SET' | 'PENDING' | 'SUBSCRIBED' | 'UNSUBSCRIBED';
613
- export declare enum EmailDeliverabilityStatus {
588
+ type SubscriptionStatusWithLiterals = SubscriptionStatus | 'NO_SUBSCRIPTION_STATUS' | 'NOT_SET' | 'PENDING' | 'SUBSCRIBED' | 'UNSUBSCRIBED';
589
+ declare enum EmailDeliverabilityStatus {
614
590
  /** No status reported. */
615
591
  NOT_SET = "NOT_SET",
616
592
  /** Emails are being successfully delivered. */
@@ -623,8 +599,8 @@ export declare enum EmailDeliverabilityStatus {
623
599
  INACTIVE = "INACTIVE"
624
600
  }
625
601
  /** @enumType */
626
- export type EmailDeliverabilityStatusWithLiterals = EmailDeliverabilityStatus | 'NOT_SET' | 'VALID' | 'BOUNCED' | 'SPAM_COMPLAINT' | 'INACTIVE';
627
- export interface PrimaryPhone {
602
+ type EmailDeliverabilityStatusWithLiterals = EmailDeliverabilityStatus | 'NOT_SET' | 'VALID' | 'BOUNCED' | 'SPAM_COMPLAINT' | 'INACTIVE';
603
+ interface PrimaryPhone {
628
604
  /**
629
605
  * Country code of the primary phone number in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
630
606
  * @format COUNTRY
@@ -659,15 +635,13 @@ export interface PrimaryPhone {
659
635
  */
660
636
  phone?: string | null;
661
637
  }
662
- export declare enum PhoneDeliverabilityStatus {
638
+ declare enum PhoneDeliverabilityStatus {
663
639
  /** No status exists. */
664
640
  NO_PHONE_DELIVERABILITY_STATUS = "NO_PHONE_DELIVERABILITY_STATUS",
665
641
  /** No status reported. */
666
642
  NOT_SET = "NOT_SET"
667
643
  }
668
- /** @enumType */
669
- export type PhoneDeliverabilityStatusWithLiterals = PhoneDeliverabilityStatus | 'NO_PHONE_DELIVERABILITY_STATUS' | 'NOT_SET';
670
- export interface MemberInfo {
644
+ interface MemberInfo {
671
645
  /**
672
646
  * Member ID
673
647
  * @format GUID
@@ -701,7 +675,7 @@ export interface MemberInfo {
701
675
  /** Group info */
702
676
  groupInfo?: GroupInfo;
703
677
  }
704
- export declare enum MemberStatus {
678
+ declare enum MemberStatus {
705
679
  PENDING = "PENDING",
706
680
  ACTIVE = "ACTIVE",
707
681
  DELETED = "DELETED",
@@ -709,8 +683,8 @@ export declare enum MemberStatus {
709
683
  OFFLINE = "OFFLINE"
710
684
  }
711
685
  /** @enumType */
712
- export type MemberStatusWithLiterals = MemberStatus | 'PENDING' | 'ACTIVE' | 'DELETED' | 'BLOCKED' | 'OFFLINE';
713
- export interface ProfileInfo {
686
+ type MemberStatusWithLiterals = MemberStatus | 'PENDING' | 'ACTIVE' | 'DELETED' | 'BLOCKED' | 'OFFLINE';
687
+ interface ProfileInfo {
714
688
  /**
715
689
  * Nickname
716
690
  * @maxLength 255
@@ -723,15 +697,15 @@ export interface ProfileInfo {
723
697
  /** Indicate whether the member is muted */
724
698
  muted?: boolean | null;
725
699
  /** Profile photo */
726
- photo?: Image;
700
+ photo?: string;
727
701
  }
728
- export declare enum PrivacyStatus {
702
+ declare enum PrivacyStatus {
729
703
  PRIVATE = "PRIVATE",
730
704
  PUBLIC = "PUBLIC"
731
705
  }
732
706
  /** @enumType */
733
- export type PrivacyStatusWithLiterals = PrivacyStatus | 'PRIVATE' | 'PUBLIC';
734
- export interface UserInfo {
707
+ type PrivacyStatusWithLiterals = PrivacyStatus | 'PRIVATE' | 'PUBLIC';
708
+ interface UserInfo {
735
709
  /**
736
710
  * User ID
737
711
  * @format GUID
@@ -740,14 +714,14 @@ export interface UserInfo {
740
714
  /** The user's role on the website */
741
715
  role?: RoleWithLiterals;
742
716
  }
743
- export declare enum Role {
717
+ declare enum Role {
744
718
  UNSPECIFIED_ROLE = "UNSPECIFIED_ROLE",
745
719
  OWNER = "OWNER",
746
720
  CONTRIBUTOR = "CONTRIBUTOR"
747
721
  }
748
722
  /** @enumType */
749
- export type RoleWithLiterals = Role | 'UNSPECIFIED_ROLE' | 'OWNER' | 'CONTRIBUTOR';
750
- export interface SessionInfo {
723
+ type RoleWithLiterals = Role | 'UNSPECIFIED_ROLE' | 'OWNER' | 'CONTRIBUTOR';
724
+ interface SessionInfo {
751
725
  /** Last time the member logged in to the website */
752
726
  lastWebLogin?: Date | null;
753
727
  /** Last time the member logged in to one of the mobile apps */
@@ -759,7 +733,7 @@ export interface SessionInfo {
759
733
  */
760
734
  mobileAppNames?: string[];
761
735
  }
762
- export interface GroupInfo {
736
+ interface GroupInfo {
763
737
  /**
764
738
  * Group IDs
765
739
  * @format GUID
@@ -767,7 +741,7 @@ export interface GroupInfo {
767
741
  */
768
742
  groupIds?: string[];
769
743
  }
770
- export interface ContactSubmitted {
744
+ interface ContactSubmitted {
771
745
  /** Pass through data, submitted with the contact */
772
746
  passThroughData?: string | null;
773
747
  /** Submitted activity */
@@ -775,13 +749,13 @@ export interface ContactSubmitted {
775
749
  /** Submitted Contact (after processing) */
776
750
  contact?: Contact;
777
751
  }
778
- export interface ContactChanged {
752
+ interface ContactChanged {
779
753
  /** The Contact before the changes */
780
754
  previousContact?: Contact;
781
755
  /** The Contact after the changes */
782
756
  currentContact?: Contact;
783
757
  }
784
- export interface ContactEmailSubscriptionUpdated {
758
+ interface ContactEmailSubscriptionUpdated {
785
759
  /** The updated contact ID. */
786
760
  contactId?: string;
787
761
  /** The revision of the contact. */
@@ -789,9 +763,9 @@ export interface ContactEmailSubscriptionUpdated {
789
763
  /** The primary email of the contact with the updated subscription and deliverability status. */
790
764
  primaryEmail?: PrimaryEmail;
791
765
  /** Date and time the contact was updated with the email subscription or deliverability status. */
792
- updatedDate?: Date | null;
766
+ _updatedDate?: Date | null;
793
767
  }
794
- export interface ContactPhoneSubscriptionUpdated {
768
+ interface ContactPhoneSubscriptionUpdated {
795
769
  /** The updated contact ID. */
796
770
  contactId?: string;
797
771
  /** The revision of the contact. */
@@ -799,14 +773,14 @@ export interface ContactPhoneSubscriptionUpdated {
799
773
  /** The primary phone of the contact with the updated subscription status. */
800
774
  primaryPhone?: PrimaryPhone;
801
775
  /** Date and time the contact was updated with the SMS subscription status. */
802
- updatedDate?: Date | null;
776
+ _updatedDate?: Date | null;
803
777
  }
804
778
  /**
805
779
  * This message is an internal message used by this app and it is used to trigger
806
780
  * the update of the subscription status of the contact asynchronously.
807
781
  * It is published after a contact is created/updated/merged.
808
782
  */
809
- export interface ContactPrimaryInfoUpdated {
783
+ interface ContactPrimaryInfoUpdated {
810
784
  /** The updated contact ID. */
811
785
  contactId?: string;
812
786
  /** Indication whether the primary email was updated. */
@@ -818,7 +792,7 @@ export interface ContactPrimaryInfoUpdated {
818
792
  /** previous primary phone subscription status */
819
793
  previousPrimaryPhoneSubscriptionStatus?: PrimarySubscriptionStatus;
820
794
  }
821
- export interface PrimarySubscriptionStatus {
795
+ interface PrimarySubscriptionStatus {
822
796
  /** subscription status */
823
797
  subscriptionStatus?: SubscriptionStatusWithLiterals;
824
798
  }
@@ -826,7 +800,7 @@ export interface PrimarySubscriptionStatus {
826
800
  * This message is an internal message used by this app and it is used to trigger
827
801
  * the update of the contact's last activity is done asynchronously.
828
802
  */
829
- export interface LastActivityUpdate {
803
+ interface LastActivityUpdate {
830
804
  /**
831
805
  * The contact ID.
832
806
  * @format GUID
@@ -846,7 +820,7 @@ export interface LastActivityUpdate {
846
820
  icon?: string | null;
847
821
  }
848
822
  /** Contact creation options. */
849
- export interface CreateContactRequest {
823
+ interface CreateContactRequest {
850
824
  /** Contact info. */
851
825
  info: ContactInfo;
852
826
  /**
@@ -864,11 +838,11 @@ export interface CreateContactRequest {
864
838
  allowDuplicates?: boolean;
865
839
  }
866
840
  /** Contact. */
867
- export interface CreateContactResponse {
841
+ interface CreateContactResponse {
868
842
  /** Contact. */
869
843
  contact?: Contact;
870
844
  }
871
- export interface DuplicateContactExists {
845
+ interface DuplicateContactExists {
872
846
  /** @format GUID */
873
847
  duplicateContactId?: string | null;
874
848
  /** @format EMAIL */
@@ -876,7 +850,7 @@ export interface DuplicateContactExists {
876
850
  /** @format PHONE */
877
851
  duplicatePhone?: string | null;
878
852
  }
879
- export interface UpdateContactRequest {
853
+ interface UpdateContactRequest {
880
854
  /**
881
855
  * ID of the contact to update.
882
856
  * @format GUID
@@ -905,11 +879,11 @@ export interface UpdateContactRequest {
905
879
  info: ContactInfo;
906
880
  }
907
881
  /** Updated contact. */
908
- export interface UpdateContactResponse {
882
+ interface UpdateContactResponse {
909
883
  /** Updated contact. */
910
884
  contact?: Contact;
911
885
  }
912
- export interface MergeContactsRequest {
886
+ interface MergeContactsRequest {
913
887
  /**
914
888
  * Target contact ID.
915
889
  * @format GUID
@@ -930,11 +904,11 @@ export interface MergeContactsRequest {
930
904
  */
931
905
  sourceContactIds?: string[];
932
906
  }
933
- export interface MergeContactsResponse {
907
+ interface MergeContactsResponse {
934
908
  /** Updated target contact. */
935
909
  contact?: Contact;
936
910
  }
937
- export interface ContactMerged {
911
+ interface ContactMerged {
938
912
  /** ID of the contact the source contacts were merged into. */
939
913
  targetContactId?: string;
940
914
  /** IDs of contacts that were merged into the target contact. */
@@ -942,7 +916,7 @@ export interface ContactMerged {
942
916
  /** Updated target contact. */
943
917
  targetContact?: Contact;
944
918
  }
945
- export interface PreviewMergeContactsRequest {
919
+ interface PreviewMergeContactsRequest {
946
920
  /**
947
921
  * Target contact ID.
948
922
  * @format GUID
@@ -957,20 +931,20 @@ export interface PreviewMergeContactsRequest {
957
931
  */
958
932
  sourceContactIds?: string[];
959
933
  }
960
- export interface PreviewMergeContactsResponse {
934
+ interface PreviewMergeContactsResponse {
961
935
  /** Preview of the updated target contact. */
962
936
  contact?: Contact;
963
937
  }
964
- export interface DeleteContactRequest {
938
+ interface DeleteContactRequest {
965
939
  /**
966
940
  * ID of the contact to delete.
967
941
  * @format GUID
968
942
  */
969
943
  contactId: string;
970
944
  }
971
- export interface DeleteContactResponse {
945
+ interface DeleteContactResponse {
972
946
  }
973
- export interface LabelContactRequest {
947
+ interface LabelContactRequest {
974
948
  /**
975
949
  * ID of the contact to add labels to.
976
950
  * @format GUID
@@ -987,11 +961,11 @@ export interface LabelContactRequest {
987
961
  labelKeys: string[];
988
962
  }
989
963
  /** Updated contact. */
990
- export interface LabelContactResponse {
964
+ interface LabelContactResponse {
991
965
  /** Updated contact. */
992
966
  contact?: Contact;
993
967
  }
994
- export interface UnlabelContactRequest {
968
+ interface UnlabelContactRequest {
995
969
  /**
996
970
  * ID of the contact to remove labels from.
997
971
  * @format GUID
@@ -1005,11 +979,11 @@ export interface UnlabelContactRequest {
1005
979
  labelKeys: string[];
1006
980
  }
1007
981
  /** Updated contact. */
1008
- export interface UnlabelContactResponse {
982
+ interface UnlabelContactResponse {
1009
983
  /** Updated contact. */
1010
984
  contact?: Contact;
1011
985
  }
1012
- export interface LabelAndUnlabelContactRequest {
986
+ interface LabelAndUnlabelContactRequest {
1013
987
  /**
1014
988
  * Contact ID.
1015
989
  * @format GUID
@@ -1034,11 +1008,11 @@ export interface LabelAndUnlabelContactRequest {
1034
1008
  */
1035
1009
  labelKeysToRemove?: string[];
1036
1010
  }
1037
- export interface LabelAndUnlabelContactResponse {
1011
+ interface LabelAndUnlabelContactResponse {
1038
1012
  /** Updated contact. */
1039
1013
  contact?: Contact;
1040
1014
  }
1041
- export interface ListContactsRequest {
1015
+ interface ListContactsRequest {
1042
1016
  /** [Sort order](https://dev.wix.com/api/rest/contacts/contacts/sort-and-filter). */
1043
1017
  sort?: Sorting;
1044
1018
  /** [Pagination](https://dev.wix.com/api/rest/getting-started/pagination), defaults to offset = 0 and limit = 50 (max limit 1,000). */
@@ -1061,7 +1035,7 @@ export interface ListContactsRequest {
1061
1035
  /** @maxSize 10 */
1062
1036
  fieldsets?: ContactFieldSetWithLiterals[];
1063
1037
  }
1064
- export interface Sorting {
1038
+ interface Sorting {
1065
1039
  /**
1066
1040
  * Field to sort by.
1067
1041
  *
@@ -1079,13 +1053,13 @@ export interface Sorting {
1079
1053
  */
1080
1054
  order?: SortOrderWithLiterals;
1081
1055
  }
1082
- export declare enum SortOrder {
1056
+ declare enum SortOrder {
1083
1057
  ASC = "ASC",
1084
1058
  DESC = "DESC"
1085
1059
  }
1086
1060
  /** @enumType */
1087
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
1088
- export interface Paging {
1061
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
1062
+ interface Paging {
1089
1063
  /**
1090
1064
  * Number of items to return. Learn more about pagination in API Query Language([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language)|[REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging).
1091
1065
  *
@@ -1097,7 +1071,7 @@ export interface Paging {
1097
1071
  /** Number of items to skip in the current sort order. */
1098
1072
  offset?: number | null;
1099
1073
  }
1100
- export declare enum ContactFieldSet {
1074
+ declare enum ContactFieldSet {
1101
1075
  /** name, primaryEmail, primaryPhone */
1102
1076
  BASIC = "BASIC",
1103
1077
  /** name, phones, emails, addresses */
@@ -1108,15 +1082,15 @@ export declare enum ContactFieldSet {
1108
1082
  FULL = "FULL"
1109
1083
  }
1110
1084
  /** @enumType */
1111
- export type ContactFieldSetWithLiterals = ContactFieldSet | 'BASIC' | 'COMMUNICATION_DETAILS' | 'EXTENDED' | 'FULL';
1085
+ type ContactFieldSetWithLiterals = ContactFieldSet | 'BASIC' | 'COMMUNICATION_DETAILS' | 'EXTENDED' | 'FULL';
1112
1086
  /** List of contacts. */
1113
- export interface ListContactsResponse {
1087
+ interface ListContactsResponse {
1114
1088
  /** List of contacts. */
1115
1089
  contacts?: Contact[];
1116
1090
  /** Details on the paged set of results returned. */
1117
1091
  pagingMetadata?: PagingMetadata;
1118
1092
  }
1119
- export interface PagingMetadata {
1093
+ interface PagingMetadata {
1120
1094
  /** The number of items returned in this response. */
1121
1095
  count?: number | null;
1122
1096
  /** The offset which was requested. */
@@ -1126,21 +1100,17 @@ export interface PagingMetadata {
1126
1100
  /** A flag that indicates the server failed to calculate 'total' field. */
1127
1101
  tooManyToCount?: boolean | null;
1128
1102
  }
1129
- export interface QueryContactsRequest {
1103
+ interface QueryContactsRequest {
1130
1104
  /**
1131
- * Plain text search for an exact match.
1132
- *
1133
- * Supported properties:
1134
- * `info.name.first`, `info.name.last`, `info.emails.email`, `info.phones.phone`
1135
- *
1136
- * Max: 100 characters
1105
+ * @internal
1106
+ * @internal
1137
1107
  * @maxLength 100
1138
1108
  */
1139
1109
  search?: string | null;
1140
1110
  /** Query options. */
1141
1111
  query?: Query;
1142
1112
  }
1143
- export interface Query {
1113
+ interface Query {
1144
1114
  /**
1145
1115
  * Filter object.
1146
1116
  * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
@@ -1192,13 +1162,13 @@ export interface Query {
1192
1162
  fieldsets?: ContactFieldSetWithLiterals[];
1193
1163
  }
1194
1164
  /** List of contacts. */
1195
- export interface QueryContactsResponse {
1165
+ interface QueryContactsResponse {
1196
1166
  /** List of contacts. */
1197
1167
  contacts?: Contact[];
1198
1168
  /** Details on the paged set of results returned. */
1199
1169
  pagingMetadata?: PagingMetadata;
1200
1170
  }
1201
- export interface ListFacetsRequest {
1171
+ interface ListFacetsRequest {
1202
1172
  /** Pagination options. */
1203
1173
  paging?: Paging;
1204
1174
  /**
@@ -1207,13 +1177,13 @@ export interface ListFacetsRequest {
1207
1177
  */
1208
1178
  language?: string | null;
1209
1179
  }
1210
- export interface ListFacetsResponse {
1180
+ interface ListFacetsResponse {
1211
1181
  /** List of facets. */
1212
1182
  facets?: ContactsFacet[];
1213
1183
  /** Details on the paged set of results returned. */
1214
1184
  pagingMetadata?: PagingMetadata;
1215
1185
  }
1216
- export interface ContactsFacet {
1186
+ interface ContactsFacet {
1217
1187
  /** Type of facet. */
1218
1188
  facetType?: ContactsFacetTypeWithLiterals;
1219
1189
  /**
@@ -1235,7 +1205,7 @@ export interface ContactsFacet {
1235
1205
  /** Filter used to query contacts of this facet. */
1236
1206
  queryFilter?: Record<string, any> | null;
1237
1207
  }
1238
- export declare enum ContactsFacetType {
1208
+ declare enum ContactsFacetType {
1239
1209
  UNKNOWN = "UNKNOWN",
1240
1210
  ALL_CONTACTS = "ALL_CONTACTS",
1241
1211
  NOT_LABELED = "NOT_LABELED",
@@ -1244,8 +1214,8 @@ export declare enum ContactsFacetType {
1244
1214
  MEMBERSHIP_STATUS = "MEMBERSHIP_STATUS"
1245
1215
  }
1246
1216
  /** @enumType */
1247
- export type ContactsFacetTypeWithLiterals = ContactsFacetType | 'UNKNOWN' | 'ALL_CONTACTS' | 'NOT_LABELED' | 'LABEL' | 'SUBSCRIPTION_STATUS' | 'MEMBERSHIP_STATUS';
1248
- export interface QueryFacetsRequest {
1217
+ type ContactsFacetTypeWithLiterals = ContactsFacetType | 'UNKNOWN' | 'ALL_CONTACTS' | 'NOT_LABELED' | 'LABEL' | 'SUBSCRIPTION_STATUS' | 'MEMBERSHIP_STATUS';
1218
+ interface QueryFacetsRequest {
1249
1219
  /** Pagination options. */
1250
1220
  paging?: Paging;
1251
1221
  /**
@@ -1261,13 +1231,13 @@ export interface QueryFacetsRequest {
1261
1231
  */
1262
1232
  filter?: Record<string, any> | null;
1263
1233
  }
1264
- export interface QueryFacetsResponse {
1234
+ interface QueryFacetsResponse {
1265
1235
  /** List of facets. */
1266
1236
  facets?: ContactsFacet[];
1267
1237
  /** Details on the paged set of results returned. */
1268
1238
  pagingMetadata?: PagingMetadata;
1269
1239
  }
1270
- export interface BulkDeleteContactsRequest {
1240
+ interface BulkDeleteContactsRequest {
1271
1241
  /**
1272
1242
  * Filter object.
1273
1243
  *
@@ -1295,7 +1265,7 @@ export interface BulkDeleteContactsRequest {
1295
1265
  */
1296
1266
  search?: string | null;
1297
1267
  }
1298
- export interface BulkDeleteContactsResponse {
1268
+ interface BulkDeleteContactsResponse {
1299
1269
  /**
1300
1270
  * Bulk job ID.
1301
1271
  * The job's status can be retrieved with Get Bulk Job.
@@ -1303,7 +1273,7 @@ export interface BulkDeleteContactsResponse {
1303
1273
  */
1304
1274
  jobId?: string;
1305
1275
  }
1306
- export interface BulkUpdateContactsRequest {
1276
+ interface BulkUpdateContactsRequest {
1307
1277
  /**
1308
1278
  * Filter object.
1309
1279
  *
@@ -1333,7 +1303,7 @@ export interface BulkUpdateContactsRequest {
1333
1303
  /** Contact info. */
1334
1304
  info?: ContactInfo;
1335
1305
  }
1336
- export interface BulkUpdateContactsResponse {
1306
+ interface BulkUpdateContactsResponse {
1337
1307
  /**
1338
1308
  * Bulk job ID.
1339
1309
  * The job's status can be retrieved with Get Bulk Job.
@@ -1341,7 +1311,7 @@ export interface BulkUpdateContactsResponse {
1341
1311
  */
1342
1312
  jobId?: string;
1343
1313
  }
1344
- export interface BulkLabelAndUnlabelContactsRequest {
1314
+ interface BulkLabelAndUnlabelContactsRequest {
1345
1315
  /**
1346
1316
  * Filter options.
1347
1317
  * Labels will be removed from contacts that meet the `filter` and `search` criteria.
@@ -1378,7 +1348,7 @@ export interface BulkLabelAndUnlabelContactsRequest {
1378
1348
  */
1379
1349
  labelKeysToRemove?: string[];
1380
1350
  }
1381
- export interface BulkLabelAndUnlabelContactsResponse {
1351
+ interface BulkLabelAndUnlabelContactsResponse {
1382
1352
  /**
1383
1353
  * Bulk job ID.
1384
1354
  * The job's status can be retrieved with Get Bulk Job.
@@ -1386,7 +1356,7 @@ export interface BulkLabelAndUnlabelContactsResponse {
1386
1356
  */
1387
1357
  jobId?: string;
1388
1358
  }
1389
- export interface BulkUpsertContactsRequest {
1359
+ interface BulkUpsertContactsRequest {
1390
1360
  /**
1391
1361
  * @minSize 1
1392
1362
  * @maxSize 100
@@ -1394,56 +1364,56 @@ export interface BulkUpsertContactsRequest {
1394
1364
  info?: ContactInfo[];
1395
1365
  returnFullEntity?: boolean;
1396
1366
  }
1397
- export interface BulkUpsertContactsResponse {
1367
+ interface BulkUpsertContactsResponse {
1398
1368
  results?: Item[];
1399
1369
  metadata?: BulkUpsertContactsResponseMetadata;
1400
1370
  }
1401
- export declare enum Action {
1371
+ declare enum Action {
1402
1372
  UNKNOWN = "UNKNOWN",
1403
1373
  UPDATED = "UPDATED",
1404
1374
  CREATED = "CREATED"
1405
1375
  }
1406
1376
  /** @enumType */
1407
- export type ActionWithLiterals = Action | 'UNKNOWN' | 'UPDATED' | 'CREATED';
1408
- export interface Error {
1377
+ type ActionWithLiterals = Action | 'UNKNOWN' | 'UPDATED' | 'CREATED';
1378
+ interface Error {
1409
1379
  /** Error code. */
1410
1380
  code?: string;
1411
1381
  /** Error details. */
1412
1382
  message?: string | null;
1413
1383
  }
1414
- export interface Metadata {
1415
- id?: string | null;
1384
+ interface Metadata {
1385
+ _id?: string | null;
1416
1386
  originalIndex?: number;
1417
1387
  action?: ActionWithLiterals;
1418
1388
  success?: boolean;
1419
1389
  error?: Error;
1420
1390
  }
1421
- export interface Item {
1391
+ interface Item {
1422
1392
  contact?: Contact;
1423
1393
  metadata?: Metadata;
1424
1394
  }
1425
- export interface BulkUpsertContactsResponseMetadata {
1395
+ interface BulkUpsertContactsResponseMetadata {
1426
1396
  totalSuccess?: number;
1427
1397
  totalFailure?: number;
1428
1398
  totalCreated?: number;
1429
1399
  totalUpdated?: number;
1430
1400
  }
1431
- export interface UpsertContactRequest {
1401
+ interface UpsertContactRequest {
1432
1402
  info?: ContactInfo;
1433
1403
  }
1434
- export interface UpsertContactResponse {
1404
+ interface UpsertContactResponse {
1435
1405
  /** Upserted contact. */
1436
1406
  contact?: Contact;
1437
1407
  action?: UpsertContactResponseActionWithLiterals;
1438
1408
  }
1439
- export declare enum UpsertContactResponseAction {
1409
+ declare enum UpsertContactResponseAction {
1440
1410
  UNKNOWN = "UNKNOWN",
1441
1411
  UPDATED = "UPDATED",
1442
1412
  CREATED = "CREATED"
1443
1413
  }
1444
1414
  /** @enumType */
1445
- export type UpsertContactResponseActionWithLiterals = UpsertContactResponseAction | 'UNKNOWN' | 'UPDATED' | 'CREATED';
1446
- export interface GeneratePictureUploadUrlRequest {
1415
+ type UpsertContactResponseActionWithLiterals = UpsertContactResponseAction | 'UNKNOWN' | 'UPDATED' | 'CREATED';
1416
+ interface GeneratePictureUploadUrlRequest {
1447
1417
  /**
1448
1418
  * ID of the contact whose picture is being updated.
1449
1419
  * @format GUID
@@ -1456,19 +1426,19 @@ export interface GeneratePictureUploadUrlRequest {
1456
1426
  */
1457
1427
  mimeType?: string | null;
1458
1428
  }
1459
- export interface GeneratePictureUploadUrlResponse {
1429
+ interface GeneratePictureUploadUrlResponse {
1460
1430
  /**
1461
1431
  * URL to upload the image
1462
1432
  * @format WEB_URL
1463
1433
  */
1464
1434
  uploadUrl?: string;
1465
1435
  }
1466
- export interface GetContactRequest {
1436
+ interface GetContactRequest {
1467
1437
  /**
1468
1438
  * ID of the contact to retrieve.
1469
1439
  * @format GUID
1470
1440
  */
1471
- id: string;
1441
+ _id: string;
1472
1442
  /**
1473
1443
  * List of projected fields to return.
1474
1444
  * If both `fields` and `fieldsets` are sent in the request,
@@ -1500,13 +1470,13 @@ export interface GetContactRequest {
1500
1470
  fieldsets?: ContactFieldSetWithLiterals[];
1501
1471
  }
1502
1472
  /** The requested contact. */
1503
- export interface GetContactResponse {
1473
+ interface GetContactResponse {
1504
1474
  /** The requested contact. */
1505
1475
  contact?: Contact;
1506
1476
  /** Contact response type. */
1507
1477
  responseType?: GetContactResponseTypeWithLiterals;
1508
1478
  }
1509
- export declare enum GetContactResponseType {
1479
+ declare enum GetContactResponseType {
1510
1480
  /** The specified contact was returned. */
1511
1481
  REGULAR = "REGULAR",
1512
1482
  /** Not used. */
@@ -1515,8 +1485,8 @@ export declare enum GetContactResponseType {
1515
1485
  MERGED = "MERGED"
1516
1486
  }
1517
1487
  /** @enumType */
1518
- export type GetContactResponseTypeWithLiterals = GetContactResponseType | 'REGULAR' | 'IMPLICIT' | 'MERGED';
1519
- export interface SyncSubmitContactRequest {
1488
+ type GetContactResponseTypeWithLiterals = GetContactResponseType | 'REGULAR' | 'IMPLICIT' | 'MERGED';
1489
+ interface SyncSubmitContactRequest {
1520
1490
  contactInfo?: ContactInfo;
1521
1491
  activity?: ContactActivity;
1522
1492
  passThroughData?: string | null;
@@ -1528,25 +1498,25 @@ export interface SyncSubmitContactRequest {
1528
1498
  sourceId?: string | null;
1529
1499
  hideFromContactList?: boolean;
1530
1500
  }
1531
- export declare enum SubmitOperation {
1501
+ declare enum SubmitOperation {
1532
1502
  UNKNOWN = "UNKNOWN",
1533
1503
  CREATE = "CREATE",
1534
1504
  UPDATE = "UPDATE"
1535
1505
  }
1536
1506
  /** @enumType */
1537
- export type SubmitOperationWithLiterals = SubmitOperation | 'UNKNOWN' | 'CREATE' | 'UPDATE';
1538
- export interface SyncSubmitContactResponse {
1507
+ type SubmitOperationWithLiterals = SubmitOperation | 'UNKNOWN' | 'CREATE' | 'UPDATE';
1508
+ interface SyncSubmitContactResponse {
1539
1509
  }
1540
- export interface CountContactsRequest {
1510
+ interface CountContactsRequest {
1541
1511
  }
1542
- export interface CountContactsResponse {
1512
+ interface CountContactsResponse {
1543
1513
  count?: number;
1544
1514
  }
1545
- export interface SearchContactsRequest {
1515
+ interface SearchContactsRequest {
1546
1516
  /** Search object. Encapsulates filter, sorting, paging and other details */
1547
1517
  search?: Search;
1548
1518
  }
1549
- export interface Search extends SearchPagingMethodOneOf {
1519
+ interface Search extends SearchPagingMethodOneOf {
1550
1520
  /** Cursor pointing to page of results. 'cursorPaging.cursor' can not be used together with 'filter' or 'sort' */
1551
1521
  cursorPaging?: CursorPaging;
1552
1522
  /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
@@ -1581,11 +1551,11 @@ export interface Search extends SearchPagingMethodOneOf {
1581
1551
  search?: SearchDetails;
1582
1552
  }
1583
1553
  /** @oneof */
1584
- export interface SearchPagingMethodOneOf {
1554
+ interface SearchPagingMethodOneOf {
1585
1555
  /** Cursor pointing to page of results. 'cursorPaging.cursor' can not be used together with 'filter' or 'sort' */
1586
1556
  cursorPaging?: CursorPaging;
1587
1557
  }
1588
- export interface SearchDetails {
1558
+ interface SearchDetails {
1589
1559
  /** boolean search mode. Default is `OR` */
1590
1560
  mode?: ModeWithLiterals;
1591
1561
  /**
@@ -1607,15 +1577,15 @@ export interface SearchDetails {
1607
1577
  /** flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
1608
1578
  fuzzy?: boolean;
1609
1579
  }
1610
- export declare enum Mode {
1580
+ declare enum Mode {
1611
1581
  /** any */
1612
1582
  OR = "OR",
1613
1583
  /** all */
1614
1584
  AND = "AND"
1615
1585
  }
1616
1586
  /** @enumType */
1617
- export type ModeWithLiterals = Mode | 'OR' | 'AND';
1618
- export interface CursorPaging {
1587
+ type ModeWithLiterals = Mode | 'OR' | 'AND';
1588
+ interface CursorPaging {
1619
1589
  /**
1620
1590
  * The number of contacts to load (default = 50, max = 1000)
1621
1591
  * @max 1000
@@ -1624,14 +1594,14 @@ export interface CursorPaging {
1624
1594
  /** Cursor returned in last query response. Should not be provided on first page request */
1625
1595
  cursor?: string | null;
1626
1596
  }
1627
- export interface SearchContactsResponse {
1597
+ interface SearchContactsResponse {
1628
1598
  /** List of contacts. */
1629
1599
  contacts?: Contact[];
1630
1600
  /** Details on the paged set of results returned. */
1631
1601
  cursorPagingMetadata?: CursorPagingMetadata;
1632
1602
  }
1633
1603
  /** This is the preferred message for cursor-paging enabled services */
1634
- export interface CursorPagingMetadata {
1604
+ interface CursorPagingMetadata {
1635
1605
  /** Number of items returned in the response. */
1636
1606
  count?: number | null;
1637
1607
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -1644,13 +1614,13 @@ export interface CursorPagingMetadata {
1644
1614
  */
1645
1615
  hasNext?: boolean | null;
1646
1616
  }
1647
- export interface Cursors {
1617
+ interface Cursors {
1648
1618
  /** Cursor pointing to next result page */
1649
1619
  next?: string | null;
1650
1620
  /** Cursor pointing to previous result page */
1651
1621
  prev?: string | null;
1652
1622
  }
1653
- export interface BulkAddSegmentToContactsRequest {
1623
+ interface BulkAddSegmentToContactsRequest {
1654
1624
  /**
1655
1625
  * Segment id
1656
1626
  * @format GUID
@@ -1670,15 +1640,15 @@ export interface BulkAddSegmentToContactsRequest {
1670
1640
  */
1671
1641
  existsSegmentIds?: string[];
1672
1642
  }
1673
- export interface BulkAddSegmentToContactsResponse {
1643
+ interface BulkAddSegmentToContactsResponse {
1674
1644
  /** List of action results */
1675
1645
  results?: ItemMetadata[];
1676
1646
  /** Metadata on the bulk action */
1677
1647
  bulkActionMetadata?: BulkActionMetadata;
1678
1648
  }
1679
- export interface ItemMetadata {
1649
+ interface ItemMetadata {
1680
1650
  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
1681
- id?: string | null;
1651
+ _id?: string | null;
1682
1652
  /** Index of the item within the request array. Allows for correlation between request and response items. */
1683
1653
  originalIndex?: number;
1684
1654
  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
@@ -1686,7 +1656,7 @@ export interface ItemMetadata {
1686
1656
  /** Details about the error in case of failure. */
1687
1657
  error?: ApplicationError;
1688
1658
  }
1689
- export interface ApplicationError {
1659
+ interface ApplicationError {
1690
1660
  /** Error code. */
1691
1661
  code?: string;
1692
1662
  /** Description of the error. */
@@ -1694,7 +1664,7 @@ export interface ApplicationError {
1694
1664
  /** Data related to the error. */
1695
1665
  data?: Record<string, any> | null;
1696
1666
  }
1697
- export interface BulkActionMetadata {
1667
+ interface BulkActionMetadata {
1698
1668
  /** Number of items that were successfully processed. */
1699
1669
  totalSuccesses?: number;
1700
1670
  /** Number of items that couldn't be processed. */
@@ -1702,13 +1672,13 @@ export interface BulkActionMetadata {
1702
1672
  /** Number of failures without details because detailed failure threshold was exceeded. */
1703
1673
  undetailedFailures?: number;
1704
1674
  }
1705
- export interface ContactAddedToSegment {
1675
+ interface ContactAddedToSegment {
1706
1676
  /** Id of the segment to which the contact was added */
1707
1677
  segmentId?: string;
1708
1678
  /** The contact that was added */
1709
1679
  contact?: Contact;
1710
1680
  }
1711
- export interface BulkRemoveSegmentFromContactsRequest {
1681
+ interface BulkRemoveSegmentFromContactsRequest {
1712
1682
  /**
1713
1683
  * Segment id
1714
1684
  * @format GUID
@@ -1722,19 +1692,19 @@ export interface BulkRemoveSegmentFromContactsRequest {
1722
1692
  */
1723
1693
  contactIds?: string[];
1724
1694
  }
1725
- export interface BulkRemoveSegmentFromContactsResponse {
1695
+ interface BulkRemoveSegmentFromContactsResponse {
1726
1696
  /** List of action results */
1727
1697
  results?: ItemMetadata[];
1728
1698
  /** Metadata on the bulk action */
1729
1699
  bulkActionMetadata?: BulkActionMetadata;
1730
1700
  }
1731
- export interface ContactRemovedFromSegment {
1701
+ interface ContactRemovedFromSegment {
1732
1702
  /** Id of the segment from which the contact was removed */
1733
1703
  segmentId?: string;
1734
1704
  /** The contact that was removed */
1735
1705
  contact?: Contact;
1736
1706
  }
1737
- export interface ListContactIdsBySegmentRequest {
1707
+ interface ListContactIdsBySegmentRequest {
1738
1708
  /**
1739
1709
  * Segment id
1740
1710
  * @format GUID
@@ -1743,7 +1713,7 @@ export interface ListContactIdsBySegmentRequest {
1743
1713
  /** Cursor paging. */
1744
1714
  cursorPaging?: CursorPaging;
1745
1715
  }
1746
- export interface ListContactIdsBySegmentResponse {
1716
+ interface ListContactIdsBySegmentResponse {
1747
1717
  /**
1748
1718
  * List of contact IDs
1749
1719
  * @format GUID
@@ -1753,13 +1723,13 @@ export interface ListContactIdsBySegmentResponse {
1753
1723
  /** Paging metadata */
1754
1724
  cursorPagingMetadata?: CursorPagingMetadata;
1755
1725
  }
1756
- export interface DomainEvent extends DomainEventBodyOneOf {
1726
+ interface DomainEvent extends DomainEventBodyOneOf {
1757
1727
  createdEvent?: EntityCreatedEvent;
1758
1728
  updatedEvent?: EntityUpdatedEvent;
1759
1729
  deletedEvent?: EntityDeletedEvent;
1760
1730
  actionEvent?: ActionEvent;
1761
1731
  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1762
- id?: string;
1732
+ _id?: string;
1763
1733
  /**
1764
1734
  * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1765
1735
  * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
@@ -1788,36 +1758,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
1788
1758
  entityEventSequence?: string | null;
1789
1759
  }
1790
1760
  /** @oneof */
1791
- export interface DomainEventBodyOneOf {
1761
+ interface DomainEventBodyOneOf {
1792
1762
  createdEvent?: EntityCreatedEvent;
1793
1763
  updatedEvent?: EntityUpdatedEvent;
1794
1764
  deletedEvent?: EntityDeletedEvent;
1795
1765
  actionEvent?: ActionEvent;
1796
1766
  }
1797
- export interface EntityCreatedEvent {
1798
- entityAsJson?: string;
1799
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1800
- restoreInfo?: RestoreInfo;
1767
+ interface EntityCreatedEvent {
1768
+ entity?: string;
1801
1769
  }
1802
- export interface RestoreInfo {
1770
+ interface RestoreInfo {
1803
1771
  deletedDate?: Date | null;
1804
1772
  }
1805
- export interface EntityUpdatedEvent {
1773
+ interface EntityUpdatedEvent {
1806
1774
  /**
1807
1775
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1808
1776
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1809
1777
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1810
1778
  */
1811
- currentEntityAsJson?: string;
1779
+ currentEntity?: string;
1812
1780
  }
1813
- export interface EntityDeletedEvent {
1781
+ interface EntityDeletedEvent {
1814
1782
  /** Entity that was deleted. */
1815
- deletedEntityAsJson?: string | null;
1783
+ deletedEntity?: string | null;
1816
1784
  }
1817
- export interface ActionEvent {
1818
- bodyAsJson?: string;
1785
+ interface ActionEvent {
1786
+ body?: string;
1819
1787
  }
1820
- export interface MessageEnvelope {
1788
+ interface MessageEnvelope {
1821
1789
  /**
1822
1790
  * App instance ID.
1823
1791
  * @format GUID
@@ -1833,7 +1801,7 @@ export interface MessageEnvelope {
1833
1801
  /** Stringify payload. */
1834
1802
  data?: string;
1835
1803
  }
1836
- export interface IdentificationData extends IdentificationDataIdOneOf {
1804
+ interface IdentificationData extends IdentificationDataIdOneOf {
1837
1805
  /**
1838
1806
  * ID of a site visitor that has not logged in to the site.
1839
1807
  * @format GUID
@@ -1858,7 +1826,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
1858
1826
  identityType?: WebhookIdentityTypeWithLiterals;
1859
1827
  }
1860
1828
  /** @oneof */
1861
- export interface IdentificationDataIdOneOf {
1829
+ interface IdentificationDataIdOneOf {
1862
1830
  /**
1863
1831
  * ID of a site visitor that has not logged in to the site.
1864
1832
  * @format GUID
@@ -1880,7 +1848,7 @@ export interface IdentificationDataIdOneOf {
1880
1848
  */
1881
1849
  appId?: string;
1882
1850
  }
1883
- export declare enum WebhookIdentityType {
1851
+ declare enum WebhookIdentityType {
1884
1852
  UNKNOWN = "UNKNOWN",
1885
1853
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1886
1854
  MEMBER = "MEMBER",
@@ -1888,4 +1856,207 @@ export declare enum WebhookIdentityType {
1888
1856
  APP = "APP"
1889
1857
  }
1890
1858
  /** @enumType */
1891
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1859
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1860
+ interface BaseEventMetadata {
1861
+ /**
1862
+ * App instance ID.
1863
+ * @format GUID
1864
+ */
1865
+ instanceId?: string | null;
1866
+ /**
1867
+ * Event type.
1868
+ * @maxLength 150
1869
+ */
1870
+ eventType?: string;
1871
+ /** The identification type and identity data. */
1872
+ identity?: IdentificationData;
1873
+ }
1874
+ interface EventMetadata extends BaseEventMetadata {
1875
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1876
+ _id?: string;
1877
+ /**
1878
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1879
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1880
+ */
1881
+ entityFqdn?: string;
1882
+ /**
1883
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1884
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1885
+ */
1886
+ slug?: string;
1887
+ /** ID of the entity associated with the event. */
1888
+ entityId?: string;
1889
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1890
+ eventTime?: Date | null;
1891
+ /**
1892
+ * Whether the event was triggered as a result of a privacy regulation application
1893
+ * (for example, GDPR).
1894
+ */
1895
+ triggeredByAnonymizeRequest?: boolean | null;
1896
+ /** If present, indicates the action that triggered the event. */
1897
+ originatedFrom?: string | null;
1898
+ /**
1899
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
1900
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
1901
+ */
1902
+ entityEventSequence?: string | null;
1903
+ }
1904
+ interface ContactCreatedEnvelope {
1905
+ entity: Contact;
1906
+ metadata: EventMetadata;
1907
+ }
1908
+ interface ContactDeletedEnvelope {
1909
+ metadata: EventMetadata;
1910
+ }
1911
+ interface ContactMergedEnvelope {
1912
+ data: ContactMerged;
1913
+ metadata: EventMetadata;
1914
+ }
1915
+ interface ContactUpdatedEnvelope {
1916
+ entity: Contact;
1917
+ metadata: EventMetadata;
1918
+ }
1919
+ interface CreateContactOptions {
1920
+ /**
1921
+ * Controls whether the call will succeed
1922
+ * if the new contact information contains an email or a phone number already used by another contact.
1923
+ *
1924
+ * If set to `true`,
1925
+ * the call will succeed even if an email address or phone number is used by another contact.
1926
+ * If set to `false`,
1927
+ * the call will fail if the given email address is used by another contact or,
1928
+ * if the email address is not given and the given phone number is used by another contact.
1929
+ *
1930
+ * Default: `false`
1931
+ */
1932
+ allowDuplicates?: boolean;
1933
+ }
1934
+ interface UpdateContactOptions {
1935
+ /**
1936
+ * Controls whether the call will succeed
1937
+ * if the new contact information contains an email or a phone number already used by another contact.
1938
+ *
1939
+ * If set to `true`,
1940
+ * the call will succeed even if an email address or phone number is used by another contact.
1941
+ * If set to `false`,
1942
+ * the call will fail if the given email address is used by another contact or,
1943
+ * if the email address is not given and the given phone number is used by another contact.
1944
+ *
1945
+ * Default: `false`
1946
+ */
1947
+ allowDuplicates?: boolean;
1948
+ }
1949
+ interface MergeContactsOptions {
1950
+ /**
1951
+ * IDs of up to 5 contacts to merge into the target contact.
1952
+ * When you merge more than one source contact,
1953
+ * the first source is given precedence, then the second, and so on.
1954
+ * @minSize 1
1955
+ * @maxSize 5
1956
+ */
1957
+ sourceContactIds?: string[];
1958
+ }
1959
+ interface QueryContactsOptions {
1960
+ /**
1961
+ * @internal
1962
+ * @maxLength 100
1963
+ */
1964
+ search?: string | null | undefined;
1965
+ }
1966
+ interface QueryOffsetResult {
1967
+ currentPage: number | undefined;
1968
+ totalPages: number | undefined;
1969
+ totalCount: number | undefined;
1970
+ hasNext: () => boolean;
1971
+ hasPrev: () => boolean;
1972
+ length: number;
1973
+ pageSize: number;
1974
+ }
1975
+ interface ContactsQueryResult extends QueryOffsetResult {
1976
+ items: Contact[];
1977
+ query: ContactsQueryBuilder;
1978
+ next: () => Promise<ContactsQueryResult>;
1979
+ prev: () => Promise<ContactsQueryResult>;
1980
+ }
1981
+ interface ContactsQueryBuilder {
1982
+ /** @param propertyName - Property whose value is compared with `value`.
1983
+ * @param value - Value to compare against.
1984
+ */
1985
+ eq: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'lastActivity.activityDate' | 'primaryInfo.email' | 'primaryInfo.phone' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle' | 'info.birthdate' | 'info.locale', value: any) => ContactsQueryBuilder;
1986
+ /** @param propertyName - Property whose value is compared with `value`.
1987
+ * @param value - Value to compare against.
1988
+ */
1989
+ ne: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'lastActivity.activityDate' | 'primaryInfo.email' | 'primaryInfo.phone' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle' | 'info.birthdate' | 'info.locale', value: any) => ContactsQueryBuilder;
1990
+ /** @param propertyName - Property whose value is compared with `value`.
1991
+ * @param value - Value to compare against.
1992
+ */
1993
+ ge: (propertyName: '_createdDate' | '_updatedDate' | 'lastActivity.activityDate' | 'info.birthdate', value: any) => ContactsQueryBuilder;
1994
+ /** @param propertyName - Property whose value is compared with `value`.
1995
+ * @param value - Value to compare against.
1996
+ */
1997
+ gt: (propertyName: '_createdDate' | '_updatedDate' | 'lastActivity.activityDate' | 'info.birthdate', value: any) => ContactsQueryBuilder;
1998
+ /** @param propertyName - Property whose value is compared with `value`.
1999
+ * @param value - Value to compare against.
2000
+ */
2001
+ le: (propertyName: '_createdDate' | '_updatedDate' | 'lastActivity.activityDate' | 'info.birthdate', value: any) => ContactsQueryBuilder;
2002
+ /** @param propertyName - Property whose value is compared with `value`.
2003
+ * @param value - Value to compare against.
2004
+ */
2005
+ lt: (propertyName: '_createdDate' | '_updatedDate' | 'lastActivity.activityDate' | 'info.birthdate', value: any) => ContactsQueryBuilder;
2006
+ /** @param propertyName - Property whose value is compared with `string`.
2007
+ * @param string - String to compare against. Case-insensitive.
2008
+ */
2009
+ startsWith: (propertyName: 'primaryInfo.email' | 'primaryInfo.phone' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle', value: string) => ContactsQueryBuilder;
2010
+ /** @param propertyName - Property whose value is compared with `values`.
2011
+ * @param values - List of values to compare against.
2012
+ */
2013
+ hasSome: (propertyName: string, value: any[]) => ContactsQueryBuilder;
2014
+ /** @param propertyName - Property whose value is compared with `values`.
2015
+ * @param values - List of values to compare against.
2016
+ */
2017
+ hasAll: (propertyName: string, value: any[]) => ContactsQueryBuilder;
2018
+ in: (propertyName: '_id' | 'primaryInfo.email' | 'primaryInfo.phone' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle' | 'info.locale', value: any) => ContactsQueryBuilder;
2019
+ exists: (propertyName: '_id' | 'primaryInfo.email' | 'primaryInfo.phone' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle' | 'info.locale', value: boolean) => ContactsQueryBuilder;
2020
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
2021
+ ascending: (...propertyNames: Array<'_createdDate' | 'lastActivity.activityDate' | 'primaryInfo.email' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle' | 'info.birthdate'>) => ContactsQueryBuilder;
2022
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
2023
+ descending: (...propertyNames: Array<'_createdDate' | 'lastActivity.activityDate' | 'primaryInfo.email' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle' | 'info.birthdate'>) => ContactsQueryBuilder;
2024
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
2025
+ limit: (limit: number) => ContactsQueryBuilder;
2026
+ /** @param skip - Number of items to skip in the query results before returning the results. */
2027
+ skip: (skip: number) => ContactsQueryBuilder;
2028
+ find: () => Promise<ContactsQueryResult>;
2029
+ }
2030
+ interface GetContactOptions {
2031
+ /**
2032
+ * List of projected fields to return.
2033
+ * If both `fields` and `fieldsets` are sent in the request,
2034
+ * the union of both lists is returned.
2035
+ * `id` and `revision` are always returned.
2036
+ *
2037
+ * Supported properties:
2038
+ * `source`, `createdDate`, `updatedDate`, `lastActivity`, `primaryInfo`,
2039
+ * `info.name`, `info.emails`, `info.phones`, `info.addresses`, `info.company`,
2040
+ * `info.jobTitle`, `info.picture`, `info.birthdate`, `info.locale`,
2041
+ * `info.labelKeys`, `info.locations`, `info.extendedFields`
2042
+ * @maxLength 100
2043
+ * @maxSize 100
2044
+ */
2045
+ fields?: string[];
2046
+ /**
2047
+ * Predefined sets of fields to return.
2048
+ * If both `fields` and `fieldsets` are sent in the request,
2049
+ * the union of both lists is returned.
2050
+ *
2051
+ * - `BASIC`: Returns `id`, `revision`, `primaryInfo`, `info.name`.
2052
+ * - `COMMUNICATION_DETAILS`: Returns `id`, `revision`, `primaryInfo`, `info.name`, `info.emails`, `info.phones`, `info.addresses`.
2053
+ * - `EXTENDED`: Returns `id`, `revision`, `primaryInfo`, `info.name`, `info.extendedFields`.
2054
+ * - `FULL`: Returns all fields.
2055
+ *
2056
+ * Default: If `fields` is omitted from the request, `FULL`.
2057
+ * @maxSize 10
2058
+ */
2059
+ fieldsets?: ContactFieldSetWithLiterals[];
2060
+ }
2061
+
2062
+ export { type AddressLocation as $, AddressTag as A, type ContactSource as B, type ContactInfo as C, type ContactActivity as D, EmailTag as E, type ActivityIcon as F, type GetContactOptions as G, type PrimaryContactInfo as H, ImageProvider as I, type ContactName as J, type ContactEmailsWrapper as K, type LabelContactResponse as L, type MergeContactsOptions as M, type ContactEmail as N, type ContactPhonesWrapper as O, PhoneTag as P, type QueryContactsOptions as Q, Role as R, SubdivisionType as S, type ContactPhone as T, type UpdateContactOptions as U, type ContactAddressesWrapper as V, WebhookIdentityType as W, type ContactAddress as X, type Address as Y, type AddressStreetOneOf as Z, type StreetAddress as _, type CreateContactOptions as a, type GetContactRequest as a$, type Subdivision as a0, type AssigneesWrapper as a1, type LabelsWrapper as a2, type ExtendedFieldsWrapper as a3, type LocationsWrapper as a4, type ContactPicture as a5, type SegmentsWrapper as a6, type PrimaryEmail as a7, type PrimaryPhone as a8, type MemberInfo as a9, type Paging as aA, type ListContactsResponse as aB, type PagingMetadata as aC, type QueryContactsRequest as aD, type Query as aE, type QueryContactsResponse as aF, type ListFacetsRequest as aG, type ListFacetsResponse as aH, type ContactsFacet as aI, type QueryFacetsRequest as aJ, type QueryFacetsResponse as aK, type BulkDeleteContactsRequest as aL, type BulkDeleteContactsResponse as aM, type BulkUpdateContactsRequest as aN, type BulkUpdateContactsResponse as aO, type BulkLabelAndUnlabelContactsRequest as aP, type BulkLabelAndUnlabelContactsResponse as aQ, type BulkUpsertContactsRequest as aR, type BulkUpsertContactsResponse as aS, type Error as aT, type Metadata as aU, type Item as aV, type BulkUpsertContactsResponseMetadata as aW, type UpsertContactRequest as aX, type UpsertContactResponse as aY, type GeneratePictureUploadUrlRequest as aZ, type GeneratePictureUploadUrlResponse as a_, type ProfileInfo as aa, type UserInfo as ab, type SessionInfo as ac, type GroupInfo as ad, type ContactSubmitted as ae, type ContactChanged as af, type ContactEmailSubscriptionUpdated as ag, type ContactPhoneSubscriptionUpdated as ah, type ContactPrimaryInfoUpdated as ai, type PrimarySubscriptionStatus as aj, type LastActivityUpdate as ak, type CreateContactRequest as al, type DuplicateContactExists as am, type UpdateContactRequest as an, type MergeContactsRequest as ao, type ContactMerged as ap, type PreviewMergeContactsRequest as aq, type PreviewMergeContactsResponse as ar, type DeleteContactRequest as as, type DeleteContactResponse as at, type LabelContactRequest as au, type UnlabelContactRequest as av, type LabelAndUnlabelContactRequest as aw, type LabelAndUnlabelContactResponse as ax, type ListContactsRequest as ay, type Sorting as az, type CreateContactResponse as b, type GetContactResponse as b0, type SyncSubmitContactRequest as b1, type SyncSubmitContactResponse as b2, type CountContactsRequest as b3, type CountContactsResponse as b4, type SearchContactsRequest as b5, type Search as b6, type SearchPagingMethodOneOf as b7, type SearchDetails as b8, type CursorPaging as b9, type ContactsQueryResult as bA, type SearchContactsResponse as ba, type CursorPagingMetadata as bb, type Cursors as bc, type BulkAddSegmentToContactsRequest as bd, type BulkAddSegmentToContactsResponse as be, type ItemMetadata as bf, type ApplicationError as bg, type BulkActionMetadata as bh, type ContactAddedToSegment as bi, type BulkRemoveSegmentFromContactsRequest as bj, type BulkRemoveSegmentFromContactsResponse as bk, type ContactRemovedFromSegment as bl, type ListContactIdsBySegmentRequest as bm, type ListContactIdsBySegmentResponse as bn, type DomainEvent as bo, type DomainEventBodyOneOf as bp, type EntityCreatedEvent as bq, type RestoreInfo as br, type EntityUpdatedEvent as bs, type EntityDeletedEvent as bt, type ActionEvent as bu, type MessageEnvelope as bv, type IdentificationData as bw, type IdentificationDataIdOneOf as bx, type BaseEventMetadata as by, type EventMetadata as bz, type UpdateContactResponse as c, type MergeContactsResponse as d, type UnlabelContactResponse as e, type ContactsQueryBuilder as f, type Contact as g, type ContactCreatedEnvelope as h, type ContactDeletedEnvelope as i, type ContactMergedEnvelope as j, type ContactUpdatedEnvelope as k, ContactSourceType as l, ContactActivityType as m, SubscriptionStatus as n, EmailDeliverabilityStatus as o, PhoneDeliverabilityStatus as p, MemberStatus as q, PrivacyStatus as r, SortOrder as s, ContactFieldSet as t, ContactsFacetType as u, Action as v, UpsertContactResponseAction as w, GetContactResponseType as x, SubmitOperation as y, Mode as z };