@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,555 +0,0 @@
1
- /** Dummy message for fqdn validation */
2
- export interface SubmitContact {
3
- /** Submit Contact Id */
4
- _id?: string | null;
5
- }
6
- export interface SubmitContactRequest {
7
- /**
8
- * Contact's information.
9
- * To reconcile with an existing contact,
10
- * a phone or email must be provided,
11
- * or the current session identity must be attached to a contact or member.
12
- *
13
- * If no existing contact can be found,
14
- * a new contact is created with the specified information.
15
- *
16
- * <!--ONLY:REST-->
17
- * Required if there's no contextual identity or given `contactId`.
18
- * <!--END:ONLY:REST-->
19
- */
20
- info?: ContactInfo;
21
- /** Pass through data, to be posted on Contact Submitted Domain Event (optional). */
22
- passThroughData?: string | null;
23
- /**
24
- * Existing Contact ID (optional).
25
- * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`
26
- */
27
- contactId?: string | null;
28
- }
29
- export interface ContactInfo {
30
- /** Contact's first and last name. */
31
- name?: ContactName;
32
- /** Contact's email addresses. */
33
- emails?: ContactEmailsWrapper;
34
- /** Contact's phone numbers. */
35
- phones?: ContactPhonesWrapper;
36
- /** Contact's street addresses. */
37
- addresses?: ContactAddressesWrapper;
38
- /** Contact's company name. */
39
- company?: string | null;
40
- /**
41
- * Contact's job title.
42
- * Corresponds to the **Position** field in the Dashboard.
43
- */
44
- jobTitle?: string | null;
45
- /** Birth date in `YYYY-MM-DD` format. For example, `2020-03-15`. */
46
- birthdate?: string | null;
47
- /**
48
- * Locale in
49
- * [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
50
- * Typically, this is a lowercase 2-letter language code,
51
- * followed by a hyphen, followed by an uppercase 2-letter country code.
52
- * For example, `en-US` for U.S. English, and `de-DE` for Germany German.
53
- */
54
- locale?: string | null;
55
- /**
56
- * List of contact's labels.
57
- * Labels are used to organize contacts.
58
- * When setting the `labelKeys` property,
59
- * only labels that already exist in the site's Contacts List can be used.
60
- * Labels can be added and removed using
61
- * [Label Contact](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/label-contact) and
62
- * [Unlabel Contact](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/unlabel-contact),
63
- * respectively.
64
- *
65
- * To view or manage site labels, use the
66
- * [Labels API](https://dev.wix.com/api/rest/contacts/labels).
67
- */
68
- labelKeys?: LabelsWrapper;
69
- /**
70
- * Additional custom fields.
71
- * This includes fields managed by Wix, by 3rd-party apps, and by the site.
72
- *
73
- * Empty fields are not returned.
74
- */
75
- extendedFields?: ExtendedFieldsWrapper;
76
- /** Contact's profile picture. */
77
- picture?: ContactPicture;
78
- }
79
- export interface ContactName {
80
- /** Contact's first name. */
81
- first?: string | null;
82
- /** Contact's last name. */
83
- last?: string | null;
84
- }
85
- export interface ContactEmailsWrapper {
86
- /** List of up to 50 email addresses. */
87
- items?: ContactEmail[];
88
- }
89
- export interface ContactEmail {
90
- /**
91
- * Email ID.
92
- * @readonly
93
- */
94
- _id?: string | null;
95
- /**
96
- * Email type.
97
- *
98
- * `UNTAGGED` is shown as "Other" in the Contact List.
99
- */
100
- tag?: EmailTag;
101
- /** Email address. */
102
- email?: string;
103
- /**
104
- * Indicates whether this is the contact's primary email address.
105
- * When changing `primary` to `true` for an email,
106
- * the contact's other emails become `false`.
107
- * It also affects the subscription status to marketing emails that are decided based on the primary email.
108
- */
109
- primary?: boolean | null;
110
- }
111
- export declare enum EmailTag {
112
- UNTAGGED = "UNTAGGED",
113
- MAIN = "MAIN",
114
- HOME = "HOME",
115
- WORK = "WORK"
116
- }
117
- export interface ContactPhonesWrapper {
118
- /** List of up to 50 phone numbers. */
119
- items?: ContactPhone[];
120
- }
121
- export interface ContactPhone {
122
- /**
123
- * Phone ID.
124
- * @readonly
125
- */
126
- _id?: string | null;
127
- /**
128
- * Phone type.
129
- *
130
- * `UNTAGGED` is shown as "Other" in the Contact List.
131
- */
132
- tag?: PhoneTag;
133
- /** [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. */
134
- countryCode?: string | null;
135
- /** Phone number. */
136
- phone?: string;
137
- /**
138
- * [ITU E.164-formatted](https://www.itu.int/rec/T-REC-E.164/)
139
- * phone number.
140
- * Automatically generated using `phone` and `countryCode`, pending both values are valid.
141
- * @readonly
142
- */
143
- e164Phone?: string | null;
144
- /**
145
- * Whether this is the contact's primary phone number.
146
- * When changing `primary` to `true` for a phone,
147
- * the contact's `primary` field for other phones becomes `false`.
148
- * It also affects the subscription status to SMS messages that are decided based on the primary phone.
149
- */
150
- primary?: boolean | null;
151
- }
152
- export declare enum PhoneTag {
153
- UNTAGGED = "UNTAGGED",
154
- MAIN = "MAIN",
155
- HOME = "HOME",
156
- MOBILE = "MOBILE",
157
- WORK = "WORK",
158
- FAX = "FAX"
159
- }
160
- export interface ContactAddressesWrapper {
161
- /** List of up to 50 addresses. */
162
- items?: ContactAddress[];
163
- }
164
- export interface ContactAddress {
165
- /**
166
- * Street address ID.
167
- * @readonly
168
- */
169
- _id?: string | null;
170
- /**
171
- * Address type.
172
- * `UNTAGGED` is shown as "Other" in the Contact List.
173
- */
174
- tag?: AddressTag;
175
- /** Street address. */
176
- address?: Address;
177
- }
178
- export declare enum AddressTag {
179
- UNTAGGED = "UNTAGGED",
180
- HOME = "HOME",
181
- WORK = "WORK",
182
- BILLING = "BILLING",
183
- SHIPPING = "SHIPPING"
184
- }
185
- /** Physical address */
186
- export interface Address extends AddressStreetOneOf {
187
- /** Street address object, with number and name in separate fields. */
188
- streetAddress?: StreetAddress;
189
- /** Main address line, usually street and number, as free text. */
190
- addressLine1?: string | null;
191
- /**
192
- * 2-letter country code in an
193
- * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
194
- */
195
- country?: string | null;
196
- /**
197
- * Code for a subdivision (such as state, prefecture, or province) in an
198
- * [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
199
- */
200
- subdivision?: string | null;
201
- /** City name. */
202
- city?: string | null;
203
- /** Postal or zip code. */
204
- postalCode?: string | null;
205
- /**
206
- * Free text providing more detailed address information,
207
- * such as apartment, suite, or floor.
208
- */
209
- addressLine2?: string | null;
210
- }
211
- /** @oneof */
212
- export interface AddressStreetOneOf {
213
- /** Street address object, with number and name in separate fields. */
214
- streetAddress?: StreetAddress;
215
- /** Main address line, usually street and number, as free text. */
216
- addressLine?: string | null;
217
- }
218
- export interface StreetAddress {
219
- /** Street number. */
220
- number?: string;
221
- /** Street name. */
222
- name?: string;
223
- }
224
- export interface AddressLocation {
225
- /** Address's latitude. */
226
- latitude?: number | null;
227
- /** Address's longitude. */
228
- longitude?: number | null;
229
- }
230
- export interface Subdivision {
231
- /** subdivision short code */
232
- code?: string;
233
- /** Full subdivision name. */
234
- name?: string;
235
- }
236
- export declare enum SubdivisionType {
237
- UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
238
- /** State */
239
- ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
240
- /** County */
241
- ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
242
- /** City/town */
243
- ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
244
- /** Neighborhood/quarter */
245
- ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
246
- /** Street/block */
247
- ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
248
- /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
249
- COUNTRY = "COUNTRY"
250
- }
251
- export interface AssigneesWrapper {
252
- /** List of site contributor user IDs. */
253
- items?: string[];
254
- }
255
- export interface LabelsWrapper {
256
- /**
257
- * List of contact label keys.
258
- * [Contact labels](https://support.wix.com/en/article/adding-labels-to-contacts-in-your-contact-list)
259
- * help categorize contacts.
260
- *
261
- * Label keys must exist to be added to the contact.
262
- * Contact labels can be created or retrieved with
263
- * [Find or Create Label](https://dev.wix.com/api/rest/contacts/labels/find-or-create-label)
264
- * or
265
- * [List Labels](https://dev.wix.com/api/rest/contacts/labels/list-labels)
266
- */
267
- items?: string[];
268
- }
269
- export interface ExtendedFieldsWrapper {
270
- /**
271
- * Contact's extended fields,
272
- * where each key is the field key,
273
- * and each value is the field's value for the contact.
274
- *
275
- * To view and manage extended fields, use the
276
- * [Extended Fields API](https://dev.wix.com/api/rest/contacts/extended-fields).
277
- */
278
- items?: Record<string, any>;
279
- }
280
- export interface LocationsWrapper {
281
- /** List of location ids. */
282
- items?: string[];
283
- }
284
- /** TEST contact picture description */
285
- export interface ContactPicture {
286
- /**
287
- * Image.
288
- * This can contain an image URL or a Wix Media image ID.
289
- */
290
- image?: string;
291
- }
292
- export declare enum ImageProvider {
293
- UNKNOWN = "UNKNOWN",
294
- /** Image stored outside Wix */
295
- EXTERNAL = "EXTERNAL",
296
- /** Stored in wix media platform, Must be uploaded by using `GeneratePictureUploadUrl` */
297
- WIX_MEDIA = "WIX_MEDIA"
298
- }
299
- export interface ContactActivity {
300
- /** Date and time of the last action. */
301
- activityDate?: Date;
302
- /**
303
- * Contact's last action in the site.
304
- *
305
- * For descriptions of each value, see
306
- * [Last Activity Types](https://dev.wix.com/api/rest/contacts/contacts/last-activity-types).
307
- */
308
- activityType?: ContactActivityType;
309
- }
310
- export declare enum ContactActivityType {
311
- /** Last visit to your site (any unknown activity) */
312
- GENERAL = "GENERAL",
313
- /** This cannot be reported, used when contact created, will throw exception */
314
- CONTACT_CREATED = "CONTACT_CREATED",
315
- /** "auth/login" */
316
- MEMBER_LOGIN = "MEMBER_LOGIN",
317
- /** "auth/register" */
318
- MEMBER_REGISTER = "MEMBER_REGISTER",
319
- /** "auth/status-change" */
320
- MEMBER_STATUS_CHANGED = "MEMBER_STATUS_CHANGED",
321
- /** "contact/contact-form", (but also "form/contact-form", "form/form") */
322
- FORM_SUBMITTED = "FORM_SUBMITTED",
323
- /** "form/lead-capture-form" */
324
- INBOX_FORM_SUBMITTED = "INBOX_FORM_SUBMITTED",
325
- /** "chat/payment-request-paid" */
326
- INBOX_PAYMENT_REQUEST_PAID = "INBOX_PAYMENT_REQUEST_PAID",
327
- /** "messaging/email" - Direction BUSINESS_TO_CUSTOMER */
328
- INBOX_MESSAGE_TO_CUSTOMER = "INBOX_MESSAGE_TO_CUSTOMER",
329
- /** "messaging/email" - Direction CUSTOMER_TO_BUSINESS */
330
- INBOX_MESSAGE_FROM_CUSTOMER = "INBOX_MESSAGE_FROM_CUSTOMER",
331
- /** "contact/subscription-form" (but also "form/subscription-form") */
332
- NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED = "NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED",
333
- /** "contact/unsubscribe" */
334
- NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE = "NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE",
335
- /** "e_commerce/purchase" */
336
- ECOM_PURCHASE = "ECOM_PURCHASE",
337
- /** "e_commerce/cart-abandon" */
338
- ECOM_CART_ABANDON = "ECOM_CART_ABANDON",
339
- /** "e_commerce/checkout-buyer" */
340
- ECOM_CHECKOUT_BUYER = "ECOM_CHECKOUT_BUYER",
341
- /** "scheduler/appointment" */
342
- BOOKINGS_APPOINTMENT = "BOOKINGS_APPOINTMENT",
343
- /** "hotels/reservation" */
344
- HOTELS_RESERVATION = "HOTELS_RESERVATION",
345
- /** "hotels/purchase" */
346
- HOTELS_PURCHASE = "HOTELS_PURCHASE",
347
- /** "hotels/confirmation" */
348
- HOTELS_CONFIRMATION = "HOTELS_CONFIRMATION",
349
- /** "hotels/cancel" */
350
- HOTELS_CANCEL = "HOTELS_CANCEL",
351
- /** "video/purchase" */
352
- VIDEO_PURCHASE = "VIDEO_PURCHASE",
353
- /** "video/rent" */
354
- VIDEO_RENT = "VIDEO_RENT",
355
- /** "cashier/button_purchase" */
356
- CASHIER_BUTTON_PURCHASE = "CASHIER_BUTTON_PURCHASE",
357
- /** "arena/new-lead" */
358
- ARENA_NEW_LEAD = "ARENA_NEW_LEAD",
359
- /** "events/rsvp" */
360
- EVENTS_RSVP = "EVENTS_RSVP",
361
- /** "invoice/pay" */
362
- INVOICE_PAY = "INVOICE_PAY",
363
- /** "invoice/overdue" */
364
- INVOICE_OVERDUE = "INVOICE_OVERDUE",
365
- /** "price-quote/accept" */
366
- PRICE_QUOTE_ACCEPT = "PRICE_QUOTE_ACCEPT",
367
- /** "price-quote/expire" */
368
- PRICE_QUOTE_EXPIRE = "PRICE_QUOTE_EXPIRE",
369
- /** "restaurants/order" */
370
- RESTAURANTS_ORDER = "RESTAURANTS_ORDER",
371
- /** "restaurants/reservation" */
372
- RESTAURANTS_RESERVATION = "RESTAURANTS_RESERVATION",
373
- /** "shoutout/open" */
374
- SHOUTOUT_OPEN = "SHOUTOUT_OPEN",
375
- /** "shoutout/click" */
376
- SHOUTOUT_CLICK = "SHOUTOUT_CLICK",
377
- CONTACT_MERGED = "CONTACT_MERGED",
378
- /** "contact/subscribe" */
379
- NEWSLETTER_SUBSCRIPTION_SUBSCRIBE = "NEWSLETTER_SUBSCRIPTION_SUBSCRIBE",
380
- /** "contact/subscription-pending" */
381
- NEWSLETTER_SUBSCRIPTION_PENDING = "NEWSLETTER_SUBSCRIPTION_PENDING",
382
- /** "contact/subscription-not-set" */
383
- NEWSLETTER_SUBSCRIPTION_NOT_SET = "NEWSLETTER_SUBSCRIPTION_NOT_SET",
384
- /** "contact/phone-subscription-subscribe" */
385
- PHONE_SUBSCRIPTION_SUBSCRIBE = "PHONE_SUBSCRIPTION_SUBSCRIBE",
386
- /** "contact/phone-subscription-pending" */
387
- PHONE_SUBSCRIPTION_PENDING = "PHONE_SUBSCRIPTION_PENDING",
388
- /** "contact/phone-subscription-not-set" */
389
- PHONE_SUBSCRIPTION_NOT_SET = "PHONE_SUBSCRIPTION_NOT_SET",
390
- /** "contact/phone-subscription-unsubscribe" */
391
- PHONE_SUBSCRIPTION_UNSUBSCRIBE = "PHONE_SUBSCRIPTION_UNSUBSCRIBE"
392
- }
393
- export interface ActivityIcon {
394
- /** Icon name */
395
- name?: string | null;
396
- /** Icon url */
397
- url?: string | null;
398
- }
399
- export interface SubmitContactOptions {
400
- /**
401
- * Overrides `visitorId`
402
- * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`
403
- */
404
- overrideVisitorId?: string | null;
405
- /**
406
- * Overrides `memberId`
407
- * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`
408
- */
409
- overrideMemberId?: string | null;
410
- /**
411
- * Overrides `app_id`
412
- * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`
413
- */
414
- overrideAppId?: string | null;
415
- /**
416
- * Indicates primary email is verified (first email on contact.emails)
417
- * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`
418
- */
419
- emailVerified?: boolean | null;
420
- /**
421
- * Indicates primary phone is verified (first phone on contact.phones)
422
- * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`
423
- */
424
- phoneVerified?: boolean | null;
425
- }
426
- export interface SubmitContactResponse {
427
- /** ID of the contact that was found or created. */
428
- contactId?: string;
429
- /**
430
- * Identity type of the returned contact.
431
- *
432
- * - `CONTACT`: The returned contact ID belongs to a new or existing contact.
433
- * - `MEMBER`: The returned contact ID belongs to the currently logged-in site member.
434
- * - `NOT_AUTHENTICATED_MEMBER`: The returned contact ID belongs to a site member who is not currently logged in.
435
- */
436
- identityType?: IdentityType;
437
- /**
438
- * Indicates whether the contact was just created or already existed.
439
- *
440
- * If the contact was just created, returns `true`.
441
- * If it already existed, returns `false`.
442
- */
443
- newContact?: boolean;
444
- }
445
- export declare enum IdentityType {
446
- UNKNOWN = "UNKNOWN",
447
- /** Existing or new contact */
448
- CONTACT = "CONTACT",
449
- /** Member is logged in, matching logic skipped */
450
- MEMBER = "MEMBER",
451
- /** Matching contact is a member, Merge logic won't be applied */
452
- NOT_AUTHENTICATED_MEMBER = "NOT_AUTHENTICATED_MEMBER"
453
- }
454
- export interface ContactToSubmit {
455
- /**
456
- * reserved 6;
457
- * reserved "raw_source";
458
- */
459
- contactInfo?: ContactInfo;
460
- /** Last activity */
461
- activity?: ContactActivity;
462
- /** Pass through data */
463
- passThroughData?: string | null;
464
- /** Contact Id */
465
- contactId?: string;
466
- /** Create/Update */
467
- submitOperation?: SubmitOperation;
468
- /** Raw source */
469
- rawSource?: string | null;
470
- /** Need to resolve source in allocator, because of server sign */
471
- sourceType?: ContactSourceType;
472
- /** Source Id */
473
- sourceId?: string | null;
474
- /** Hide from contact list (implicit contact) */
475
- hideFromContactList?: boolean;
476
- }
477
- export declare enum SubmitOperation {
478
- UNKNOWN = "UNKNOWN",
479
- CREATE = "CREATE",
480
- UPDATE = "UPDATE"
481
- }
482
- export declare enum ContactSourceType {
483
- OTHER = "OTHER",
484
- ADMIN = "ADMIN",
485
- WIX_APP = "WIX_APP",
486
- IMPORT = "IMPORT",
487
- THIRD_PARTY = "THIRD_PARTY",
488
- WIX_BOOKINGS = "WIX_BOOKINGS",
489
- WIX_CHAT = "WIX_CHAT",
490
- WIX_EMAIL_MARKETING = "WIX_EMAIL_MARKETING",
491
- WIX_EVENTS = "WIX_EVENTS",
492
- WIX_FORMS = "WIX_FORMS",
493
- WIX_GROUPS = "WIX_GROUPS",
494
- WIX_HOTELS = "WIX_HOTELS",
495
- WIX_MARKET_PLACE = "WIX_MARKET_PLACE",
496
- WIX_MUSIC = "WIX_MUSIC",
497
- WIX_RESTAURANTS = "WIX_RESTAURANTS",
498
- WIX_SITE_MEMBERS = "WIX_SITE_MEMBERS",
499
- WIX_STORES = "WIX_STORES",
500
- WIX_CODE = "WIX_CODE",
501
- HOPP = "HOPP"
502
- }
503
- export interface SubmitVisitorIdRequest {
504
- /** Existing Contact ID */
505
- contactId?: string;
506
- /** The visitor ID to be attached to the given `contactId` */
507
- visitorId?: string;
508
- }
509
- export interface SubmitVisitorIdResponse {
510
- /** The mapped Contact ID */
511
- contactId?: string;
512
- /** The mapped visitor ID */
513
- visitorId?: string;
514
- /** Date in the `visitorId` was attached to the given `contactId` */
515
- validFrom?: Date;
516
- }
517
- export interface SubmitContactResponseNonNullableFields {
518
- contactId: string;
519
- identityType: IdentityType;
520
- newContact: boolean;
521
- }
522
- /**
523
- * Appends an existing contact or creates a contact if it doesn't exist.
524
- *
525
- * For internal docs, see
526
- * [Submit Contacts](crm.contact-submit-service.introduction).
527
- * @public
528
- * @documentationMaturity preview
529
- * @applicableIdentity MEMBER
530
- * @applicableIdentity VISITOR
531
- */
532
- export declare function appendOrCreateContact(options?: AppendOrCreateContactOptions): Promise<SubmitContactResponse & SubmitContactResponseNonNullableFields>;
533
- export interface AppendOrCreateContactOptions {
534
- /**
535
- * Contact's information.
536
- * To reconcile with an existing contact,
537
- * a phone or email must be provided,
538
- * or the current session identity must be attached to a contact or member.
539
- *
540
- * If no existing contact can be found,
541
- * a new contact is created with the specified information.
542
- *
543
- * <!--ONLY:REST-->
544
- * Required if there's no contextual identity or given `contactId`.
545
- * <!--END:ONLY:REST-->
546
- */
547
- info?: ContactInfo;
548
- /** Pass through data, to be posted on Contact Submitted Domain Event (optional). */
549
- passThroughData?: string | null;
550
- /**
551
- * Existing Contact ID (optional).
552
- * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`
553
- */
554
- contactId?: string | null;
555
- }