@wix/crm 1.0.85 → 1.0.87

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 (229) hide show
  1. package/build/cjs/context.d.ts +5 -5
  2. package/build/cjs/context.js +5 -5
  3. package/build/cjs/context.js.map +1 -1
  4. package/build/cjs/index.d.ts +5 -5
  5. package/build/cjs/index.js +5 -5
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +5 -5
  8. package/build/cjs/meta.js +5 -5
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +5 -5
  11. package/build/es/context.js +5 -5
  12. package/build/es/context.js.map +1 -1
  13. package/build/es/index.d.ts +5 -5
  14. package/build/es/index.js +5 -5
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +5 -5
  17. package/build/es/meta.js +5 -5
  18. package/build/es/meta.js.map +1 -1
  19. package/package.json +15 -9
  20. package/build/cjs/index.typings.d.ts +0 -5
  21. package/build/cjs/index.typings.js +0 -32
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/contacts-v4-contact.context.d.ts +0 -9
  24. package/build/cjs/src/contacts-v4-contact.context.js +0 -124
  25. package/build/cjs/src/contacts-v4-contact.context.js.map +0 -1
  26. package/build/cjs/src/contacts-v4-contact.http.d.ts +0 -94
  27. package/build/cjs/src/contacts-v4-contact.http.js +0 -485
  28. package/build/cjs/src/contacts-v4-contact.http.js.map +0 -1
  29. package/build/cjs/src/contacts-v4-contact.meta.d.ts +0 -31
  30. package/build/cjs/src/contacts-v4-contact.meta.js +0 -161
  31. package/build/cjs/src/contacts-v4-contact.meta.js.map +0 -1
  32. package/build/cjs/src/contacts-v4-contact.public.d.ts +0 -49
  33. package/build/cjs/src/contacts-v4-contact.public.js +0 -76
  34. package/build/cjs/src/contacts-v4-contact.public.js.map +0 -1
  35. package/build/cjs/src/contacts-v4-contact.types.d.ts +0 -2199
  36. package/build/cjs/src/contacts-v4-contact.types.js +0 -270
  37. package/build/cjs/src/contacts-v4-contact.types.js.map +0 -1
  38. package/build/cjs/src/contacts-v4-contact.universal.d.ts +0 -2069
  39. package/build/cjs/src/contacts-v4-contact.universal.js +0 -930
  40. package/build/cjs/src/contacts-v4-contact.universal.js.map +0 -1
  41. package/build/cjs/src/contacts-v4-extended-field.context.d.ts +0 -7
  42. package/build/cjs/src/contacts-v4-extended-field.context.js +0 -90
  43. package/build/cjs/src/contacts-v4-extended-field.context.js.map +0 -1
  44. package/build/cjs/src/contacts-v4-extended-field.http.d.ts +0 -52
  45. package/build/cjs/src/contacts-v4-extended-field.http.js +0 -234
  46. package/build/cjs/src/contacts-v4-extended-field.http.js.map +0 -1
  47. package/build/cjs/src/contacts-v4-extended-field.meta.d.ts +0 -23
  48. package/build/cjs/src/contacts-v4-extended-field.meta.js +0 -123
  49. package/build/cjs/src/contacts-v4-extended-field.meta.js.map +0 -1
  50. package/build/cjs/src/contacts-v4-extended-field.public.d.ts +0 -23
  51. package/build/cjs/src/contacts-v4-extended-field.public.js +0 -44
  52. package/build/cjs/src/contacts-v4-extended-field.public.js.map +0 -1
  53. package/build/cjs/src/contacts-v4-extended-field.types.d.ts +0 -357
  54. package/build/cjs/src/contacts-v4-extended-field.types.js +0 -23
  55. package/build/cjs/src/contacts-v4-extended-field.types.js.map +0 -1
  56. package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +0 -623
  57. package/build/cjs/src/contacts-v4-extended-field.universal.js +0 -434
  58. package/build/cjs/src/contacts-v4-extended-field.universal.js.map +0 -1
  59. package/build/cjs/src/contacts-v4-label.context.d.ts +0 -7
  60. package/build/cjs/src/contacts-v4-label.context.js +0 -90
  61. package/build/cjs/src/contacts-v4-label.context.js.map +0 -1
  62. package/build/cjs/src/contacts-v4-label.http.d.ts +0 -53
  63. package/build/cjs/src/contacts-v4-label.http.js +0 -235
  64. package/build/cjs/src/contacts-v4-label.http.js.map +0 -1
  65. package/build/cjs/src/contacts-v4-label.meta.d.ts +0 -23
  66. package/build/cjs/src/contacts-v4-label.meta.js +0 -123
  67. package/build/cjs/src/contacts-v4-label.meta.js.map +0 -1
  68. package/build/cjs/src/contacts-v4-label.public.d.ts +0 -21
  69. package/build/cjs/src/contacts-v4-label.public.js +0 -43
  70. package/build/cjs/src/contacts-v4-label.public.js.map +0 -1
  71. package/build/cjs/src/contacts-v4-label.types.d.ts +0 -349
  72. package/build/cjs/src/contacts-v4-label.types.js +0 -17
  73. package/build/cjs/src/contacts-v4-label.types.js.map +0 -1
  74. package/build/cjs/src/contacts-v4-label.universal.d.ts +0 -627
  75. package/build/cjs/src/contacts-v4-label.universal.js +0 -428
  76. package/build/cjs/src/contacts-v4-label.universal.js.map +0 -1
  77. package/build/cjs/src/contacts-v4-submit-contact.context.d.ts +0 -3
  78. package/build/cjs/src/contacts-v4-submit-contact.context.js +0 -22
  79. package/build/cjs/src/contacts-v4-submit-contact.context.js.map +0 -1
  80. package/build/cjs/src/contacts-v4-submit-contact.http.d.ts +0 -8
  81. package/build/cjs/src/contacts-v4-submit-contact.http.js +0 -90
  82. package/build/cjs/src/contacts-v4-submit-contact.http.js.map +0 -1
  83. package/build/cjs/src/contacts-v4-submit-contact.meta.d.ts +0 -13
  84. package/build/cjs/src/contacts-v4-submit-contact.meta.js +0 -47
  85. package/build/cjs/src/contacts-v4-submit-contact.meta.js.map +0 -1
  86. package/build/cjs/src/contacts-v4-submit-contact.public.d.ts +0 -8
  87. package/build/cjs/src/contacts-v4-submit-contact.public.js +0 -22
  88. package/build/cjs/src/contacts-v4-submit-contact.public.js.map +0 -1
  89. package/build/cjs/src/contacts-v4-submit-contact.types.d.ts +0 -541
  90. package/build/cjs/src/contacts-v4-submit-contact.types.js +0 -174
  91. package/build/cjs/src/contacts-v4-submit-contact.types.js.map +0 -1
  92. package/build/cjs/src/contacts-v4-submit-contact.universal.d.ts +0 -555
  93. package/build/cjs/src/contacts-v4-submit-contact.universal.js +0 -288
  94. package/build/cjs/src/contacts-v4-submit-contact.universal.js.map +0 -1
  95. package/build/cjs/src/crm-tasks-v2-task.context.d.ts +0 -9
  96. package/build/cjs/src/crm-tasks-v2-task.context.js +0 -124
  97. package/build/cjs/src/crm-tasks-v2-task.context.js.map +0 -1
  98. package/build/cjs/src/crm-tasks-v2-task.http.d.ts +0 -59
  99. package/build/cjs/src/crm-tasks-v2-task.http.js +0 -268
  100. package/build/cjs/src/crm-tasks-v2-task.http.js.map +0 -1
  101. package/build/cjs/src/crm-tasks-v2-task.meta.d.ts +0 -27
  102. package/build/cjs/src/crm-tasks-v2-task.meta.js +0 -161
  103. package/build/cjs/src/crm-tasks-v2-task.meta.js.map +0 -1
  104. package/build/cjs/src/crm-tasks-v2-task.public.d.ts +0 -30
  105. package/build/cjs/src/crm-tasks-v2-task.public.js +0 -58
  106. package/build/cjs/src/crm-tasks-v2-task.public.js.map +0 -1
  107. package/build/cjs/src/crm-tasks-v2-task.types.d.ts +0 -430
  108. package/build/cjs/src/crm-tasks-v2-task.types.js +0 -29
  109. package/build/cjs/src/crm-tasks-v2-task.types.js.map +0 -1
  110. package/build/cjs/src/crm-tasks-v2-task.universal.d.ts +0 -678
  111. package/build/cjs/src/crm-tasks-v2-task.universal.js +0 -520
  112. package/build/cjs/src/crm-tasks-v2-task.universal.js.map +0 -1
  113. package/build/cjs/src/ping-notifications-v3-notification.http.d.ts +0 -15
  114. package/build/cjs/src/ping-notifications-v3-notification.http.js +0 -87
  115. package/build/cjs/src/ping-notifications-v3-notification.http.js.map +0 -1
  116. package/build/cjs/src/ping-notifications-v3-notification.public.d.ts +0 -8
  117. package/build/cjs/src/ping-notifications-v3-notification.public.js +0 -14
  118. package/build/cjs/src/ping-notifications-v3-notification.public.js.map +0 -1
  119. package/build/cjs/src/ping-notifications-v3-notification.types.d.ts +0 -113
  120. package/build/cjs/src/ping-notifications-v3-notification.types.js +0 -15
  121. package/build/cjs/src/ping-notifications-v3-notification.types.js.map +0 -1
  122. package/build/cjs/src/ping-notifications-v3-notification.universal.d.ts +0 -146
  123. package/build/cjs/src/ping-notifications-v3-notification.universal.js +0 -136
  124. package/build/cjs/src/ping-notifications-v3-notification.universal.js.map +0 -1
  125. package/build/es/index.typings.d.ts +0 -5
  126. package/build/es/index.typings.js +0 -6
  127. package/build/es/index.typings.js.map +0 -1
  128. package/build/es/src/contacts-v4-contact.context.d.ts +0 -9
  129. package/build/es/src/contacts-v4-contact.context.js +0 -114
  130. package/build/es/src/contacts-v4-contact.context.js.map +0 -1
  131. package/build/es/src/contacts-v4-contact.http.d.ts +0 -94
  132. package/build/es/src/contacts-v4-contact.http.js +0 -475
  133. package/build/es/src/contacts-v4-contact.http.js.map +0 -1
  134. package/build/es/src/contacts-v4-contact.meta.d.ts +0 -31
  135. package/build/es/src/contacts-v4-contact.meta.js +0 -128
  136. package/build/es/src/contacts-v4-contact.meta.js.map +0 -1
  137. package/build/es/src/contacts-v4-contact.public.d.ts +0 -49
  138. package/build/es/src/contacts-v4-contact.public.js +0 -40
  139. package/build/es/src/contacts-v4-contact.public.js.map +0 -1
  140. package/build/es/src/contacts-v4-contact.types.d.ts +0 -2199
  141. package/build/es/src/contacts-v4-contact.types.js +0 -267
  142. package/build/es/src/contacts-v4-contact.types.js.map +0 -1
  143. package/build/es/src/contacts-v4-contact.universal.d.ts +0 -2069
  144. package/build/es/src/contacts-v4-contact.universal.js +0 -897
  145. package/build/es/src/contacts-v4-contact.universal.js.map +0 -1
  146. package/build/es/src/contacts-v4-extended-field.context.d.ts +0 -7
  147. package/build/es/src/contacts-v4-extended-field.context.js +0 -82
  148. package/build/es/src/contacts-v4-extended-field.context.js.map +0 -1
  149. package/build/es/src/contacts-v4-extended-field.http.d.ts +0 -52
  150. package/build/es/src/contacts-v4-extended-field.http.js +0 -226
  151. package/build/es/src/contacts-v4-extended-field.http.js.map +0 -1
  152. package/build/es/src/contacts-v4-extended-field.meta.d.ts +0 -23
  153. package/build/es/src/contacts-v4-extended-field.meta.js +0 -92
  154. package/build/es/src/contacts-v4-extended-field.meta.js.map +0 -1
  155. package/build/es/src/contacts-v4-extended-field.public.d.ts +0 -23
  156. package/build/es/src/contacts-v4-extended-field.public.js +0 -30
  157. package/build/es/src/contacts-v4-extended-field.public.js.map +0 -1
  158. package/build/es/src/contacts-v4-extended-field.types.d.ts +0 -357
  159. package/build/es/src/contacts-v4-extended-field.types.js +0 -20
  160. package/build/es/src/contacts-v4-extended-field.types.js.map +0 -1
  161. package/build/es/src/contacts-v4-extended-field.universal.d.ts +0 -623
  162. package/build/es/src/contacts-v4-extended-field.universal.js +0 -403
  163. package/build/es/src/contacts-v4-extended-field.universal.js.map +0 -1
  164. package/build/es/src/contacts-v4-label.context.d.ts +0 -7
  165. package/build/es/src/contacts-v4-label.context.js +0 -82
  166. package/build/es/src/contacts-v4-label.context.js.map +0 -1
  167. package/build/es/src/contacts-v4-label.http.d.ts +0 -53
  168. package/build/es/src/contacts-v4-label.http.js +0 -227
  169. package/build/es/src/contacts-v4-label.http.js.map +0 -1
  170. package/build/es/src/contacts-v4-label.meta.d.ts +0 -23
  171. package/build/es/src/contacts-v4-label.meta.js +0 -92
  172. package/build/es/src/contacts-v4-label.meta.js.map +0 -1
  173. package/build/es/src/contacts-v4-label.public.d.ts +0 -21
  174. package/build/es/src/contacts-v4-label.public.js +0 -30
  175. package/build/es/src/contacts-v4-label.public.js.map +0 -1
  176. package/build/es/src/contacts-v4-label.types.d.ts +0 -349
  177. package/build/es/src/contacts-v4-label.types.js +0 -14
  178. package/build/es/src/contacts-v4-label.types.js.map +0 -1
  179. package/build/es/src/contacts-v4-label.universal.d.ts +0 -627
  180. package/build/es/src/contacts-v4-label.universal.js +0 -397
  181. package/build/es/src/contacts-v4-label.universal.js.map +0 -1
  182. package/build/es/src/contacts-v4-submit-contact.context.d.ts +0 -3
  183. package/build/es/src/contacts-v4-submit-contact.context.js +0 -18
  184. package/build/es/src/contacts-v4-submit-contact.context.js.map +0 -1
  185. package/build/es/src/contacts-v4-submit-contact.http.d.ts +0 -8
  186. package/build/es/src/contacts-v4-submit-contact.http.js +0 -86
  187. package/build/es/src/contacts-v4-submit-contact.http.js.map +0 -1
  188. package/build/es/src/contacts-v4-submit-contact.meta.d.ts +0 -13
  189. package/build/es/src/contacts-v4-submit-contact.meta.js +0 -20
  190. package/build/es/src/contacts-v4-submit-contact.meta.js.map +0 -1
  191. package/build/es/src/contacts-v4-submit-contact.public.d.ts +0 -8
  192. package/build/es/src/contacts-v4-submit-contact.public.js +0 -9
  193. package/build/es/src/contacts-v4-submit-contact.public.js.map +0 -1
  194. package/build/es/src/contacts-v4-submit-contact.types.d.ts +0 -541
  195. package/build/es/src/contacts-v4-submit-contact.types.js +0 -171
  196. package/build/es/src/contacts-v4-submit-contact.types.js.map +0 -1
  197. package/build/es/src/contacts-v4-submit-contact.universal.d.ts +0 -555
  198. package/build/es/src/contacts-v4-submit-contact.universal.js +0 -261
  199. package/build/es/src/contacts-v4-submit-contact.universal.js.map +0 -1
  200. package/build/es/src/crm-tasks-v2-task.context.d.ts +0 -9
  201. package/build/es/src/crm-tasks-v2-task.context.js +0 -114
  202. package/build/es/src/crm-tasks-v2-task.context.js.map +0 -1
  203. package/build/es/src/crm-tasks-v2-task.http.d.ts +0 -59
  204. package/build/es/src/crm-tasks-v2-task.http.js +0 -258
  205. package/build/es/src/crm-tasks-v2-task.http.js.map +0 -1
  206. package/build/es/src/crm-tasks-v2-task.meta.d.ts +0 -27
  207. package/build/es/src/crm-tasks-v2-task.meta.js +0 -128
  208. package/build/es/src/crm-tasks-v2-task.meta.js.map +0 -1
  209. package/build/es/src/crm-tasks-v2-task.public.d.ts +0 -30
  210. package/build/es/src/crm-tasks-v2-task.public.js +0 -40
  211. package/build/es/src/crm-tasks-v2-task.public.js.map +0 -1
  212. package/build/es/src/crm-tasks-v2-task.types.d.ts +0 -430
  213. package/build/es/src/crm-tasks-v2-task.types.js +0 -26
  214. package/build/es/src/crm-tasks-v2-task.types.js.map +0 -1
  215. package/build/es/src/crm-tasks-v2-task.universal.d.ts +0 -678
  216. package/build/es/src/crm-tasks-v2-task.universal.js +0 -487
  217. package/build/es/src/crm-tasks-v2-task.universal.js.map +0 -1
  218. package/build/es/src/ping-notifications-v3-notification.http.d.ts +0 -15
  219. package/build/es/src/ping-notifications-v3-notification.http.js +0 -83
  220. package/build/es/src/ping-notifications-v3-notification.http.js.map +0 -1
  221. package/build/es/src/ping-notifications-v3-notification.public.d.ts +0 -8
  222. package/build/es/src/ping-notifications-v3-notification.public.js +0 -9
  223. package/build/es/src/ping-notifications-v3-notification.public.js.map +0 -1
  224. package/build/es/src/ping-notifications-v3-notification.types.d.ts +0 -113
  225. package/build/es/src/ping-notifications-v3-notification.types.js +0 -12
  226. package/build/es/src/ping-notifications-v3-notification.types.js.map +0 -1
  227. package/build/es/src/ping-notifications-v3-notification.universal.d.ts +0 -146
  228. package/build/es/src/ping-notifications-v3-notification.universal.js +0 -109
  229. package/build/es/src/ping-notifications-v3-notification.universal.js.map +0 -1
@@ -1,2199 +0,0 @@
1
- export interface Contact {
2
- /**
3
- * Contact ID.
4
- * @readonly
5
- */
6
- id?: string;
7
- /**
8
- * Revision number, which increments by 1 each time the contact is updated.
9
- * To prevent conflicting changes,
10
- * the existing `revision` must be used when updating a contact.
11
- * @readonly
12
- */
13
- revision?: number;
14
- /**
15
- * Details about the contact's source.
16
- * @readonly
17
- */
18
- source?: ContactSource;
19
- /**
20
- * Date and time the contact was created.
21
- * @readonly
22
- */
23
- createdDate?: Date;
24
- /**
25
- * Date and time the contact was last updated.
26
- * @readonly
27
- */
28
- updatedDate?: Date;
29
- /**
30
- * Details about the contact's last action in the site.
31
- * @readonly
32
- */
33
- lastActivity?: ContactActivity;
34
- /**
35
- * Contact's primary phone and email.
36
- * @readonly
37
- */
38
- primaryInfo?: PrimaryContactInfo;
39
- /** Contact's details. */
40
- info?: ContactInfo;
41
- }
42
- export interface ContactSource {
43
- /**
44
- * Source type.
45
- * @readonly
46
- */
47
- sourceType?: ContactSourceType;
48
- /**
49
- * App ID, if the contact was created by an app.
50
- * @readonly
51
- */
52
- appId?: string | null;
53
- }
54
- export declare enum ContactSourceType {
55
- OTHER = "OTHER",
56
- ADMIN = "ADMIN",
57
- WIX_APP = "WIX_APP",
58
- IMPORT = "IMPORT",
59
- THIRD_PARTY = "THIRD_PARTY",
60
- WIX_BOOKINGS = "WIX_BOOKINGS",
61
- WIX_CHAT = "WIX_CHAT",
62
- WIX_EMAIL_MARKETING = "WIX_EMAIL_MARKETING",
63
- WIX_EVENTS = "WIX_EVENTS",
64
- WIX_FORMS = "WIX_FORMS",
65
- WIX_GROUPS = "WIX_GROUPS",
66
- WIX_HOTELS = "WIX_HOTELS",
67
- WIX_MARKET_PLACE = "WIX_MARKET_PLACE",
68
- WIX_MUSIC = "WIX_MUSIC",
69
- WIX_RESTAURANTS = "WIX_RESTAURANTS",
70
- WIX_SITE_MEMBERS = "WIX_SITE_MEMBERS",
71
- WIX_STORES = "WIX_STORES",
72
- WIX_CODE = "WIX_CODE",
73
- HOPP = "HOPP"
74
- }
75
- export interface ContactActivity {
76
- /** Date and time of the last action. */
77
- activityDate?: Date;
78
- /**
79
- * Contact's last action in the site.
80
- *
81
- * For descriptions of each value, see
82
- * [Last Activity Types](https://dev.wix.com/api/rest/contacts/contacts/last-activity-types).
83
- */
84
- activityType?: ContactActivityType;
85
- }
86
- export declare enum ContactActivityType {
87
- /** Last visit to your site (any unknown activity) */
88
- GENERAL = "GENERAL",
89
- /** This cannot be reported, used when contact created, will throw exception */
90
- CONTACT_CREATED = "CONTACT_CREATED",
91
- /** "auth/login" */
92
- MEMBER_LOGIN = "MEMBER_LOGIN",
93
- /** "auth/register" */
94
- MEMBER_REGISTER = "MEMBER_REGISTER",
95
- /** "auth/status-change" */
96
- MEMBER_STATUS_CHANGED = "MEMBER_STATUS_CHANGED",
97
- /** "contact/contact-form", (but also "form/contact-form", "form/form") */
98
- FORM_SUBMITTED = "FORM_SUBMITTED",
99
- /** "form/lead-capture-form" */
100
- INBOX_FORM_SUBMITTED = "INBOX_FORM_SUBMITTED",
101
- /** "chat/payment-request-paid" */
102
- INBOX_PAYMENT_REQUEST_PAID = "INBOX_PAYMENT_REQUEST_PAID",
103
- /** "messaging/email" - Direction BUSINESS_TO_CUSTOMER */
104
- INBOX_MESSAGE_TO_CUSTOMER = "INBOX_MESSAGE_TO_CUSTOMER",
105
- /** "messaging/email" - Direction CUSTOMER_TO_BUSINESS */
106
- INBOX_MESSAGE_FROM_CUSTOMER = "INBOX_MESSAGE_FROM_CUSTOMER",
107
- /** "contact/subscription-form" (but also "form/subscription-form") */
108
- NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED = "NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED",
109
- /** "contact/unsubscribe" */
110
- NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE = "NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE",
111
- /** "e_commerce/purchase" */
112
- ECOM_PURCHASE = "ECOM_PURCHASE",
113
- /** "e_commerce/cart-abandon" */
114
- ECOM_CART_ABANDON = "ECOM_CART_ABANDON",
115
- /** "e_commerce/checkout-buyer" */
116
- ECOM_CHECKOUT_BUYER = "ECOM_CHECKOUT_BUYER",
117
- /** "scheduler/appointment" */
118
- BOOKINGS_APPOINTMENT = "BOOKINGS_APPOINTMENT",
119
- /** "hotels/reservation" */
120
- HOTELS_RESERVATION = "HOTELS_RESERVATION",
121
- /** "hotels/purchase" */
122
- HOTELS_PURCHASE = "HOTELS_PURCHASE",
123
- /** "hotels/confirmation" */
124
- HOTELS_CONFIRMATION = "HOTELS_CONFIRMATION",
125
- /** "hotels/cancel" */
126
- HOTELS_CANCEL = "HOTELS_CANCEL",
127
- /** "video/purchase" */
128
- VIDEO_PURCHASE = "VIDEO_PURCHASE",
129
- /** "video/rent" */
130
- VIDEO_RENT = "VIDEO_RENT",
131
- /** "cashier/button_purchase" */
132
- CASHIER_BUTTON_PURCHASE = "CASHIER_BUTTON_PURCHASE",
133
- /** "arena/new-lead" */
134
- ARENA_NEW_LEAD = "ARENA_NEW_LEAD",
135
- /** "events/rsvp" */
136
- EVENTS_RSVP = "EVENTS_RSVP",
137
- /** "invoice/pay" */
138
- INVOICE_PAY = "INVOICE_PAY",
139
- /** "invoice/overdue" */
140
- INVOICE_OVERDUE = "INVOICE_OVERDUE",
141
- /** "price-quote/accept" */
142
- PRICE_QUOTE_ACCEPT = "PRICE_QUOTE_ACCEPT",
143
- /** "price-quote/expire" */
144
- PRICE_QUOTE_EXPIRE = "PRICE_QUOTE_EXPIRE",
145
- /** "restaurants/order" */
146
- RESTAURANTS_ORDER = "RESTAURANTS_ORDER",
147
- /** "restaurants/reservation" */
148
- RESTAURANTS_RESERVATION = "RESTAURANTS_RESERVATION",
149
- /** "shoutout/open" */
150
- SHOUTOUT_OPEN = "SHOUTOUT_OPEN",
151
- /** "shoutout/click" */
152
- SHOUTOUT_CLICK = "SHOUTOUT_CLICK",
153
- CONTACT_MERGED = "CONTACT_MERGED",
154
- /** "contact/subscribe" */
155
- NEWSLETTER_SUBSCRIPTION_SUBSCRIBE = "NEWSLETTER_SUBSCRIPTION_SUBSCRIBE",
156
- /** "contact/subscription-pending" */
157
- NEWSLETTER_SUBSCRIPTION_PENDING = "NEWSLETTER_SUBSCRIPTION_PENDING",
158
- /** "contact/subscription-not-set" */
159
- NEWSLETTER_SUBSCRIPTION_NOT_SET = "NEWSLETTER_SUBSCRIPTION_NOT_SET",
160
- /** "contact/phone-subscription-subscribe" */
161
- PHONE_SUBSCRIPTION_SUBSCRIBE = "PHONE_SUBSCRIPTION_SUBSCRIBE",
162
- /** "contact/phone-subscription-pending" */
163
- PHONE_SUBSCRIPTION_PENDING = "PHONE_SUBSCRIPTION_PENDING",
164
- /** "contact/phone-subscription-not-set" */
165
- PHONE_SUBSCRIPTION_NOT_SET = "PHONE_SUBSCRIPTION_NOT_SET",
166
- /** "contact/phone-subscription-unsubscribe" */
167
- PHONE_SUBSCRIPTION_UNSUBSCRIBE = "PHONE_SUBSCRIPTION_UNSUBSCRIBE"
168
- }
169
- export interface ActivityIcon {
170
- /** Icon name */
171
- name?: string | null;
172
- /** Icon url */
173
- url?: string | null;
174
- }
175
- export interface PrimaryContactInfo {
176
- /**
177
- * Primary email address.
178
- *
179
- * This property reflects the email address in `info.emails`
180
- * where `primary` is `true`.
181
- * @readonly
182
- */
183
- email?: string | null;
184
- /**
185
- * Primary phone number.
186
- *
187
- * This property reflects the phone number in `info.phones`
188
- * where `primary` is `true`.
189
- * @readonly
190
- */
191
- phone?: string | null;
192
- }
193
- export interface Image {
194
- /**
195
- * WixMedia image ID.
196
- * This property is written by Wix when an image is uploaded to the Wix Media Manager.
197
- */
198
- id?: string;
199
- /** Image source: Either a Media Manager URL or external URL. */
200
- url?: string;
201
- /** Height of the original image. */
202
- height?: number;
203
- /** Width of the original image. */
204
- width?: number;
205
- /** Image alt text. Optional. */
206
- altText?: string | null;
207
- /**
208
- * Image URL expiration date (when relevant). Optional
209
- * @readonly
210
- */
211
- urlExpirationDate?: Date;
212
- }
213
- export interface ContactInfo {
214
- /** Contact's first and last name. */
215
- name?: ContactName;
216
- /** Contact's email addresses. */
217
- emails?: ContactEmailsWrapper;
218
- /** Contact's phone numbers. */
219
- phones?: ContactPhonesWrapper;
220
- /** Contact's street addresses. */
221
- addresses?: ContactAddressesWrapper;
222
- /** Contact's company name. */
223
- company?: string | null;
224
- /**
225
- * Contact's job title.
226
- * Corresponds to the **Position** field in the Dashboard.
227
- */
228
- jobTitle?: string | null;
229
- /** Birth date in `YYYY-MM-DD` format. For example, `2020-03-15`. */
230
- birthdate?: string | null;
231
- /**
232
- * Locale in
233
- * [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
234
- * Typically, this is a lowercase 2-letter language code,
235
- * followed by a hyphen, followed by an uppercase 2-letter country code.
236
- * For example, `en-US` for U.S. English, and `de-DE` for Germany German.
237
- */
238
- locale?: string | null;
239
- /**
240
- * List of contact's labels.
241
- * Labels are used to organize contacts.
242
- * When setting the `labelKeys` property,
243
- * only labels that already exist in the site's Contacts List can be used.
244
- * Labels can be added and removed using
245
- * [Label Contact](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/label-contact) and
246
- * [Unlabel Contact](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/unlabel-contact),
247
- * respectively.
248
- *
249
- * To view or manage site labels, use the
250
- * [Labels API](https://dev.wix.com/api/rest/contacts/labels).
251
- */
252
- labelKeys?: LabelsWrapper;
253
- /**
254
- * Additional custom fields.
255
- * This includes fields managed by Wix, by 3rd-party apps, and by the site.
256
- *
257
- * Empty fields are not returned.
258
- */
259
- extendedFields?: ExtendedFieldsWrapper;
260
- /** Contact's profile picture. */
261
- picture?: ContactPicture;
262
- }
263
- export interface ContactName {
264
- /** Contact's first name. */
265
- first?: string | null;
266
- /** Contact's last name. */
267
- last?: string | null;
268
- }
269
- export interface ContactEmailsWrapper {
270
- /** List of up to 50 email addresses. */
271
- items?: ContactEmail[];
272
- }
273
- export interface ContactEmail {
274
- /**
275
- * Email ID.
276
- * @readonly
277
- */
278
- id?: string | null;
279
- /**
280
- * Email type.
281
- *
282
- * `UNTAGGED` is shown as "Other" in the Contact List.
283
- */
284
- tag?: EmailTag;
285
- /** Email address. */
286
- email?: string;
287
- /**
288
- * Indicates whether this is the contact's primary email address.
289
- * When changing `primary` to `true` for an email,
290
- * the contact's other emails become `false`.
291
- * It also affects the subscription status to marketing emails that are decided based on the primary email.
292
- */
293
- primary?: boolean | null;
294
- }
295
- export declare enum EmailTag {
296
- UNTAGGED = "UNTAGGED",
297
- MAIN = "MAIN",
298
- HOME = "HOME",
299
- WORK = "WORK"
300
- }
301
- export interface ContactPhonesWrapper {
302
- /** List of up to 50 phone numbers. */
303
- items?: ContactPhone[];
304
- }
305
- export interface ContactPhone {
306
- /**
307
- * Phone ID.
308
- * @readonly
309
- */
310
- id?: string | null;
311
- /**
312
- * Phone type.
313
- *
314
- * `UNTAGGED` is shown as "Other" in the Contact List.
315
- */
316
- tag?: PhoneTag;
317
- /** [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */
318
- countryCode?: string | null;
319
- /** Phone number. */
320
- phone?: string;
321
- /**
322
- * [ITU E.164-formatted](https://www.itu.int/rec/T-REC-E.164/)
323
- * phone number.
324
- * Automatically generated using `phone` and `countryCode`, pending both values are valid.
325
- * @readonly
326
- */
327
- e164Phone?: string | null;
328
- /**
329
- * Whether this is the contact's primary phone number.
330
- * When changing `primary` to `true` for a phone,
331
- * the contact's `primary` field for other phones becomes `false`.
332
- * It also affects the subscription status to SMS messages that are decided based on the primary phone.
333
- */
334
- primary?: boolean | null;
335
- }
336
- export declare enum PhoneTag {
337
- UNTAGGED = "UNTAGGED",
338
- MAIN = "MAIN",
339
- HOME = "HOME",
340
- MOBILE = "MOBILE",
341
- WORK = "WORK",
342
- FAX = "FAX"
343
- }
344
- export interface ContactAddressesWrapper {
345
- /** List of up to 50 addresses. */
346
- items?: ContactAddress[];
347
- }
348
- export interface ContactAddress {
349
- /**
350
- * Street address ID.
351
- * @readonly
352
- */
353
- id?: string | null;
354
- /**
355
- * Address type.
356
- * `UNTAGGED` is shown as "Other" in the Contact List.
357
- */
358
- tag?: AddressTag;
359
- /** Street address. */
360
- address?: Address;
361
- }
362
- export declare enum AddressTag {
363
- UNTAGGED = "UNTAGGED",
364
- HOME = "HOME",
365
- WORK = "WORK",
366
- BILLING = "BILLING",
367
- SHIPPING = "SHIPPING"
368
- }
369
- /** Physical address */
370
- export interface Address extends AddressStreetOneOf {
371
- /** Street address object, with number and name in separate fields. */
372
- streetAddress?: StreetAddress;
373
- /** Main address line, usually street and number, as free text. */
374
- addressLine?: string | null;
375
- /**
376
- * 2-letter country code in an
377
- * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
378
- */
379
- country?: string | null;
380
- /**
381
- * Code for a subdivision (such as state, prefecture, or province) in an
382
- * [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
383
- */
384
- subdivision?: string | null;
385
- /** City name. */
386
- city?: string | null;
387
- /** Postal or zip code. */
388
- postalCode?: string | null;
389
- /**
390
- * Free text providing more detailed address information,
391
- * such as apartment, suite, or floor.
392
- */
393
- addressLine2?: string | null;
394
- }
395
- /** @oneof */
396
- export interface AddressStreetOneOf {
397
- /** Street address object, with number and name in separate fields. */
398
- streetAddress?: StreetAddress;
399
- /** Main address line, usually street and number, as free text. */
400
- addressLine?: string | null;
401
- }
402
- export interface StreetAddress {
403
- /** Street number. */
404
- number?: string;
405
- /** Street name. */
406
- name?: string;
407
- }
408
- export interface AddressLocation {
409
- /** Address's latitude. */
410
- latitude?: number | null;
411
- /** Address's longitude. */
412
- longitude?: number | null;
413
- }
414
- export interface Subdivision {
415
- /** subdivision short code */
416
- code?: string;
417
- /** Full subdivision name. */
418
- name?: string;
419
- }
420
- export declare enum SubdivisionType {
421
- UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
422
- /** State */
423
- ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
424
- /** County */
425
- ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
426
- /** City/town */
427
- ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
428
- /** Neighborhood/quarter */
429
- ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
430
- /** Street/block */
431
- ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
432
- /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
433
- COUNTRY = "COUNTRY"
434
- }
435
- export interface AssigneesWrapper {
436
- /** List of site contributor user IDs. */
437
- items?: string[];
438
- }
439
- export interface LabelsWrapper {
440
- /**
441
- * List of contact label keys.
442
- * [Contact labels](https://support.wix.com/en/article/adding-labels-to-contacts-in-your-contact-list)
443
- * help categorize contacts.
444
- *
445
- * Label keys must exist to be added to the contact.
446
- * Contact labels can be created or retrieved with
447
- * [Find or Create Label](https://dev.wix.com/api/rest/contacts/labels/find-or-create-label)
448
- * or
449
- * [List Labels](https://dev.wix.com/api/rest/contacts/labels/list-labels)
450
- */
451
- items?: string[];
452
- }
453
- export interface ExtendedFieldsWrapper {
454
- /**
455
- * Contact's extended fields,
456
- * where each key is the field key,
457
- * and each value is the field's value for the contact.
458
- *
459
- * To view and manage extended fields, use the
460
- * [Extended Fields API](https://dev.wix.com/api/rest/contacts/extended-fields).
461
- */
462
- items?: Record<string, any>;
463
- }
464
- export interface LocationsWrapper {
465
- /** List of location ids. */
466
- items?: string[];
467
- }
468
- /** TEST contact picture description */
469
- export interface ContactPicture {
470
- /**
471
- * Image.
472
- * This can contain an image URL or a Wix Media image ID.
473
- */
474
- image?: Image;
475
- }
476
- export declare enum ImageProvider {
477
- UNKNOWN = "UNKNOWN",
478
- /** Image stored outside Wix */
479
- EXTERNAL = "EXTERNAL",
480
- /** Stored in wix media platform, Must be uploaded by using `GeneratePictureUploadUrl` */
481
- WIX_MEDIA = "WIX_MEDIA"
482
- }
483
- export interface SegmentsWrapper {
484
- /** List of Contact segment IDs */
485
- items?: string[];
486
- }
487
- export interface PrimaryEmail {
488
- /**
489
- * Primary email address.
490
- *
491
- * This property reflects the email address in `info.emails`
492
- * where `primary` is `true`.
493
- * @readonly
494
- */
495
- email?: string | null;
496
- /**
497
- * Indicates the recipient's opt-in or opt-out status for marketing emails.
498
- *
499
- * - `NOT_SET`: No status specified. Default.
500
- * - `PENDING`: Subscription confirmation was requested,
501
- * but recipient hasn't confirmed yet.
502
- * - `SUBSCRIBED`: Recipient has opted in to marketing emails.
503
- * - `UNSUBSCRIBED`: Recipient has opted out of marketing emails.
504
- * @readonly
505
- */
506
- subscriptionStatus?: SubscriptionStatus;
507
- /**
508
- * Indicates last reported status of sent emails.
509
- *
510
- * - `NOT_SET`: No status reported. Default.
511
- * - `VALID`: Emails are being successfully delivered.
512
- * - `BOUNCED`: The last email to the recipient bounced or was rejected.
513
- * - `SPAM_COMPLAINT`: Recipient registered a spam complaint
514
- * with their email provider.
515
- * - `INACTIVE`: Multiple emails have been delivered without any kind of engagement from the recipient.
516
- * @readonly
517
- */
518
- deliverabilityStatus?: EmailDeliverabilityStatus;
519
- }
520
- export declare enum SubscriptionStatus {
521
- NO_SUBSCRIPTION_STATUS = "NO_SUBSCRIPTION_STATUS",
522
- NOT_SET = "NOT_SET",
523
- PENDING = "PENDING",
524
- SUBSCRIBED = "SUBSCRIBED",
525
- UNSUBSCRIBED = "UNSUBSCRIBED"
526
- }
527
- export declare enum EmailDeliverabilityStatus {
528
- UNKNOWN_EMAIL_DELIVERABILITY_STATUS = "UNKNOWN_EMAIL_DELIVERABILITY_STATUS",
529
- NOT_SET = "NOT_SET",
530
- VALID = "VALID",
531
- BOUNCED = "BOUNCED",
532
- SPAM_COMPLAINT = "SPAM_COMPLAINT",
533
- INACTIVE = "INACTIVE"
534
- }
535
- export interface PrimaryPhone {
536
- /** [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the primary phone. */
537
- countryCode?: string | null;
538
- /**
539
- * [ITU E.164-formatted](https://www.itu.int/rec/T-REC-E.164/)
540
- * phone number.
541
- * Automatically generated using `phone` and `countryCode`,
542
- * as long as both of those values are valid.
543
- * @readonly
544
- */
545
- e164Phone?: string | null;
546
- /**
547
- * Formatted phone. Automatically generated using phone and countryCode.
548
- * @readonly
549
- */
550
- formattedPhone?: string | null;
551
- /**
552
- * Indicates the recipient's opt-in or opt-out status for SMS messages.
553
- *
554
- * - `NO_SUBSCRIPTION_STATUS`: No status exists. This is the status when the phone is not a valid E164 phone.
555
- * - `NOT_SET`: No status specified. Default when the phone is a valid E164 phone.
556
- * - `PENDING`: Subscription confirmation was requested,
557
- * but recipient hasn't confirmed yet.
558
- * - `SUBSCRIBED`: Recipient has opted in to SMS messages.
559
- * - `UNSUBSCRIBED`: Recipient has opted out of SMS messages.
560
- * @readonly
561
- */
562
- subscriptionStatus?: SubscriptionStatus;
563
- /**
564
- * Primary phone number.
565
- *
566
- * This property reflects the phone number in `info.phones`
567
- * where `primary` is `true`.
568
- * @readonly
569
- */
570
- phone?: string | null;
571
- }
572
- export declare enum PhoneDeliverabilityStatus {
573
- NO_PHONE_DELIVERABILITY_STATUS = "NO_PHONE_DELIVERABILITY_STATUS",
574
- NOT_SET = "NOT_SET"
575
- }
576
- export interface MemberInfo {
577
- /** Member ID. For more details see [here](https://github.com/wix-private/identity/blob/master/iam/memberid/proto/wix/iam/member/v1/member_id_service.proto) */
578
- memberId?: string | null;
579
- /** Signup date */
580
- signupDate?: Date;
581
- /** Login email */
582
- email?: string | null;
583
- /** Indicate whether the email is verified */
584
- emailVerified?: boolean | null;
585
- /** Indicates that the member is required to verify their email */
586
- emailVerificationRequired?: boolean | null;
587
- /** Member status */
588
- status?: MemberStatus;
589
- /** Identity info. For more details see [here](https://github.com/wix-private/identity/blob/master/iam/identity/identity-service/proto/wix/iam/identity/v1/identity.proto) */
590
- identityInfo?: IdentityInfo;
591
- /** Profile info. For more details see [here](https://github.com/wix-private/app-market/blob/master/members/members-profiles-api/proto/com/wixpress/members/profiles/profile.proto) */
592
- profileInfo?: ProfileInfo;
593
- /** User info. For more details see [here](https://dev.wix.com/docs/rest/internal-only/identity/user-member-connection-v1/user-member-connection-object) */
594
- userInfo?: UserInfo;
595
- /** Session info. For more details see [here](https://github.com/wix-private/identity/blob/master/iam/session/session-management/proto/wix/iam/session/v1/session.proto) */
596
- sessionInfo?: SessionInfo;
597
- /** Group info. For more details see [here](https://github.com/wix-private/crm/blob/master/members-groups/api/src/main/proto/com/wixpress/members/groups/Groups.proto) */
598
- groupInfo?: GroupInfo;
599
- }
600
- export declare enum MemberStatus {
601
- UNKNOWN_MEMBER_STATUS = "UNKNOWN_MEMBER_STATUS",
602
- /** Pending admin approval */
603
- PENDING = "PENDING",
604
- ACTIVE = "ACTIVE",
605
- DELETED = "DELETED",
606
- BLOCKED = "BLOCKED",
607
- OFFLINE = "OFFLINE"
608
- }
609
- export interface IdentityInfo {
610
- /** Signup date */
611
- signupDate?: Date;
612
- /** Login email */
613
- email?: string | null;
614
- /** Indicate whether the email is verified */
615
- emailVerified?: boolean | null;
616
- /** Indicates that the member is required to verify their email */
617
- emailVerificationRequired?: boolean | null;
618
- /** Identity status */
619
- status?: IdentityStatus;
620
- }
621
- export declare enum IdentityStatus {
622
- UNKNOWN_IDENTITY_STATUS = "UNKNOWN_IDENTITY_STATUS",
623
- PENDING_ADMIN_APPROVAL = "PENDING_ADMIN_APPROVAL",
624
- ACTIVE = "ACTIVE",
625
- DELETED = "DELETED",
626
- BLOCKED = "BLOCKED",
627
- OFFLINE = "OFFLINE"
628
- }
629
- export interface ProfileInfo {
630
- /** Nickname */
631
- nickname?: string | null;
632
- /** Privacy status */
633
- privacyStatus?: PrivacyStatus;
634
- /** Indicate whether the member is reported */
635
- reported?: boolean | null;
636
- /** Indicate whether the member is muted */
637
- muted?: boolean | null;
638
- /** Profile photo */
639
- photo?: Image;
640
- }
641
- export declare enum PrivacyStatus {
642
- UNKNOWN_PRIVACY_STATUS = "UNKNOWN_PRIVACY_STATUS",
643
- PRIVATE = "PRIVATE",
644
- PUBLIC = "PUBLIC"
645
- }
646
- export interface UserInfo {
647
- /** User ID */
648
- userId?: string;
649
- /** User role */
650
- role?: Role;
651
- }
652
- export declare enum Role {
653
- UNSPECIFIED_ROLE = "UNSPECIFIED_ROLE",
654
- OWNER = "OWNER",
655
- CONTRIBUTOR = "CONTRIBUTOR"
656
- }
657
- export interface SessionInfo {
658
- /** Last web login */
659
- lastWebLogin?: Date;
660
- /** Last mobile login */
661
- lastMobileLogin?: Date;
662
- /** List of mobile apps that the member has ever logged in to */
663
- mobileAppNames?: string[];
664
- }
665
- export interface GroupInfo {
666
- /** Group IDs */
667
- groupIds?: string[];
668
- }
669
- export interface ContactSubmitted {
670
- /** Pass through data, submitted with the contact */
671
- passThroughData?: string | null;
672
- /** Submitted activity */
673
- activity?: ContactActivity;
674
- /** Submitted Contact (after processing) */
675
- contact?: Contact;
676
- }
677
- export interface ContactChanged {
678
- /** The Contact before the changes */
679
- previousContact?: Contact;
680
- /** The Contact after the changes */
681
- currentContact?: Contact;
682
- }
683
- export interface ContactEmailSubscriptionUpdated {
684
- /** The updated contact ID. */
685
- contactId?: string;
686
- /** The revision of the contact. */
687
- revision?: number;
688
- /** The primary email of the contact with the updated subscription and deliverability status. */
689
- primaryEmail?: PrimaryEmail;
690
- /** Date and time the contact was updated with the email subscription or deliverability status. */
691
- updatedDate?: Date;
692
- }
693
- export interface ContactPhoneSubscriptionUpdated {
694
- /** The updated contact ID. */
695
- contactId?: string;
696
- /** The revision of the contact. */
697
- revision?: number;
698
- /** The primary phone of the contact with the updated subscription status. */
699
- primaryPhone?: PrimaryPhone;
700
- /** Date and time the contact was updated with the SMS subscription status. */
701
- updatedDate?: Date;
702
- }
703
- /**
704
- * This message is an internal message used by this app and it is used to trigger
705
- * the update of the subscription status of the contact asynchronously.
706
- * It is published after a contact is created/updated/merged.
707
- */
708
- export interface ContactPrimaryInfoUpdated {
709
- /** The updated contact ID. */
710
- contactId?: string;
711
- /** Indication whether the primary email was updated. */
712
- primaryEmailUpdated?: boolean;
713
- /** Indication whether primary phone was updated. */
714
- primaryPhoneUpdated?: boolean;
715
- /** previous primary email subscription status */
716
- previousPrimaryEmailSubscriptionStatus?: PrimarySubscriptionStatus;
717
- /** previous primary phone subscription status */
718
- previousPrimaryPhoneSubscriptionStatus?: PrimarySubscriptionStatus;
719
- }
720
- export interface PrimarySubscriptionStatus {
721
- /** subscription status */
722
- subscriptionStatus?: SubscriptionStatus;
723
- }
724
- /**
725
- * This message is an internal message used by this app and it is used to trigger
726
- * the update of the contact's last activity is done asynchronously.
727
- */
728
- export interface LastActivityUpdate {
729
- /** The contact ID. */
730
- contactId?: string;
731
- /** Activity date. */
732
- activityDate?: Date;
733
- /** Activity translation key. */
734
- activityTranslationKey?: string;
735
- /** Activity icon. */
736
- icon?: string | null;
737
- }
738
- /** Contact creation options. */
739
- export interface CreateContactRequest {
740
- /** Contact info. */
741
- info: ContactInfo;
742
- /**
743
- * Controls whether the call will succeed
744
- * if the new contact information contains an email or a phone number already used by another contact.
745
- *
746
- * If set to `true`,
747
- * the call will succeed even if an email address or phone number is used by another contact.
748
- * If set to `false`,
749
- * the call will fail if the given email address is used by another contact or,
750
- * if the email address is not given and the given phone number is used by another contact.
751
- *
752
- * Default: `false`
753
- */
754
- allowDuplicates?: boolean;
755
- }
756
- /** Contact. */
757
- export interface CreateContactResponse {
758
- /** Contact. */
759
- contact?: Contact;
760
- }
761
- export interface DuplicateContactExists {
762
- duplicateContactId?: string | null;
763
- duplicateEmail?: string | null;
764
- duplicatePhone?: string | null;
765
- }
766
- export interface UpdateContactRequest {
767
- /** ID of the contact to update. */
768
- contactId: string;
769
- /**
770
- * Revision number.
771
- * When updating, include the existing `revision`
772
- * to prevent conflicting updates.
773
- */
774
- revision: number | null;
775
- /**
776
- * Controls whether the call will succeed
777
- * if the new contact information contains an email or a phone number already used by another contact.
778
- *
779
- * If set to `true`,
780
- * the call will succeed even if an email address or phone number is used by another contact.
781
- * If set to `false`,
782
- * the call will fail if the given email address is used by another contact or,
783
- * if the email address is not given and the given phone number is used by another contact.
784
- *
785
- * Default: `false`
786
- */
787
- allowDuplicates?: boolean;
788
- /** Contact info. */
789
- info: ContactInfo;
790
- }
791
- /** Updated contact. */
792
- export interface UpdateContactResponse {
793
- /** Updated contact. */
794
- contact?: Contact;
795
- }
796
- export interface MergeContactsRequest {
797
- /** Target contact ID. */
798
- targetContactId: string;
799
- /**
800
- * Target contact revision number, which increments by 1 each time the contact is updated.
801
- * To prevent conflicting changes,
802
- * the target contact's current revision must be passed.
803
- */
804
- targetContactRevision: number | null;
805
- /**
806
- * IDs of up to 5 contacts to merge into the target contact.
807
- * If merging more than one source contact,
808
- * the first source is given precedence, then the second, and so on.
809
- */
810
- sourceContactIds?: string[];
811
- }
812
- export interface MergeContactsResponse {
813
- /** Updated target contact. */
814
- contact?: Contact;
815
- }
816
- export interface ContactMerged {
817
- /** ID of the contact the source contacts were merged into. */
818
- targetContactId?: string;
819
- /** IDs of contacts that were merged into the target contact. */
820
- sourceContactIds?: string[];
821
- /** Updated target contact. */
822
- targetContact?: Contact;
823
- }
824
- export interface PreviewMergeContactsRequest {
825
- /** Target contact ID. */
826
- targetContactId?: string;
827
- /**
828
- * IDs of up to 5 contacts to merge into the target contact.
829
- * If merging more than one source contact,
830
- * the first source is given precedence, then the second, and so on.
831
- */
832
- sourceContactIds?: string[];
833
- }
834
- export interface PreviewMergeContactsResponse {
835
- /** Preview of the updated target contact. */
836
- contact?: Contact;
837
- }
838
- export interface DeleteContactRequest {
839
- /** ID of the contact to delete. */
840
- contactId: string;
841
- }
842
- export interface DeleteContactResponse {
843
- }
844
- export interface LabelContactRequest {
845
- /** ID of the contact to add labels to. */
846
- contactId: string;
847
- /**
848
- * List of label keys to add to the contact.
849
- *
850
- * Label keys must exist to be added to the contact.
851
- * Contact labels can be created or retrieved with
852
- * [Find or Create Label](https://dev.wix.com/api/rest/contacts/labels/find-or-create-label)
853
- * or
854
- * [List Labels](https://dev.wix.com/api/rest/contacts/labels/list-labels).
855
- */
856
- labelKeys: string[];
857
- }
858
- /** Updated contact. */
859
- export interface LabelContactResponse {
860
- /** Updated contact. */
861
- contact?: Contact;
862
- }
863
- export interface UnlabelContactRequest {
864
- /** ID of the contact to remove labels from. */
865
- contactId: string;
866
- /** List of label keys to remove from the contact. */
867
- labelKeys: string[];
868
- }
869
- /** Updated contact. */
870
- export interface UnlabelContactResponse {
871
- /** Updated contact. */
872
- contact?: Contact;
873
- }
874
- export interface LabelAndUnlabelContactRequest {
875
- /** Contact ID. */
876
- contactId?: string;
877
- /**
878
- * List of label keys to add to the contact.
879
- *
880
- * Label keys must exist to be added to the contact.
881
- * Contact labels can be created or retrieved with
882
- * [Find or Create Label](https://dev.wix.com/api/rest/contacts/labels/find-or-create-label)
883
- * or
884
- * [List Labels](https://dev.wix.com/api/rest/contacts/labels/list-labels).
885
- */
886
- labelKeysToAdd?: string[];
887
- /** List of label keys to remove from the contact. */
888
- labelKeysToRemove?: string[];
889
- }
890
- export interface LabelAndUnlabelContactResponse {
891
- /** Updated contact. */
892
- contact?: Contact;
893
- }
894
- export interface ListContactsRequest {
895
- /** [Sort order](https://dev.wix.com/api/rest/contacts/contacts/sort-and-filter). */
896
- sort?: Sorting;
897
- /** [Pagination](https://dev.wix.com/api/rest/getting-started/pagination), defaults to offset = 0 and limit = 50 (max limit 1,000). */
898
- paging?: Paging;
899
- /**
900
- * List of projected fields to return.
901
- * If both `fields` and `fieldsets` are sent in the request,
902
- * the union of both lists is returned.
903
- * `id` and `revision` are always returned.
904
- *
905
- * Supported properties:
906
- * `source`, `createdDate`, `updatedDate`, `lastActivity`, `primaryInfo`,
907
- * `info.name`, `info.emails`, `info.phones`, `info.addresses`, `info.company`,
908
- * `info.jobTitle`, `info.picture`, `info.birthdate`, `info.locale`,
909
- * `info.labelKeys`, `info.locations`, `info.extendedFields`
910
- */
911
- fields?: string[];
912
- fieldsets?: ContactFieldSet[];
913
- }
914
- export interface Sorting {
915
- /**
916
- * Field to sort by.
917
- *
918
- * Supported properties:
919
- * `createdDate`, `lastActivity.activityDate`, `primaryInfo.email`, `info.name.first`, `info.name.last`, `info.company`,
920
- * `info.jobTitle`, `info.birthdate`
921
- */
922
- fieldName?: string;
923
- /**
924
- * Sort order.
925
- * Use `ASC` for ascending order or `DESC` for descending order.
926
- *
927
- * Defaults to `ASC`.
928
- */
929
- order?: SortOrder;
930
- }
931
- export declare enum SortOrder {
932
- ASC = "ASC",
933
- DESC = "DESC"
934
- }
935
- export interface Paging {
936
- /**
937
- * Number of items to return. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination) for more information.
938
- *
939
- * Defaults to `50`. <br>
940
- * Maximum: `1000`.
941
- */
942
- limit?: number | null;
943
- /** Number of items to skip in the current sort order. */
944
- offset?: number | null;
945
- }
946
- export declare enum ContactFieldSet {
947
- /** name, primaryEmail, primaryPhone */
948
- BASIC = "BASIC",
949
- /** name, phones, emails, addresses */
950
- COMMUNICATION_DETAILS = "COMMUNICATION_DETAILS",
951
- /** name, primaryInfo(email, phone), extendedFields */
952
- EXTENDED = "EXTENDED",
953
- /** Full contact object */
954
- FULL = "FULL"
955
- }
956
- /** List of contacts. */
957
- export interface ListContactsResponse {
958
- /** List of contacts. */
959
- contacts?: Contact[];
960
- /** Details on the paged set of results returned. */
961
- pagingMetadata?: PagingMetadata;
962
- }
963
- export interface PagingMetadata {
964
- /** The number of items returned in this response */
965
- count?: number | null;
966
- /** The offset which was requested */
967
- offset?: number | null;
968
- /** The total number of items that match the query */
969
- total?: number | null;
970
- /** A flag that indicates the server failed to calculate 'total' field */
971
- tooManyToCount?: boolean | null;
972
- }
973
- export interface QueryContactsRequest {
974
- /**
975
- * Plain text search for an exact match.
976
- *
977
- * Supported properties:
978
- * `info.name.first`, `info.name.last`, `info.emails.email`, `info.phones.phone`
979
- *
980
- * Max: 100 characters
981
- */
982
- search?: string | null;
983
- /** Query options. */
984
- query?: Query;
985
- }
986
- export interface Query {
987
- /**
988
- * Filter object.
989
- * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
990
- * for more information.
991
- *
992
- * For a detailed list of supported filters, see
993
- * [Supported Filters](https://dev.wix.com/api/rest/contacts/contacts/supported-filters).
994
- */
995
- filter?: Record<string, any> | null;
996
- /**
997
- * Sorting options.
998
- * See [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination)
999
- * for more information.
1000
- *
1001
- * Max: 1 sort object
1002
- */
1003
- sort?: Sorting[];
1004
- /** Pagination options. */
1005
- paging?: Paging;
1006
- /**
1007
- * List of projected fields to return.
1008
- * If both `fields` and `fieldsets` are sent in the request,
1009
- * the union of both lists is returned.
1010
- * `id` and `revision` are always returned.
1011
- *
1012
- * Supported properties:
1013
- * `source`, `createdDate`, `updatedDate`, `lastActivity`, `primaryInfo`,
1014
- * `info.name`, `info.emails`, `info.phones`, `info.addresses`, `info.company`,
1015
- * `info.jobTitle`, `info.picture`, `info.birthdate`, `info.locale`,
1016
- * `info.labelKeys`, `info.locations`, `info.extendedFields`
1017
- */
1018
- fields?: string[];
1019
- /**
1020
- * Predefined sets of fields to return.
1021
- * If both `fields` and `fieldsets` are sent in the request,
1022
- * the union of both lists is returned.
1023
- *
1024
- * - `BASIC`: Returns `id`, `revision`, `primaryInfo`, `info.name`.
1025
- * - `COMMUNICATION_DETAILS`: Returns `id`, `revision`, `primaryInfo`, `info.name`, `info.emails`, `info.phones`, `info.addresses`.
1026
- * - `EXTENDED`: Returns `id`, `revision`, `primaryInfo`, `info.name`, `info.extendedFields`.
1027
- * - `FULL`: Returns all fields.
1028
- *
1029
- * Default: If `fields` is omitted from the request, `FULL`.
1030
- */
1031
- fieldsets?: ContactFieldSet[];
1032
- }
1033
- /** List of contacts. */
1034
- export interface QueryContactsResponse {
1035
- /** List of contacts. */
1036
- contacts?: Contact[];
1037
- /** Details on the paged set of results returned. */
1038
- pagingMetadata?: PagingMetadata;
1039
- }
1040
- export interface ListFacetsRequest {
1041
- /** Allow paginating, default: offset = 0 and limit = 1000 */
1042
- paging?: Paging;
1043
- /** Language for localization */
1044
- language?: string | null;
1045
- }
1046
- export interface ListFacetsResponse {
1047
- /** List of facets. */
1048
- facets?: ContactsFacet[];
1049
- /** Details on the paged set of results returned. */
1050
- pagingMetadata?: PagingMetadata;
1051
- }
1052
- export interface ContactsFacet {
1053
- /** Type of facet. */
1054
- facetType?: ContactsFacetType;
1055
- /**
1056
- * Scope for facet keys.
1057
- * When a facet key exists in a namespace,
1058
- * each key is unique within that namespace.
1059
- *
1060
- * Currently, facets not created by Wix are in the `custom` namespace.
1061
- */
1062
- namespace?: string | null;
1063
- /** Human-readable display name. */
1064
- namespaceDisplayName?: string | null;
1065
- /** Facet key, automatically generated. */
1066
- facetKey?: string | null;
1067
- /** Human-readable name. Shown in the Wix UI. */
1068
- facetDisplayName?: string | null;
1069
- /** Number of contacts the facet is applied to. */
1070
- count?: number | null;
1071
- /** Filter used for query contacts of this facet */
1072
- queryFilter?: Record<string, any> | null;
1073
- }
1074
- export declare enum ContactsFacetType {
1075
- UNKNOWN = "UNKNOWN",
1076
- ALL_CONTACTS = "ALL_CONTACTS",
1077
- NOT_LABELED = "NOT_LABELED",
1078
- LABEL = "LABEL",
1079
- SUBSCRIPTION_STATUS = "SUBSCRIPTION_STATUS",
1080
- MEMBERSHIP_STATUS = "MEMBERSHIP_STATUS"
1081
- }
1082
- export interface QueryFacetsRequest {
1083
- /** Allow paginating, default: offset = 0 and limit = 1000 */
1084
- paging?: Paging;
1085
- /** Language for localization */
1086
- language?: string | null;
1087
- /**
1088
- * Only allowed fields:
1089
- * #info.extendedFields.emailSubscriptions.effectiveEmail ($exists)
1090
- * #info.extendedFields.emailSubscriptions.subscriptionStatus ($eq, $ne, $in, $nin)
1091
- * #info.extendedFields.emailSubscriptions.deliverabilityStatus ($eq, $ne, $in, $nin)
1092
- */
1093
- filter?: Record<string, any> | null;
1094
- }
1095
- export interface QueryFacetsResponse {
1096
- /** List of facets. */
1097
- facets?: ContactsFacet[];
1098
- /** Details on the paged set of results returned. */
1099
- pagingMetadata?: PagingMetadata;
1100
- }
1101
- export interface BulkDeleteContactsRequest {
1102
- /**
1103
- * Filter object.
1104
- *
1105
- * Possible filters:
1106
- * `$eq`, `$exists`, `$gt`, `$gte`, `$hasAll`, `$hasSome`, `$in`, `$lt`, `$lte`, `$ne`, `$startsWith`.
1107
- *
1108
- * For a detailed list of supported filters, see
1109
- * filtering and sorting for
1110
- * [contact properties](https://dev.wix.com/api/rest/contacts/contacts/sorting,-filtering,-and-searching#contact-properties-filtering-sorting-and-searching),
1111
- * [extended fields](https://dev.wix.com/api/rest/contacts/contacts/sorting,-filtering,-and-searching#extended-fields-filtering-sorting-and-searching),
1112
- * and [custom fields](https://dev.wix.com/api/rest/contacts/contacts/sorting,-filtering,-and-searching#custom-fields-filtering-sorting-and-searching).
1113
- *
1114
- * Example:
1115
- * `{ "filter": { "info.name.last": "Smith" } }`
1116
- */
1117
- filter?: Record<string, any> | null;
1118
- /**
1119
- * Plain text search for an exact match, up to 100 characters.
1120
- *
1121
- * Searchable fields:
1122
- *
1123
- * - `info.name.first`
1124
- * - `info.name.last`
1125
- * - `info.emails.email`
1126
- * - `info.phones.phone`
1127
- */
1128
- search?: string | null;
1129
- }
1130
- export interface BulkDeleteContactsResponse {
1131
- /**
1132
- * Bulk job ID.
1133
- * The job's status can be retrieved with
1134
- * [Get Bulk Job](https://dev.wix.com/api/rest/contacts/contacts/bulk-jobs/get-bulk-job) or
1135
- * [List Bulk Jobs](https://dev.wix.com/api/rest/contacts/contacts/bulk-jobs/list-bulk-jobs).
1136
- */
1137
- jobId?: string;
1138
- }
1139
- export interface BulkUpdateContactsRequest {
1140
- /**
1141
- * Filter object.
1142
- *
1143
- * Possible filters:
1144
- * `$eq`, `$exists`, `$gt`, `$gte`, `$hasAll`, `$hasSome`, `$in`, `$lt`, `$lte`, `$ne`, `$startsWith`.
1145
- *
1146
- * For a detailed list of supported filters, see
1147
- * filtering and sorting for
1148
- * [contact properties](https://dev.wix.com/api/rest/contacts/contacts/sorting,-filtering,-and-searching#contact-properties-filtering-sorting-and-searching),
1149
- * [extended fields](https://dev.wix.com/api/rest/contacts/contacts/sorting,-filtering,-and-searching#extended-fields-filtering-sorting-and-searching),
1150
- * and [custom fields](https://dev.wix.com/api/rest/contacts/contacts/sorting,-filtering,-and-searching#custom-fields-filtering-sorting-and-searching).
1151
- *
1152
- * Example:
1153
- * `{ "filter": { "info.name.last": "Smith" } }`
1154
- */
1155
- filter?: Record<string, any> | null;
1156
- /**
1157
- * Plain text search for an exact match, up to 100 characters.
1158
- *
1159
- * Searchable fields:
1160
- *
1161
- * - `info.name.first`
1162
- * - `info.name.last`
1163
- * - `info.emails.email`
1164
- * - `info.phones.phone`
1165
- */
1166
- search?: string | null;
1167
- /** Contact info. */
1168
- info?: ContactInfo;
1169
- }
1170
- export interface BulkUpdateContactsResponse {
1171
- /**
1172
- * Bulk job ID.
1173
- * The job's status can be retrieved with
1174
- * [Get Bulk Job](https://dev.wix.com/api/rest/contacts/contacts/bulk-jobs/get-bulk-job) or
1175
- * [List Bulk Jobs](https://dev.wix.com/api/rest/contacts/contacts/bulk-jobs/list-bulk-jobs).
1176
- */
1177
- jobId?: string;
1178
- }
1179
- export interface BulkLabelAndUnlabelContactsRequest {
1180
- /**
1181
- * Filter options.
1182
- * Labels will be removed from contacts that meet the `filter` and `search` criteria.
1183
- *
1184
- * See
1185
- * [Field Support for Filtering, Sorting, and Searching](https://dev.wix.com/api/rest/contacts/contacts/sort-and-filter#contacts_contacts_sort-and-filter_field-support-for-filtering-sorting-and-searching)
1186
- * for a list of supported filters and fields.
1187
- */
1188
- filter?: Record<string, any> | null;
1189
- /**
1190
- * Plain text search for an exact match, up to 100 characters.
1191
- * Labels will be removed from contacts that meet the `filter` and `search` criteria.
1192
- *
1193
- * See
1194
- * [Field Support for Filtering, Sorting, and Searching](https://dev.wix.com/api/rest/contacts/contacts/sort-and-filter#contacts_contacts_sort-and-filter_field-support-for-filtering-sorting-and-searching)
1195
- * for a list of searchable fields.
1196
- */
1197
- search?: string | null;
1198
- /**
1199
- * List of label keys to add to the contacts.
1200
- *
1201
- * Label keys must exist to be added to the contact.
1202
- * Contact labels can be created or retrieved with
1203
- * [Find or Create Label](https://dev.wix.com/api/rest/contacts/labels/find-or-create-label)
1204
- * or
1205
- * [List Labels](https://dev.wix.com/api/rest/contacts/labels/list-labels)
1206
- */
1207
- labelKeysToAdd?: string[];
1208
- /** List of label keys to remove from the contacts. */
1209
- labelKeysToRemove?: string[];
1210
- }
1211
- export interface BulkLabelAndUnlabelContactsResponse {
1212
- /**
1213
- * Bulk job ID.
1214
- * The job's status can be retrieved with
1215
- * [Get Bulk Job](https://dev.wix.com/api/rest/contacts/contacts/bulk-jobs/get-bulk-job) or
1216
- * [List Bulk Jobs](https://dev.wix.com/api/rest/contacts/contacts/bulk-jobs/list-bulk-jobs).
1217
- */
1218
- jobId?: string;
1219
- }
1220
- export interface BulkUpsertContactsRequest {
1221
- info?: ContactInfo[];
1222
- returnFullEntity?: boolean;
1223
- }
1224
- export interface BulkUpsertContactsResponse {
1225
- results?: Item[];
1226
- metadata?: BulkUpsertContactsResponseMetadata;
1227
- }
1228
- export declare enum Action {
1229
- UNKNOWN = "UNKNOWN",
1230
- UPDATED = "UPDATED",
1231
- CREATED = "CREATED"
1232
- }
1233
- export interface Error {
1234
- /** Error code. */
1235
- code?: string;
1236
- /** Error details. */
1237
- message?: string | null;
1238
- }
1239
- export interface Metadata {
1240
- id?: string | null;
1241
- originalIndex?: number;
1242
- action?: Action;
1243
- success?: boolean;
1244
- error?: Error;
1245
- }
1246
- export interface Item {
1247
- contact?: Contact;
1248
- metadata?: Metadata;
1249
- }
1250
- export interface BulkUpsertContactsResponseMetadata {
1251
- totalSuccess?: number;
1252
- totalFailure?: number;
1253
- totalCreated?: number;
1254
- totalUpdated?: number;
1255
- }
1256
- export interface UpsertContactRequest {
1257
- info?: ContactInfo;
1258
- }
1259
- export interface UpsertContactResponse {
1260
- /** Upserted contact. */
1261
- contact?: Contact;
1262
- action?: UpsertContactResponseAction;
1263
- }
1264
- export declare enum UpsertContactResponseAction {
1265
- UNKNOWN = "UNKNOWN",
1266
- UPDATED = "UPDATED",
1267
- CREATED = "CREATED"
1268
- }
1269
- export interface GeneratePictureUploadUrlRequest {
1270
- /** ID of the contact whose picture is being updated. */
1271
- contactId?: string;
1272
- /**
1273
- * Mime Type. Must be one of:
1274
- * `image/png`, `image/jpeg`.
1275
- * Defaults to `image/png`.
1276
- */
1277
- mimeType?: string | null;
1278
- }
1279
- export interface GeneratePictureUploadUrlResponse {
1280
- /** URL to upload the image */
1281
- uploadUrl?: string;
1282
- }
1283
- export interface GetContactRequest {
1284
- /** ID of the contact to retrieve. */
1285
- id: string;
1286
- /**
1287
- * List of projected fields to return.
1288
- * If both `fields` and `fieldsets` are sent in the request,
1289
- * the union of both lists is returned.
1290
- * `id` and `revision` are always returned.
1291
- *
1292
- * Supported properties:
1293
- * `source`, `createdDate`, `updatedDate`, `lastActivity`, `primaryInfo`,
1294
- * `info.name`, `info.emails`, `info.phones`, `info.addresses`, `info.company`,
1295
- * `info.jobTitle`, `info.picture`, `info.birthdate`, `info.locale`,
1296
- * `info.labelKeys`, `info.locations`, `info.extendedFields`
1297
- */
1298
- fields?: string[];
1299
- /**
1300
- * Predefined sets of fields to return.
1301
- * If both `fields` and `fieldsets` are sent in the request,
1302
- * the union of both lists is returned.
1303
- *
1304
- * - `BASIC`: Returns `id`, `revision`, `primaryInfo`, `info.name`.
1305
- * - `COMMUNICATION_DETAILS`: Returns `id`, `revision`, `primaryInfo`, `info.name`, `info.emails`, `info.phones`, `info.addresses`.
1306
- * - `EXTENDED`: Returns `id`, `revision`, `primaryInfo`, `info.name`, `info.extendedFields`.
1307
- * - `FULL`: Returns all fields.
1308
- *
1309
- * Default: If `fields` is omitted from the request, `FULL`.
1310
- */
1311
- fieldsets?: ContactFieldSet[];
1312
- }
1313
- /** The requested contact. */
1314
- export interface GetContactResponse {
1315
- /** The requested contact. */
1316
- contact?: Contact;
1317
- /**
1318
- * Contact response type.
1319
- *
1320
- * - `REGULAR`: The specified contact was returned.
1321
- * - `IMPLICIT`: Not used.
1322
- * - `MERGED`: The specified contact was previously merged with another contact, and the new contact was
1323
- */
1324
- responseType?: GetContactResponseType;
1325
- }
1326
- export declare enum GetContactResponseType {
1327
- /** Normal contact */
1328
- REGULAR = "REGULAR",
1329
- /** Contact that id was already allocated for it, but the contact not yet created. */
1330
- IMPLICIT = "IMPLICIT",
1331
- /** Contact was merged into another contact */
1332
- MERGED = "MERGED"
1333
- }
1334
- export interface SyncSubmitContactRequest {
1335
- contactInfo?: ContactInfo;
1336
- activity?: ContactActivity;
1337
- passThroughData?: string | null;
1338
- contactId?: string;
1339
- submitOperation?: SubmitOperation;
1340
- /** Need to resolve source in allocator, because of server sign */
1341
- sourceType?: ContactSourceType;
1342
- sourceId?: string | null;
1343
- hideFromContactList?: boolean;
1344
- }
1345
- export declare enum SubmitOperation {
1346
- UNKNOWN = "UNKNOWN",
1347
- CREATE = "CREATE",
1348
- UPDATE = "UPDATE"
1349
- }
1350
- export interface SyncSubmitContactResponse {
1351
- }
1352
- export interface CountContactsRequest {
1353
- }
1354
- export interface CountContactsResponse {
1355
- count?: number;
1356
- }
1357
- export interface SearchContactsRequest {
1358
- /** Search object. Encapsulates filter, sorting, paging and other details */
1359
- search?: Search;
1360
- }
1361
- export interface Search extends SearchPagingMethodOneOf {
1362
- /** Cursor pointing to page of results. 'cursorPaging.cursor' can not be used together with 'filter' or 'sort' */
1363
- cursorPaging?: CursorPaging;
1364
- /** 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) */
1365
- filter?: Record<string, any> | null;
1366
- /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
1367
- sort?: Sorting[];
1368
- /**
1369
- * List of projected fields to return.
1370
- *
1371
- * If used in the request,
1372
- * all the fields contained in `fields` and `fieldsets` are returned.
1373
- * If left blank, `fieldsets` is used to determine which fields to return.
1374
- *
1375
- * For a list of valid projected fields, see
1376
- * [Valid Contact Projection Fields](https://dev.wix.com/api/rest/contacts/contacts/fieldsets-and-projected-fields#contacts_contacts_fieldsets-and-projected-fields_valid-contact-projection-fields).
1377
- */
1378
- fields?: string[];
1379
- /**
1380
- * Predefined sets of fields to return.
1381
- *
1382
- * Defaults to `FULL`.
1383
- * Ignored if left empty when `fields` is used in the request.
1384
- *
1385
- * For more information,
1386
- * see [Contact Fieldsets](https://dev.wix.com/api/rest/contacts/contacts/fieldsets-and-projected-fields#contacts_contacts_fieldsets-and-projected-fields_contact-fieldsets).
1387
- */
1388
- fieldsets?: string[];
1389
- /** free text to match in searchable fields */
1390
- search?: SearchDetails;
1391
- }
1392
- /** @oneof */
1393
- export interface SearchPagingMethodOneOf {
1394
- /** Cursor pointing to page of results. 'cursorPaging.cursor' can not be used together with 'filter' or 'sort' */
1395
- cursorPaging?: CursorPaging;
1396
- }
1397
- export interface SearchDetails {
1398
- /** boolean search mode. Default is `OR` */
1399
- mode?: Mode;
1400
- /** search term or expression */
1401
- expression?: string | null;
1402
- /**
1403
- * fields to search in. if empty - server will search in own default fieldsDefault searchable fields:
1404
- *
1405
- * - `info.name.first`
1406
- * - `info.name.last`
1407
- * - `info.emails.email`
1408
- * - `info.phones.phone`
1409
- */
1410
- fields?: string[];
1411
- /** flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
1412
- fuzzy?: boolean;
1413
- }
1414
- export declare enum Mode {
1415
- /** any */
1416
- OR = "OR",
1417
- /** all */
1418
- AND = "AND"
1419
- }
1420
- export interface CursorPaging {
1421
- /** The number of contacts to load (default = 50, max = 1000) */
1422
- limit?: number | null;
1423
- /** Cursor returned in last query response. Should not be provided on first page request */
1424
- cursor?: string | null;
1425
- }
1426
- export interface SearchContactsResponse {
1427
- /** List of contacts. */
1428
- contacts?: Contact[];
1429
- /** Details on the paged set of results returned. */
1430
- pagingMetadata?: PagingMetadataV2;
1431
- }
1432
- export interface PagingMetadataV2 {
1433
- /** The number of items returned in this response */
1434
- count?: number | null;
1435
- /** The offset which was requested. Returned if offset paging was used */
1436
- offset?: number | null;
1437
- /** The total number of items that match the query. Returned if offset paging was used and 'too_many_to_count' flag is not set */
1438
- total?: number | null;
1439
- /** A flag that indicates the server failed to calculate 'total' field */
1440
- tooManyToCount?: boolean | null;
1441
- /** Cursors to navigate through result pages. Returned if cursor paging was used */
1442
- cursors?: Cursors;
1443
- }
1444
- export interface Cursors {
1445
- /** Cursor pointing to next result page */
1446
- next?: string | null;
1447
- /** Cursor pointing to previous result page */
1448
- prev?: string | null;
1449
- }
1450
- export interface BulkAddSegmentToContactsRequest {
1451
- /** Segment id */
1452
- segmentId?: string;
1453
- /** List of Contact ids */
1454
- contactIds?: string[];
1455
- /** List of existing segment ids */
1456
- existsSegmentIds?: string[];
1457
- }
1458
- export interface BulkAddSegmentToContactsResponse {
1459
- /** List of action results */
1460
- results?: ItemMetadata[];
1461
- /** Metadata on the bulk action */
1462
- bulkActionMetadata?: BulkActionMetadata;
1463
- }
1464
- export interface ItemMetadata {
1465
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
1466
- id?: string | null;
1467
- /** Index of the item within the request array. Allows for correlation between request and response items. */
1468
- originalIndex?: number;
1469
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
1470
- success?: boolean;
1471
- /** Details about the error in case of failure. */
1472
- error?: ApplicationError;
1473
- }
1474
- export interface ApplicationError {
1475
- /** Error code. */
1476
- code?: string;
1477
- /** Description of the error. */
1478
- description?: string;
1479
- /** Data related to the error. */
1480
- data?: Record<string, any> | null;
1481
- }
1482
- export interface BulkActionMetadata {
1483
- /** Number of items that were successfully processed. */
1484
- totalSuccesses?: number;
1485
- /** Number of items that couldn't be processed. */
1486
- totalFailures?: number;
1487
- /** Number of failures without details because detailed failure threshold was exceeded. */
1488
- undetailedFailures?: number;
1489
- }
1490
- export interface ContactAddedToSegment {
1491
- /** Id of the segment to which the contact was added */
1492
- segmentId?: string;
1493
- /** The contact that was added */
1494
- contact?: Contact;
1495
- }
1496
- export interface BulkRemoveSegmentFromContactsRequest {
1497
- /** Segment id */
1498
- segmentId?: string;
1499
- /** List of Contact ids */
1500
- contactIds?: string[];
1501
- }
1502
- export interface BulkRemoveSegmentFromContactsResponse {
1503
- /** List of action results */
1504
- results?: ItemMetadata[];
1505
- /** Metadata on the bulk action */
1506
- bulkActionMetadata?: BulkActionMetadata;
1507
- }
1508
- export interface ContactRemovedFromSegment {
1509
- /** Id of the segment from which the contact was removed */
1510
- segmentId?: string;
1511
- /** The contact that was removed */
1512
- contact?: Contact;
1513
- }
1514
- export interface DomainEvent extends DomainEventBodyOneOf {
1515
- createdEvent?: EntityCreatedEvent;
1516
- updatedEvent?: EntityUpdatedEvent;
1517
- deletedEvent?: EntityDeletedEvent;
1518
- actionEvent?: ActionEvent;
1519
- /**
1520
- * Unique event ID.
1521
- * Allows clients to ignore duplicate webhooks.
1522
- */
1523
- id?: string;
1524
- /**
1525
- * Assumes actions are also always typed to an entity_type
1526
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1527
- */
1528
- entityFqdn?: string;
1529
- /**
1530
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1531
- * This is although the created/updated/deleted notion is duplication of the oneof types
1532
- * Example: created/updated/deleted/started/completed/email_opened
1533
- */
1534
- slug?: string;
1535
- /** ID of the entity associated with the event. */
1536
- entityId?: string;
1537
- /** Event timestamp. */
1538
- eventTime?: Date;
1539
- /**
1540
- * Whether the event was triggered as a result of a privacy regulation application
1541
- * (for example, GDPR).
1542
- */
1543
- triggeredByAnonymizeRequest?: boolean | null;
1544
- /** If present, indicates the action that triggered the event. */
1545
- originatedFrom?: string | null;
1546
- /**
1547
- * A sequence number defining the order of updates to the underlying entity.
1548
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
1549
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1550
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1551
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
1552
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1553
- */
1554
- entityEventSequence?: string | null;
1555
- }
1556
- /** @oneof */
1557
- export interface DomainEventBodyOneOf {
1558
- createdEvent?: EntityCreatedEvent;
1559
- updatedEvent?: EntityUpdatedEvent;
1560
- deletedEvent?: EntityDeletedEvent;
1561
- actionEvent?: ActionEvent;
1562
- }
1563
- export interface EntityCreatedEvent {
1564
- entityAsJson?: string;
1565
- }
1566
- export interface EntityUpdatedEvent {
1567
- /**
1568
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1569
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1570
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1571
- */
1572
- currentEntityAsJson?: string;
1573
- }
1574
- export interface EntityDeletedEvent {
1575
- /** Entity that was deleted */
1576
- deletedEntityAsJson?: string | null;
1577
- }
1578
- export interface ActionEvent {
1579
- bodyAsJson?: string;
1580
- }
1581
- export interface CreateContactResponseNonNullableFields {
1582
- contact?: {
1583
- id: string;
1584
- revision: number;
1585
- source?: {
1586
- sourceType: ContactSourceType;
1587
- };
1588
- lastActivity?: {
1589
- activityType: ContactActivityType;
1590
- };
1591
- picture?: {
1592
- id: string;
1593
- url: string;
1594
- height: number;
1595
- width: number;
1596
- };
1597
- info?: {
1598
- emails?: {
1599
- items: {
1600
- tag: EmailTag;
1601
- email: string;
1602
- }[];
1603
- };
1604
- phones?: {
1605
- items: {
1606
- tag: PhoneTag;
1607
- phone: string;
1608
- }[];
1609
- };
1610
- addresses?: {
1611
- items: {
1612
- tag: AddressTag;
1613
- address?: {
1614
- streetAddress?: {
1615
- number: string;
1616
- name: string;
1617
- apt: string;
1618
- };
1619
- subdivisions: {
1620
- code: string;
1621
- name: string;
1622
- type: SubdivisionType;
1623
- }[];
1624
- };
1625
- }[];
1626
- };
1627
- assignedUserIds?: {
1628
- items: string[];
1629
- };
1630
- labelKeys?: {
1631
- items: string[];
1632
- };
1633
- locations?: {
1634
- items: string[];
1635
- };
1636
- picture?: {
1637
- image?: {
1638
- id: string;
1639
- url: string;
1640
- height: number;
1641
- width: number;
1642
- };
1643
- imageProvider: ImageProvider;
1644
- };
1645
- };
1646
- segments?: {
1647
- items: string[];
1648
- };
1649
- primaryEmail?: {
1650
- subscriptionStatus: SubscriptionStatus;
1651
- deliverabilityStatus: EmailDeliverabilityStatus;
1652
- };
1653
- primaryPhone?: {
1654
- subscriptionStatus: SubscriptionStatus;
1655
- deliverabilityStatus: PhoneDeliverabilityStatus;
1656
- };
1657
- memberInfo?: {
1658
- status: MemberStatus;
1659
- identityInfo?: {
1660
- status: IdentityStatus;
1661
- };
1662
- profileInfo?: {
1663
- privacyStatus: PrivacyStatus;
1664
- photo?: {
1665
- id: string;
1666
- url: string;
1667
- height: number;
1668
- width: number;
1669
- };
1670
- };
1671
- userInfo?: {
1672
- userId: string;
1673
- role: Role;
1674
- };
1675
- sessionInfo?: {
1676
- mobileAppNames: string[];
1677
- };
1678
- groupInfo?: {
1679
- groupIds: string[];
1680
- };
1681
- };
1682
- };
1683
- }
1684
- export interface UpdateContactResponseNonNullableFields {
1685
- contact?: {
1686
- id: string;
1687
- revision: number;
1688
- source?: {
1689
- sourceType: ContactSourceType;
1690
- };
1691
- lastActivity?: {
1692
- activityType: ContactActivityType;
1693
- };
1694
- picture?: {
1695
- id: string;
1696
- url: string;
1697
- height: number;
1698
- width: number;
1699
- };
1700
- info?: {
1701
- emails?: {
1702
- items: {
1703
- tag: EmailTag;
1704
- email: string;
1705
- }[];
1706
- };
1707
- phones?: {
1708
- items: {
1709
- tag: PhoneTag;
1710
- phone: string;
1711
- }[];
1712
- };
1713
- addresses?: {
1714
- items: {
1715
- tag: AddressTag;
1716
- address?: {
1717
- streetAddress?: {
1718
- number: string;
1719
- name: string;
1720
- apt: string;
1721
- };
1722
- subdivisions: {
1723
- code: string;
1724
- name: string;
1725
- type: SubdivisionType;
1726
- }[];
1727
- };
1728
- }[];
1729
- };
1730
- assignedUserIds?: {
1731
- items: string[];
1732
- };
1733
- labelKeys?: {
1734
- items: string[];
1735
- };
1736
- locations?: {
1737
- items: string[];
1738
- };
1739
- picture?: {
1740
- image?: {
1741
- id: string;
1742
- url: string;
1743
- height: number;
1744
- width: number;
1745
- };
1746
- imageProvider: ImageProvider;
1747
- };
1748
- };
1749
- segments?: {
1750
- items: string[];
1751
- };
1752
- primaryEmail?: {
1753
- subscriptionStatus: SubscriptionStatus;
1754
- deliverabilityStatus: EmailDeliverabilityStatus;
1755
- };
1756
- primaryPhone?: {
1757
- subscriptionStatus: SubscriptionStatus;
1758
- deliverabilityStatus: PhoneDeliverabilityStatus;
1759
- };
1760
- memberInfo?: {
1761
- status: MemberStatus;
1762
- identityInfo?: {
1763
- status: IdentityStatus;
1764
- };
1765
- profileInfo?: {
1766
- privacyStatus: PrivacyStatus;
1767
- photo?: {
1768
- id: string;
1769
- url: string;
1770
- height: number;
1771
- width: number;
1772
- };
1773
- };
1774
- userInfo?: {
1775
- userId: string;
1776
- role: Role;
1777
- };
1778
- sessionInfo?: {
1779
- mobileAppNames: string[];
1780
- };
1781
- groupInfo?: {
1782
- groupIds: string[];
1783
- };
1784
- };
1785
- };
1786
- }
1787
- export interface MergeContactsResponseNonNullableFields {
1788
- contact?: {
1789
- id: string;
1790
- revision: number;
1791
- source?: {
1792
- sourceType: ContactSourceType;
1793
- };
1794
- lastActivity?: {
1795
- activityType: ContactActivityType;
1796
- };
1797
- picture?: {
1798
- id: string;
1799
- url: string;
1800
- height: number;
1801
- width: number;
1802
- };
1803
- info?: {
1804
- emails?: {
1805
- items: {
1806
- tag: EmailTag;
1807
- email: string;
1808
- }[];
1809
- };
1810
- phones?: {
1811
- items: {
1812
- tag: PhoneTag;
1813
- phone: string;
1814
- }[];
1815
- };
1816
- addresses?: {
1817
- items: {
1818
- tag: AddressTag;
1819
- address?: {
1820
- streetAddress?: {
1821
- number: string;
1822
- name: string;
1823
- apt: string;
1824
- };
1825
- subdivisions: {
1826
- code: string;
1827
- name: string;
1828
- type: SubdivisionType;
1829
- }[];
1830
- };
1831
- }[];
1832
- };
1833
- assignedUserIds?: {
1834
- items: string[];
1835
- };
1836
- labelKeys?: {
1837
- items: string[];
1838
- };
1839
- locations?: {
1840
- items: string[];
1841
- };
1842
- picture?: {
1843
- image?: {
1844
- id: string;
1845
- url: string;
1846
- height: number;
1847
- width: number;
1848
- };
1849
- imageProvider: ImageProvider;
1850
- };
1851
- };
1852
- segments?: {
1853
- items: string[];
1854
- };
1855
- primaryEmail?: {
1856
- subscriptionStatus: SubscriptionStatus;
1857
- deliverabilityStatus: EmailDeliverabilityStatus;
1858
- };
1859
- primaryPhone?: {
1860
- subscriptionStatus: SubscriptionStatus;
1861
- deliverabilityStatus: PhoneDeliverabilityStatus;
1862
- };
1863
- memberInfo?: {
1864
- status: MemberStatus;
1865
- identityInfo?: {
1866
- status: IdentityStatus;
1867
- };
1868
- profileInfo?: {
1869
- privacyStatus: PrivacyStatus;
1870
- photo?: {
1871
- id: string;
1872
- url: string;
1873
- height: number;
1874
- width: number;
1875
- };
1876
- };
1877
- userInfo?: {
1878
- userId: string;
1879
- role: Role;
1880
- };
1881
- sessionInfo?: {
1882
- mobileAppNames: string[];
1883
- };
1884
- groupInfo?: {
1885
- groupIds: string[];
1886
- };
1887
- };
1888
- };
1889
- }
1890
- export interface LabelContactResponseNonNullableFields {
1891
- contact?: {
1892
- id: string;
1893
- revision: number;
1894
- source?: {
1895
- sourceType: ContactSourceType;
1896
- };
1897
- lastActivity?: {
1898
- activityType: ContactActivityType;
1899
- };
1900
- picture?: {
1901
- id: string;
1902
- url: string;
1903
- height: number;
1904
- width: number;
1905
- };
1906
- info?: {
1907
- emails?: {
1908
- items: {
1909
- tag: EmailTag;
1910
- email: string;
1911
- }[];
1912
- };
1913
- phones?: {
1914
- items: {
1915
- tag: PhoneTag;
1916
- phone: string;
1917
- }[];
1918
- };
1919
- addresses?: {
1920
- items: {
1921
- tag: AddressTag;
1922
- address?: {
1923
- streetAddress?: {
1924
- number: string;
1925
- name: string;
1926
- apt: string;
1927
- };
1928
- subdivisions: {
1929
- code: string;
1930
- name: string;
1931
- type: SubdivisionType;
1932
- }[];
1933
- };
1934
- }[];
1935
- };
1936
- assignedUserIds?: {
1937
- items: string[];
1938
- };
1939
- labelKeys?: {
1940
- items: string[];
1941
- };
1942
- locations?: {
1943
- items: string[];
1944
- };
1945
- picture?: {
1946
- image?: {
1947
- id: string;
1948
- url: string;
1949
- height: number;
1950
- width: number;
1951
- };
1952
- imageProvider: ImageProvider;
1953
- };
1954
- };
1955
- segments?: {
1956
- items: string[];
1957
- };
1958
- primaryEmail?: {
1959
- subscriptionStatus: SubscriptionStatus;
1960
- deliverabilityStatus: EmailDeliverabilityStatus;
1961
- };
1962
- primaryPhone?: {
1963
- subscriptionStatus: SubscriptionStatus;
1964
- deliverabilityStatus: PhoneDeliverabilityStatus;
1965
- };
1966
- memberInfo?: {
1967
- status: MemberStatus;
1968
- identityInfo?: {
1969
- status: IdentityStatus;
1970
- };
1971
- profileInfo?: {
1972
- privacyStatus: PrivacyStatus;
1973
- photo?: {
1974
- id: string;
1975
- url: string;
1976
- height: number;
1977
- width: number;
1978
- };
1979
- };
1980
- userInfo?: {
1981
- userId: string;
1982
- role: Role;
1983
- };
1984
- sessionInfo?: {
1985
- mobileAppNames: string[];
1986
- };
1987
- groupInfo?: {
1988
- groupIds: string[];
1989
- };
1990
- };
1991
- };
1992
- }
1993
- export interface UnlabelContactResponseNonNullableFields {
1994
- contact?: {
1995
- id: string;
1996
- revision: number;
1997
- source?: {
1998
- sourceType: ContactSourceType;
1999
- };
2000
- lastActivity?: {
2001
- activityType: ContactActivityType;
2002
- };
2003
- picture?: {
2004
- id: string;
2005
- url: string;
2006
- height: number;
2007
- width: number;
2008
- };
2009
- info?: {
2010
- emails?: {
2011
- items: {
2012
- tag: EmailTag;
2013
- email: string;
2014
- }[];
2015
- };
2016
- phones?: {
2017
- items: {
2018
- tag: PhoneTag;
2019
- phone: string;
2020
- }[];
2021
- };
2022
- addresses?: {
2023
- items: {
2024
- tag: AddressTag;
2025
- address?: {
2026
- streetAddress?: {
2027
- number: string;
2028
- name: string;
2029
- apt: string;
2030
- };
2031
- subdivisions: {
2032
- code: string;
2033
- name: string;
2034
- type: SubdivisionType;
2035
- }[];
2036
- };
2037
- }[];
2038
- };
2039
- assignedUserIds?: {
2040
- items: string[];
2041
- };
2042
- labelKeys?: {
2043
- items: string[];
2044
- };
2045
- locations?: {
2046
- items: string[];
2047
- };
2048
- picture?: {
2049
- image?: {
2050
- id: string;
2051
- url: string;
2052
- height: number;
2053
- width: number;
2054
- };
2055
- imageProvider: ImageProvider;
2056
- };
2057
- };
2058
- segments?: {
2059
- items: string[];
2060
- };
2061
- primaryEmail?: {
2062
- subscriptionStatus: SubscriptionStatus;
2063
- deliverabilityStatus: EmailDeliverabilityStatus;
2064
- };
2065
- primaryPhone?: {
2066
- subscriptionStatus: SubscriptionStatus;
2067
- deliverabilityStatus: PhoneDeliverabilityStatus;
2068
- };
2069
- memberInfo?: {
2070
- status: MemberStatus;
2071
- identityInfo?: {
2072
- status: IdentityStatus;
2073
- };
2074
- profileInfo?: {
2075
- privacyStatus: PrivacyStatus;
2076
- photo?: {
2077
- id: string;
2078
- url: string;
2079
- height: number;
2080
- width: number;
2081
- };
2082
- };
2083
- userInfo?: {
2084
- userId: string;
2085
- role: Role;
2086
- };
2087
- sessionInfo?: {
2088
- mobileAppNames: string[];
2089
- };
2090
- groupInfo?: {
2091
- groupIds: string[];
2092
- };
2093
- };
2094
- };
2095
- }
2096
- export interface GetContactResponseNonNullableFields {
2097
- contact?: {
2098
- id: string;
2099
- revision: number;
2100
- source?: {
2101
- sourceType: ContactSourceType;
2102
- };
2103
- lastActivity?: {
2104
- activityType: ContactActivityType;
2105
- };
2106
- picture?: {
2107
- id: string;
2108
- url: string;
2109
- height: number;
2110
- width: number;
2111
- };
2112
- info?: {
2113
- emails?: {
2114
- items: {
2115
- tag: EmailTag;
2116
- email: string;
2117
- }[];
2118
- };
2119
- phones?: {
2120
- items: {
2121
- tag: PhoneTag;
2122
- phone: string;
2123
- }[];
2124
- };
2125
- addresses?: {
2126
- items: {
2127
- tag: AddressTag;
2128
- address?: {
2129
- streetAddress?: {
2130
- number: string;
2131
- name: string;
2132
- apt: string;
2133
- };
2134
- subdivisions: {
2135
- code: string;
2136
- name: string;
2137
- type: SubdivisionType;
2138
- }[];
2139
- };
2140
- }[];
2141
- };
2142
- assignedUserIds?: {
2143
- items: string[];
2144
- };
2145
- labelKeys?: {
2146
- items: string[];
2147
- };
2148
- locations?: {
2149
- items: string[];
2150
- };
2151
- picture?: {
2152
- image?: {
2153
- id: string;
2154
- url: string;
2155
- height: number;
2156
- width: number;
2157
- };
2158
- imageProvider: ImageProvider;
2159
- };
2160
- };
2161
- segments?: {
2162
- items: string[];
2163
- };
2164
- primaryEmail?: {
2165
- subscriptionStatus: SubscriptionStatus;
2166
- deliverabilityStatus: EmailDeliverabilityStatus;
2167
- };
2168
- primaryPhone?: {
2169
- subscriptionStatus: SubscriptionStatus;
2170
- deliverabilityStatus: PhoneDeliverabilityStatus;
2171
- };
2172
- memberInfo?: {
2173
- status: MemberStatus;
2174
- identityInfo?: {
2175
- status: IdentityStatus;
2176
- };
2177
- profileInfo?: {
2178
- privacyStatus: PrivacyStatus;
2179
- photo?: {
2180
- id: string;
2181
- url: string;
2182
- height: number;
2183
- width: number;
2184
- };
2185
- };
2186
- userInfo?: {
2187
- userId: string;
2188
- role: Role;
2189
- };
2190
- sessionInfo?: {
2191
- mobileAppNames: string[];
2192
- };
2193
- groupInfo?: {
2194
- groupIds: string[];
2195
- };
2196
- };
2197
- };
2198
- responseType: GetContactResponseType;
2199
- }