@wix/auto_sdk_crm_contacts-v-5 1.0.0
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.
- package/build/cjs/contacts-v5-contact-contacts-v-5.universal-78Io5ULf.d.ts +4256 -0
- package/build/cjs/index.d.ts +522 -0
- package/build/cjs/index.js +3749 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +38 -0
- package/build/cjs/index.typings.js +3445 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2929 -0
- package/build/cjs/meta.js +2558 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/schemas.d.ts +5693 -0
- package/build/cjs/schemas.js +8216 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/contacts-v5-contact-contacts-v-5.universal-78Io5ULf.d.mts +4256 -0
- package/build/es/index.d.mts +522 -0
- package/build/es/index.mjs +3666 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +38 -0
- package/build/es/index.typings.mjs +3361 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2929 -0
- package/build/es/meta.mjs +2473 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/schemas.d.mts +5693 -0
- package/build/es/schemas.mjs +8116 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/contacts-v5-contact-contacts-v-5.universal-78Io5ULf.d.ts +4256 -0
- package/build/internal/cjs/index.d.ts +522 -0
- package/build/internal/cjs/index.js +3749 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +38 -0
- package/build/internal/cjs/index.typings.js +3445 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2929 -0
- package/build/internal/cjs/meta.js +2558 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/schemas.d.ts +5693 -0
- package/build/internal/cjs/schemas.js +8216 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/contacts-v5-contact-contacts-v-5.universal-78Io5ULf.d.mts +4256 -0
- package/build/internal/es/index.d.mts +522 -0
- package/build/internal/es/index.mjs +3666 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +38 -0
- package/build/internal/es/index.typings.mjs +3361 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2929 -0
- package/build/internal/es/meta.mjs +2473 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/schemas.d.mts +5693 -0
- package/build/internal/es/schemas.mjs +8116 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +61 -0
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,2929 @@
|
|
|
1
|
+
import { bz as BulkUpdateContactSubscriptionsRequest$1, a as BulkUpdateContactSubscriptionsResponse$1, bI as CreateContactRequest$1, bJ as CreateContactResponse$1, bL as GetContactRequest$1, bM as GetContactResponse$1, bN as UpdateContactRequest$1, bO as UpdateContactResponse$1, bP as UpsertContactRequest$1, h as UpsertContactResponse$1, bR as UpdateContactTagsRequest$1, k as UpdateContactTagsResponse$1, bS as MergeContactsRequest$1, m as MergeContactsResponse$1, bT as DeleteContactRequest$1, bU as DeleteContactResponse$1, bV as FindMatchingContactsRequest$1, p as FindMatchingContactsResponse$1, bW as QueryContactsRequest$1, b$ as QueryContactsResponse$1, c2 as SearchContactsRequest$1, s as SearchContactsResponse$1, cy as CountContactsRequest$1, u as CountContactsResponse$1, cz as GenerateContactImageUploadUrlRequest$1, v as GenerateContactImageUploadUrlResponse$1, cA as AddContactAdditionalEmailRequest$1, y as AddContactAdditionalEmailResponse$1, cB as AddContactAdditionalPhoneRequest$1, I as AddContactAdditionalPhoneResponse$1, cC as AddContactAddressRequest$1, N as AddContactAddressResponse$1, cD as DeleteContactAddressRequest$1, Q as DeleteContactAddressResponse$1, cE as UpdateContactAddressRequest$1, W as UpdateContactAddressResponse$1, cF as BulkCreateContactsRequest$1, Z as BulkCreateContactsResponse$1, cK as BulkUpdateContactsRequest$1, a0 as BulkUpdateContactsResponse$1, cM as BulkUpdateContactTagsRequest$1, a2 as BulkUpdateContactTagsResponse$1, cO as BulkUpdateContactTagsByFilterRequest$1, a5 as BulkUpdateContactTagsByFilterResponse$1, cP as BulkUpsertContactsRequest$1, a9 as BulkUpsertContactsResponse$1, cR as BulkDeleteContactsRequest$1, ab as BulkDeleteContactsResponse$1, cT as BulkDeleteContactsByFilterRequest$1, ae as BulkDeleteContactsByFilterResponse$1, cU as RemoveContactFromTrashBinRequest$1, cV as RemoveContactFromTrashBinResponse$1, cW as RestoreContactFromTrashBinRequest$1, ag as RestoreContactFromTrashBinResponse$1, cX as BulkRestoreContactsFromTrashBinRequest$1, ai as BulkRestoreContactsFromTrashBinResponse$1, cZ as GetDeletedContactRequest$1, aj as GetDeletedContactResponse$1, c_ as ListDeletedContactsRequest$1, al as ListDeletedContactsResponse$1, d9 as GetContactImageUploadStatusRequest$1, an as GetContactImageUploadStatusResponse$1, da as BulkUpdatePhoneCountryCodeByFilterRequest$1, aq as BulkUpdatePhoneCountryCodeByFilterResponse$1 } from './contacts-v5-contact-contacts-v-5.universal-78Io5ULf.mjs';
|
|
2
|
+
import '@wix/sdk-types';
|
|
3
|
+
|
|
4
|
+
interface Contact {
|
|
5
|
+
/**
|
|
6
|
+
* Contact ID.
|
|
7
|
+
* @format GUID
|
|
8
|
+
* @immutable
|
|
9
|
+
* @readonly
|
|
10
|
+
*/
|
|
11
|
+
id?: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Revision number, which increments by 1 each time the Contact is updated.
|
|
14
|
+
* To prevent conflicting changes,
|
|
15
|
+
* the current revision must be passed when updating the Contact.
|
|
16
|
+
*
|
|
17
|
+
* Ignored when creating a Contact.
|
|
18
|
+
* @readonly
|
|
19
|
+
*/
|
|
20
|
+
revision?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Date and time the Contact was created.
|
|
23
|
+
* @readonly
|
|
24
|
+
* @immutable
|
|
25
|
+
*/
|
|
26
|
+
createdDate?: Date | null;
|
|
27
|
+
/**
|
|
28
|
+
* Date and time the Contact was last updated.
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
updatedDate?: Date | null;
|
|
32
|
+
/**
|
|
33
|
+
* Contact External ID. Used to identify contacts from external systems.
|
|
34
|
+
* This field can only be set once and cannot be updated after creation.
|
|
35
|
+
* @maxLength 100
|
|
36
|
+
*/
|
|
37
|
+
externalId?: string | null;
|
|
38
|
+
/** Contact's name information including first and last name. */
|
|
39
|
+
name?: ContactName;
|
|
40
|
+
/**
|
|
41
|
+
* The main email of the contact with subscription status and deliverability information.
|
|
42
|
+
* This email is used for contact matching and deduplication logic.
|
|
43
|
+
*/
|
|
44
|
+
email?: ContactEmail;
|
|
45
|
+
/**
|
|
46
|
+
* Additional emails of the contact.
|
|
47
|
+
* These emails do not affect subscription status or contact matching/deduplication.
|
|
48
|
+
* The main email field must be set before additional emails can be added.
|
|
49
|
+
* @maxSize 10
|
|
50
|
+
*/
|
|
51
|
+
additionalEmails?: AdditionalEmail[];
|
|
52
|
+
/**
|
|
53
|
+
* The main phone of the contact with subscription status and deliverability information.
|
|
54
|
+
* This phone is used for contact matching and deduplication logic.
|
|
55
|
+
* At least one of name, email, or phone is required for contact creation.
|
|
56
|
+
*/
|
|
57
|
+
phone?: ContactPhone;
|
|
58
|
+
/**
|
|
59
|
+
* Additional phones of the contact.
|
|
60
|
+
* These phones do not affect subscription status or contact matching/deduplication.
|
|
61
|
+
* The main phone field must be set before additional phones can be added.
|
|
62
|
+
* @maxSize 10
|
|
63
|
+
*/
|
|
64
|
+
additionalPhones?: AdditionalPhone[];
|
|
65
|
+
/**
|
|
66
|
+
* Contact's physical addresses.
|
|
67
|
+
* Each address can be tagged (HOME, WORK, BILLING, SHIPPING, OTHER) and one can be set as default.
|
|
68
|
+
* If no address is marked as default, the first address automatically becomes the default.
|
|
69
|
+
* @maxSize 50
|
|
70
|
+
*/
|
|
71
|
+
addresses?: ContactAddress[];
|
|
72
|
+
/** Contact's company information including company name and job title. */
|
|
73
|
+
company?: ContactCompany;
|
|
74
|
+
/**
|
|
75
|
+
* Locale in
|
|
76
|
+
* [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
77
|
+
* Typically, this is a lowercase 2-letter language code,
|
|
78
|
+
* followed by a hyphen, followed by an uppercase 2-letter country code.
|
|
79
|
+
* For example, `en-US` for U.S. English, and `de-DE` for Germany German.
|
|
80
|
+
* @format LANGUAGE_TAG
|
|
81
|
+
*/
|
|
82
|
+
locale?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Birth date in `YYYY-MM-DD` format. For example, `2020-03-15`.
|
|
85
|
+
* @format LOCAL_DATE
|
|
86
|
+
*/
|
|
87
|
+
birthdate?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* IANA time zone identifier for the contact's location.
|
|
90
|
+
* Valid values are IANA time zone IDs, such as 'Europe/Rome' or 'America/New_York'.
|
|
91
|
+
* @maxLength 50
|
|
92
|
+
*/
|
|
93
|
+
timeZone?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Site contributor user ID assigned to manage communication with this contact.
|
|
96
|
+
* Must be a valid GUID referencing an existing site contributor.
|
|
97
|
+
* Only one assignee can be set per contact.
|
|
98
|
+
* @format GUID
|
|
99
|
+
*/
|
|
100
|
+
assigneeId?: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* List of business location IDs associated with this contact.
|
|
103
|
+
* Used for multi-location businesses to organize contacts by physical business locations.
|
|
104
|
+
* Each ID must be a valid GUID referencing an existing business location.
|
|
105
|
+
* @format GUID
|
|
106
|
+
* @maxSize 50
|
|
107
|
+
*/
|
|
108
|
+
locationIds?: string[];
|
|
109
|
+
/** Contact's profile image. */
|
|
110
|
+
image?: Image;
|
|
111
|
+
/**
|
|
112
|
+
* Details about the origin of the contact.
|
|
113
|
+
* This field is immutable and set automatically when the contact is created.
|
|
114
|
+
* @immutable
|
|
115
|
+
*/
|
|
116
|
+
source?: ContactSource;
|
|
117
|
+
/**
|
|
118
|
+
* Details about the contact's most recent activity on the site.
|
|
119
|
+
* Includes activity date and template ID. This field is read-only and updated automatically.
|
|
120
|
+
* @readonly
|
|
121
|
+
*/
|
|
122
|
+
lastActivity?: ContactActivity;
|
|
123
|
+
/**
|
|
124
|
+
* List of Contact segment IDs that this contact belongs to.
|
|
125
|
+
* Segments are used for organizing and targeting groups of contacts.
|
|
126
|
+
* @maxSize 60
|
|
127
|
+
* @readonly
|
|
128
|
+
* @format GUID
|
|
129
|
+
*/
|
|
130
|
+
segmentIds?: string[];
|
|
131
|
+
/**
|
|
132
|
+
* Contact's site membership information including member ID, status, and profile details.
|
|
133
|
+
* This field is read-only and populated automatically when the contact is also a site member.
|
|
134
|
+
*
|
|
135
|
+
* Updates are eventually consistent: changes to the underlying member, identity, or profile are reflected after the corresponding events are processed.
|
|
136
|
+
* @readonly
|
|
137
|
+
*/
|
|
138
|
+
memberInfo?: MemberInfo;
|
|
139
|
+
/** Tags assigned to the contact for organization and filtering. */
|
|
140
|
+
tags?: PrivateTags;
|
|
141
|
+
/**
|
|
142
|
+
* Extended fields for storing custom contact data beyond the standard fields.
|
|
143
|
+
* Allows adding custom properties specific to business needs.
|
|
144
|
+
* To define a custom extended field, use the [Schema Service API](https://dev.wix.com/docs/api-reference/business-management/data-extension-schema/about-the-data-extension-schema-api) with the contacts FQDN: `wix.contacts.*.contact`.
|
|
145
|
+
*/
|
|
146
|
+
extendedFields?: ExtendedFields;
|
|
147
|
+
}
|
|
148
|
+
interface ContactName {
|
|
149
|
+
/**
|
|
150
|
+
* Contact's first name.
|
|
151
|
+
* @maxLength 1000
|
|
152
|
+
*/
|
|
153
|
+
first?: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* Contact's last name.
|
|
156
|
+
* @maxLength 1000
|
|
157
|
+
*/
|
|
158
|
+
last?: string | null;
|
|
159
|
+
}
|
|
160
|
+
interface ContactEmail {
|
|
161
|
+
/**
|
|
162
|
+
* Main email address for the contact. Used for communication and contact matching.
|
|
163
|
+
*
|
|
164
|
+
* Stored in normalized form: leading and trailing whitespace is trimmed and the address is lowercased.
|
|
165
|
+
* @format EMAIL
|
|
166
|
+
* @maxLength 320
|
|
167
|
+
*/
|
|
168
|
+
email?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Indicates the recipient's opt-in or opt-out status for marketing emails.
|
|
171
|
+
* This field is read-only and managed by the subscription system.
|
|
172
|
+
*
|
|
173
|
+
* Updates are eventually consistent, reflecting marketing consent changes after they're processed.
|
|
174
|
+
* @readonly
|
|
175
|
+
*/
|
|
176
|
+
subscriptionStatus?: ContactSubscription;
|
|
177
|
+
/**
|
|
178
|
+
* Indicates the last reported delivery status of emails sent to this address.
|
|
179
|
+
* This field is read-only and updated automatically by the email delivery system.
|
|
180
|
+
*
|
|
181
|
+
* - `NOT_SET`: No delivery status reported. Default value.
|
|
182
|
+
* - `VALID`: Emails are being successfully delivered to this address.
|
|
183
|
+
* - `BOUNCED`: The last email to this address bounced or was rejected by the recipient's email server.
|
|
184
|
+
* - `SPAM_COMPLAINT`: Recipient registered a spam complaint with their email provider.
|
|
185
|
+
* - `INACTIVE`: Multiple emails have been delivered without any engagement from the recipient.
|
|
186
|
+
* @readonly
|
|
187
|
+
*/
|
|
188
|
+
deliverabilityStatus?: EmailDeliverabilityStatusWithLiterals;
|
|
189
|
+
}
|
|
190
|
+
interface ContactSubscription {
|
|
191
|
+
/**
|
|
192
|
+
* Indicates the recipient's opt-in or opt-out status for marketing communications.
|
|
193
|
+
*
|
|
194
|
+
* - `NO_SUBSCRIPTION_STATUS`: No status exists. Used when a phone is not a valid E164 number.
|
|
195
|
+
* - `NOT_SET`: No subscription status specified. Default value.
|
|
196
|
+
* - `PENDING`: Subscription confirmation was requested, but recipient hasn't confirmed yet.
|
|
197
|
+
* - `SUBSCRIBED`: Recipient has explicitly opted in to receive marketing communications.
|
|
198
|
+
* - `UNSUBSCRIBED`: Recipient has opted out of marketing communications.
|
|
199
|
+
*/
|
|
200
|
+
status?: SubscriptionStatusWithLiterals;
|
|
201
|
+
/** Date and time when the subscription status was last updated. */
|
|
202
|
+
updatedDate?: Date | null;
|
|
203
|
+
}
|
|
204
|
+
declare enum SubscriptionStatus {
|
|
205
|
+
NO_SUBSCRIPTION_STATUS = "NO_SUBSCRIPTION_STATUS",
|
|
206
|
+
NOT_SET = "NOT_SET",
|
|
207
|
+
PENDING = "PENDING",
|
|
208
|
+
SUBSCRIBED = "SUBSCRIBED",
|
|
209
|
+
UNSUBSCRIBED = "UNSUBSCRIBED"
|
|
210
|
+
}
|
|
211
|
+
/** @enumType */
|
|
212
|
+
type SubscriptionStatusWithLiterals = SubscriptionStatus | 'NO_SUBSCRIPTION_STATUS' | 'NOT_SET' | 'PENDING' | 'SUBSCRIBED' | 'UNSUBSCRIBED';
|
|
213
|
+
declare enum EmailDeliverabilityStatus {
|
|
214
|
+
NOT_SET = "NOT_SET",
|
|
215
|
+
VALID = "VALID",
|
|
216
|
+
BOUNCED = "BOUNCED",
|
|
217
|
+
SPAM_COMPLAINT = "SPAM_COMPLAINT",
|
|
218
|
+
INACTIVE = "INACTIVE"
|
|
219
|
+
}
|
|
220
|
+
/** @enumType */
|
|
221
|
+
type EmailDeliverabilityStatusWithLiterals = EmailDeliverabilityStatus | 'NOT_SET' | 'VALID' | 'BOUNCED' | 'SPAM_COMPLAINT' | 'INACTIVE';
|
|
222
|
+
interface AdditionalEmail {
|
|
223
|
+
/**
|
|
224
|
+
* Additional email address for the contact.
|
|
225
|
+
* Does not affect subscription status or contact matching logic.
|
|
226
|
+
* @format EMAIL
|
|
227
|
+
* @maxLength 320
|
|
228
|
+
*/
|
|
229
|
+
email?: string;
|
|
230
|
+
}
|
|
231
|
+
interface ContactPhone {
|
|
232
|
+
/**
|
|
233
|
+
* Phone type classification. Helps categorize the phone number's purpose.
|
|
234
|
+
* Default value: OTHER
|
|
235
|
+
*/
|
|
236
|
+
tag?: PhoneTagWithLiterals;
|
|
237
|
+
/**
|
|
238
|
+
* Primary phone number for the contact. Used for communication and contact matching.
|
|
239
|
+
* @minLength 1
|
|
240
|
+
* @maxLength 50
|
|
241
|
+
*/
|
|
242
|
+
phone?: string;
|
|
243
|
+
/**
|
|
244
|
+
* Phone number in [ITU E.164 international](https://www.itu.int/rec/T-REC-E.164/) format (e.g., +12345550123).
|
|
245
|
+
* This field is automatically generated from the phone field if it represents a valid E.164 number.
|
|
246
|
+
* @readonly
|
|
247
|
+
* @maxLength 50
|
|
248
|
+
*/
|
|
249
|
+
e164?: string | null;
|
|
250
|
+
/**
|
|
251
|
+
* Indicates the recipient's opt-in or opt-out status for SMS/text message marketing.
|
|
252
|
+
* This field is read-only and managed by the subscription system.
|
|
253
|
+
*
|
|
254
|
+
* Updates are eventually consistent, reflecting marketing consent changes after they're processed.
|
|
255
|
+
* @readonly
|
|
256
|
+
*/
|
|
257
|
+
subscriptionStatus?: ContactSubscription;
|
|
258
|
+
/**
|
|
259
|
+
* Indicates the delivery status for SMS messages sent to this phone number.
|
|
260
|
+
* This field is read-only and updated automatically by the SMS delivery system.
|
|
261
|
+
* - `NO_PHONE_DELIVERABILITY_STATUS`: No status exists. Used when the phone is not a valid E164 number.
|
|
262
|
+
* - `NOT_SET`: No delivery status reported. Default when the phone is a valid E164 number.
|
|
263
|
+
* - `VALID`: Last message was sent and delivered successfully.
|
|
264
|
+
* - `INVALID`: The number is invalid (landline, number disconnected, etc.).
|
|
265
|
+
* @readonly
|
|
266
|
+
*/
|
|
267
|
+
deliverabilityStatus?: PhoneDeliverabilityStatusWithLiterals;
|
|
268
|
+
}
|
|
269
|
+
declare enum PhoneTag {
|
|
270
|
+
OTHER = "OTHER",
|
|
271
|
+
MAIN = "MAIN",
|
|
272
|
+
HOME = "HOME",
|
|
273
|
+
MOBILE = "MOBILE",
|
|
274
|
+
WORK = "WORK",
|
|
275
|
+
FAX = "FAX"
|
|
276
|
+
}
|
|
277
|
+
/** @enumType */
|
|
278
|
+
type PhoneTagWithLiterals = PhoneTag | 'OTHER' | 'MAIN' | 'HOME' | 'MOBILE' | 'WORK' | 'FAX';
|
|
279
|
+
declare enum PhoneDeliverabilityStatus {
|
|
280
|
+
NO_PHONE_DELIVERABILITY_STATUS = "NO_PHONE_DELIVERABILITY_STATUS",
|
|
281
|
+
NOT_SET = "NOT_SET",
|
|
282
|
+
VALID = "VALID",
|
|
283
|
+
INVALID = "INVALID"
|
|
284
|
+
}
|
|
285
|
+
/** @enumType */
|
|
286
|
+
type PhoneDeliverabilityStatusWithLiterals = PhoneDeliverabilityStatus | 'NO_PHONE_DELIVERABILITY_STATUS' | 'NOT_SET' | 'VALID' | 'INVALID';
|
|
287
|
+
interface AdditionalPhone {
|
|
288
|
+
/**
|
|
289
|
+
* Phone type classification for the additional phone number.
|
|
290
|
+
* Default value: OTHER
|
|
291
|
+
*/
|
|
292
|
+
tag?: PhoneTagWithLiterals;
|
|
293
|
+
/**
|
|
294
|
+
* Additional phone number for the contact.
|
|
295
|
+
* Does not affect subscription status or contact matching logic.
|
|
296
|
+
* @minLength 1
|
|
297
|
+
* @maxLength 50
|
|
298
|
+
*/
|
|
299
|
+
phone?: string;
|
|
300
|
+
/**
|
|
301
|
+
* Additional phone number in [ITU E.164 international](https://www.itu.int/rec/T-REC-E.164/) format (e.g., +12345550123).
|
|
302
|
+
* This field is automatically generated from the phone field if it represents a valid E.164 number.
|
|
303
|
+
* @readonly
|
|
304
|
+
* @maxLength 50
|
|
305
|
+
*/
|
|
306
|
+
e164?: string | null;
|
|
307
|
+
}
|
|
308
|
+
interface ContactAddress {
|
|
309
|
+
/**
|
|
310
|
+
* Address type classification. Helps categorize the address purpose.
|
|
311
|
+
* Default value: OTHER
|
|
312
|
+
*/
|
|
313
|
+
tag?: AddressTagWithLiterals;
|
|
314
|
+
/**
|
|
315
|
+
* Physical address information including street, city, country, and postal code.
|
|
316
|
+
* Contains structured address data following common address formatting standards.
|
|
317
|
+
*/
|
|
318
|
+
address?: Address;
|
|
319
|
+
/**
|
|
320
|
+
* Indicates whether this address is the primary/default address for the contact.
|
|
321
|
+
* Only one address can be designated as default per contact.
|
|
322
|
+
* If no address is explicitly set as default, the first address automatically becomes the default.
|
|
323
|
+
* All other addresses will have this field set to false.
|
|
324
|
+
*/
|
|
325
|
+
defaultAddress?: boolean | null;
|
|
326
|
+
/**
|
|
327
|
+
* Address ID
|
|
328
|
+
* @format GUID
|
|
329
|
+
*/
|
|
330
|
+
addressId?: string | null;
|
|
331
|
+
/** Address recipient information for delivery purposes */
|
|
332
|
+
recipient?: Recipient;
|
|
333
|
+
}
|
|
334
|
+
declare enum AddressTag {
|
|
335
|
+
OTHER = "OTHER",
|
|
336
|
+
HOME = "HOME",
|
|
337
|
+
WORK = "WORK",
|
|
338
|
+
BILLING = "BILLING",
|
|
339
|
+
SHIPPING = "SHIPPING"
|
|
340
|
+
}
|
|
341
|
+
/** @enumType */
|
|
342
|
+
type AddressTagWithLiterals = AddressTag | 'OTHER' | 'HOME' | 'WORK' | 'BILLING' | 'SHIPPING';
|
|
343
|
+
/** Physical address */
|
|
344
|
+
interface Address extends AddressStreetOneOf {
|
|
345
|
+
/** Street address object, with number and name in separate fields. */
|
|
346
|
+
streetAddress?: StreetAddress;
|
|
347
|
+
/**
|
|
348
|
+
* Main address line, usually street and number, as free text.
|
|
349
|
+
* @maxLength 1000
|
|
350
|
+
*/
|
|
351
|
+
addressLine?: string | null;
|
|
352
|
+
/**
|
|
353
|
+
* 2-letter country code in an
|
|
354
|
+
* [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
|
|
355
|
+
* @format COUNTRY
|
|
356
|
+
*/
|
|
357
|
+
country?: string | null;
|
|
358
|
+
/**
|
|
359
|
+
* Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY
|
|
360
|
+
* @format SUBDIVISION
|
|
361
|
+
*/
|
|
362
|
+
subdivision?: string | null;
|
|
363
|
+
/**
|
|
364
|
+
* City name.
|
|
365
|
+
* @maxLength 300
|
|
366
|
+
*/
|
|
367
|
+
city?: string | null;
|
|
368
|
+
/**
|
|
369
|
+
* Postal or zip code.
|
|
370
|
+
* @maxLength 100
|
|
371
|
+
*/
|
|
372
|
+
postalCode?: string | null;
|
|
373
|
+
/**
|
|
374
|
+
* Free text providing more detailed address information,
|
|
375
|
+
* such as apartment, suite, or floor.
|
|
376
|
+
* @maxLength 1000
|
|
377
|
+
*/
|
|
378
|
+
addressLine2?: string | null;
|
|
379
|
+
/**
|
|
380
|
+
* Human-readable address string.
|
|
381
|
+
* If not provided, the value is generated from the available address data.
|
|
382
|
+
* @maxLength 2000
|
|
383
|
+
*/
|
|
384
|
+
formattedAddress?: string | null;
|
|
385
|
+
/**
|
|
386
|
+
* Instructions to help someone find the address, such as landmarks or where the entrance is.
|
|
387
|
+
* @maxLength 200
|
|
388
|
+
*/
|
|
389
|
+
hint?: string | null;
|
|
390
|
+
/** Coordinates of the physical address. */
|
|
391
|
+
geocode?: AddressLocation;
|
|
392
|
+
/**
|
|
393
|
+
* Full country name.
|
|
394
|
+
* @maxLength 100
|
|
395
|
+
*/
|
|
396
|
+
countryFullname?: string | null;
|
|
397
|
+
/**
|
|
398
|
+
* Hierarchical list of subdivisions, where the first array item is the highest level of hierarchy, and so on.
|
|
399
|
+
* @maxSize 6
|
|
400
|
+
*/
|
|
401
|
+
subdivisions?: Subdivision[];
|
|
402
|
+
/**
|
|
403
|
+
* Subdivision full name.
|
|
404
|
+
* @maxLength 100
|
|
405
|
+
*/
|
|
406
|
+
subdivisionFullname?: string | null;
|
|
407
|
+
}
|
|
408
|
+
/** @oneof */
|
|
409
|
+
interface AddressStreetOneOf {
|
|
410
|
+
/** Street address object, with number and name in separate fields. */
|
|
411
|
+
streetAddress?: StreetAddress;
|
|
412
|
+
/**
|
|
413
|
+
* Main address line, usually street and number, as free text.
|
|
414
|
+
* @maxLength 1000
|
|
415
|
+
*/
|
|
416
|
+
addressLine?: string | null;
|
|
417
|
+
}
|
|
418
|
+
interface StreetAddress {
|
|
419
|
+
/**
|
|
420
|
+
* Street number.
|
|
421
|
+
* @maxLength 100
|
|
422
|
+
*/
|
|
423
|
+
number?: string;
|
|
424
|
+
/**
|
|
425
|
+
* Street name.
|
|
426
|
+
* @maxLength 300
|
|
427
|
+
*/
|
|
428
|
+
name?: string;
|
|
429
|
+
/**
|
|
430
|
+
* Apartment number.
|
|
431
|
+
* @maxLength 50
|
|
432
|
+
*/
|
|
433
|
+
apt?: string;
|
|
434
|
+
/**
|
|
435
|
+
* Optional address line 1
|
|
436
|
+
* @maxLength 2000
|
|
437
|
+
*/
|
|
438
|
+
formattedAddressLine?: string | null;
|
|
439
|
+
}
|
|
440
|
+
interface AddressLocation {
|
|
441
|
+
/**
|
|
442
|
+
* Address latitude.
|
|
443
|
+
* @min -90
|
|
444
|
+
* @max 90
|
|
445
|
+
*/
|
|
446
|
+
latitude?: number | null;
|
|
447
|
+
/**
|
|
448
|
+
* Address longitude.
|
|
449
|
+
* @min -180
|
|
450
|
+
* @max 180
|
|
451
|
+
*/
|
|
452
|
+
longitude?: number | null;
|
|
453
|
+
}
|
|
454
|
+
interface Subdivision {
|
|
455
|
+
/**
|
|
456
|
+
* subdivision short code
|
|
457
|
+
* @maxLength 20
|
|
458
|
+
*/
|
|
459
|
+
code?: string;
|
|
460
|
+
/**
|
|
461
|
+
* Full subdivision name.
|
|
462
|
+
* @maxLength 100
|
|
463
|
+
*/
|
|
464
|
+
name?: string;
|
|
465
|
+
/** Subdivision level */
|
|
466
|
+
type?: SubdivisionTypeWithLiterals;
|
|
467
|
+
/**
|
|
468
|
+
* Free text description of subdivision type.
|
|
469
|
+
* Examples: `"state"`, `"province"`, `"prefecture"`.
|
|
470
|
+
* @maxLength 100
|
|
471
|
+
*/
|
|
472
|
+
typeInfo?: string | null;
|
|
473
|
+
}
|
|
474
|
+
declare enum SubdivisionType {
|
|
475
|
+
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
476
|
+
/** State */
|
|
477
|
+
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
478
|
+
/** County */
|
|
479
|
+
ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
|
|
480
|
+
/** City/town */
|
|
481
|
+
ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
|
|
482
|
+
/** Neighborhood/quarter */
|
|
483
|
+
ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
|
|
484
|
+
/** Street/block */
|
|
485
|
+
ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
|
|
486
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
487
|
+
COUNTRY = "COUNTRY"
|
|
488
|
+
}
|
|
489
|
+
/** @enumType */
|
|
490
|
+
type SubdivisionTypeWithLiterals = SubdivisionType | 'UNKNOWN_SUBDIVISION_TYPE' | 'ADMINISTRATIVE_AREA_LEVEL_1' | 'ADMINISTRATIVE_AREA_LEVEL_2' | 'ADMINISTRATIVE_AREA_LEVEL_3' | 'ADMINISTRATIVE_AREA_LEVEL_4' | 'ADMINISTRATIVE_AREA_LEVEL_5' | 'COUNTRY';
|
|
491
|
+
/** Subdivision Concordance values */
|
|
492
|
+
interface StandardDetails {
|
|
493
|
+
/**
|
|
494
|
+
* subdivision iso-3166-2 code according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). e.g. US-NY, GB-SCT, NO-30
|
|
495
|
+
* @maxLength 20
|
|
496
|
+
*/
|
|
497
|
+
iso31662?: string | null;
|
|
498
|
+
}
|
|
499
|
+
interface Recipient {
|
|
500
|
+
/**
|
|
501
|
+
* Recipient's first name.
|
|
502
|
+
* @maxLength 1000
|
|
503
|
+
*/
|
|
504
|
+
firstName?: string | null;
|
|
505
|
+
/**
|
|
506
|
+
* Recipient's last name.
|
|
507
|
+
* @maxLength 1000
|
|
508
|
+
*/
|
|
509
|
+
lastName?: string | null;
|
|
510
|
+
/**
|
|
511
|
+
* Recipient's company name.
|
|
512
|
+
* @maxLength 1000
|
|
513
|
+
*/
|
|
514
|
+
company?: string | null;
|
|
515
|
+
/**
|
|
516
|
+
* Recipient's phone number.
|
|
517
|
+
* @minLength 1
|
|
518
|
+
* @maxLength 50
|
|
519
|
+
*/
|
|
520
|
+
phone?: string | null;
|
|
521
|
+
}
|
|
522
|
+
interface ContactCompany {
|
|
523
|
+
/**
|
|
524
|
+
* Contact's company name.
|
|
525
|
+
* @maxLength 1000
|
|
526
|
+
*/
|
|
527
|
+
name?: string | null;
|
|
528
|
+
/**
|
|
529
|
+
* Contact's job title.
|
|
530
|
+
* @maxLength 1000
|
|
531
|
+
*/
|
|
532
|
+
jobTitle?: string | null;
|
|
533
|
+
}
|
|
534
|
+
interface Image {
|
|
535
|
+
/**
|
|
536
|
+
* WixMedia image ID.
|
|
537
|
+
* @maxLength 255
|
|
538
|
+
*/
|
|
539
|
+
id?: string;
|
|
540
|
+
/**
|
|
541
|
+
* Image URL. The url is valid until the date in 'url_expiration_date'.
|
|
542
|
+
* @maxLength 2048
|
|
543
|
+
*/
|
|
544
|
+
url?: string;
|
|
545
|
+
/**
|
|
546
|
+
* Original image height.
|
|
547
|
+
* @readonly
|
|
548
|
+
*/
|
|
549
|
+
height?: number;
|
|
550
|
+
/**
|
|
551
|
+
* Original image width.
|
|
552
|
+
* @readonly
|
|
553
|
+
*/
|
|
554
|
+
width?: number;
|
|
555
|
+
/**
|
|
556
|
+
* Image alt text.
|
|
557
|
+
* @maxLength 100
|
|
558
|
+
*/
|
|
559
|
+
altText?: string | null;
|
|
560
|
+
/**
|
|
561
|
+
* Image URL expiration date (when relevant).
|
|
562
|
+
* @readonly
|
|
563
|
+
*/
|
|
564
|
+
urlExpirationDate?: Date | null;
|
|
565
|
+
/**
|
|
566
|
+
* Image size in bytes.
|
|
567
|
+
* @readonly
|
|
568
|
+
* @format DECIMAL_VALUE
|
|
569
|
+
* @decimalValue options { gte:0, maxScale:2 }
|
|
570
|
+
*/
|
|
571
|
+
sizeInBytes?: string | null;
|
|
572
|
+
}
|
|
573
|
+
interface ContactSource {
|
|
574
|
+
/**
|
|
575
|
+
* ID of the user who created this contact.
|
|
576
|
+
* @readonly
|
|
577
|
+
* @format GUID
|
|
578
|
+
* @immutable
|
|
579
|
+
*/
|
|
580
|
+
userId?: string | null;
|
|
581
|
+
/**
|
|
582
|
+
* ID of the application that created this contact.
|
|
583
|
+
* @readonly
|
|
584
|
+
* @format GUID
|
|
585
|
+
* @immutable
|
|
586
|
+
*/
|
|
587
|
+
appId?: string | null;
|
|
588
|
+
/**
|
|
589
|
+
* Additional information about the contact's origin or creation context.
|
|
590
|
+
* @maxLength 1000
|
|
591
|
+
* @immutable
|
|
592
|
+
*/
|
|
593
|
+
additionalInfo?: string | null;
|
|
594
|
+
}
|
|
595
|
+
interface ContactActivity {
|
|
596
|
+
/** Date and time when the contact's most recent activity occurred. */
|
|
597
|
+
date?: Date | null;
|
|
598
|
+
/**
|
|
599
|
+
* ID of the activity template that defines the type of activity performed.
|
|
600
|
+
* References a template in the contacts activity log system.
|
|
601
|
+
* @format GUID
|
|
602
|
+
*/
|
|
603
|
+
templateId?: string | null;
|
|
604
|
+
}
|
|
605
|
+
interface MemberInfo {
|
|
606
|
+
/**
|
|
607
|
+
* Member ID
|
|
608
|
+
* @format GUID
|
|
609
|
+
*/
|
|
610
|
+
memberId?: string | null;
|
|
611
|
+
/** Signup date */
|
|
612
|
+
signupDate?: Date | null;
|
|
613
|
+
/**
|
|
614
|
+
* Login email
|
|
615
|
+
* @format EMAIL
|
|
616
|
+
*/
|
|
617
|
+
email?: string | null;
|
|
618
|
+
/** Indicate whether the email is verified */
|
|
619
|
+
emailVerified?: boolean | null;
|
|
620
|
+
/** Indicates whether the member is required to verify their email */
|
|
621
|
+
emailVerificationRequired?: boolean | null;
|
|
622
|
+
/**
|
|
623
|
+
* Member status.
|
|
624
|
+
* - `PENDING`: Member created and is waiting for approval by site owner.
|
|
625
|
+
* - `ACTIVE`: Member can log in to the site.
|
|
626
|
+
* - `BLOCKED': Member is blocked and cannot log in to the site.
|
|
627
|
+
* - `OFFLINE`: Member is a [managed writer](https://support.wix.com/en/article/wix-blog-adding-managed-writers-to-your-blog) for the site blog and cannot log in to the site.
|
|
628
|
+
*/
|
|
629
|
+
status?: MemberStatusWithLiterals;
|
|
630
|
+
/** Profile info */
|
|
631
|
+
profileInfo?: ProfileInfo;
|
|
632
|
+
/** User info */
|
|
633
|
+
userInfo?: UserInfo;
|
|
634
|
+
/** Session info */
|
|
635
|
+
sessionInfo?: SessionInfo;
|
|
636
|
+
/** Group info */
|
|
637
|
+
groupInfo?: GroupInfo;
|
|
638
|
+
}
|
|
639
|
+
declare enum MemberStatus {
|
|
640
|
+
PENDING = "PENDING",
|
|
641
|
+
ACTIVE = "ACTIVE",
|
|
642
|
+
BLOCKED = "BLOCKED",
|
|
643
|
+
OFFLINE = "OFFLINE"
|
|
644
|
+
}
|
|
645
|
+
/** @enumType */
|
|
646
|
+
type MemberStatusWithLiterals = MemberStatus | 'PENDING' | 'ACTIVE' | 'BLOCKED' | 'OFFLINE';
|
|
647
|
+
interface ProfileInfo {
|
|
648
|
+
/**
|
|
649
|
+
* Nickname
|
|
650
|
+
* @maxLength 255
|
|
651
|
+
*/
|
|
652
|
+
nickname?: string | null;
|
|
653
|
+
/** Privacy status */
|
|
654
|
+
privacyStatus?: PrivacyStatusWithLiterals;
|
|
655
|
+
/** Indicate whether the member is reported */
|
|
656
|
+
reported?: boolean | null;
|
|
657
|
+
/** Indicate whether the member is muted */
|
|
658
|
+
muted?: boolean | null;
|
|
659
|
+
/** Profile photo */
|
|
660
|
+
photo?: Image;
|
|
661
|
+
}
|
|
662
|
+
declare enum PrivacyStatus {
|
|
663
|
+
PRIVATE = "PRIVATE",
|
|
664
|
+
PUBLIC = "PUBLIC"
|
|
665
|
+
}
|
|
666
|
+
/** @enumType */
|
|
667
|
+
type PrivacyStatusWithLiterals = PrivacyStatus | 'PRIVATE' | 'PUBLIC';
|
|
668
|
+
interface UserInfo {
|
|
669
|
+
/**
|
|
670
|
+
* User ID
|
|
671
|
+
* @format GUID
|
|
672
|
+
*/
|
|
673
|
+
userId?: string;
|
|
674
|
+
/** The user's role on the website */
|
|
675
|
+
role?: RoleWithLiterals;
|
|
676
|
+
}
|
|
677
|
+
declare enum Role {
|
|
678
|
+
OWNER = "OWNER",
|
|
679
|
+
CONTRIBUTOR = "CONTRIBUTOR",
|
|
680
|
+
MEMBER = "MEMBER"
|
|
681
|
+
}
|
|
682
|
+
/** @enumType */
|
|
683
|
+
type RoleWithLiterals = Role | 'OWNER' | 'CONTRIBUTOR' | 'MEMBER';
|
|
684
|
+
interface SessionInfo {
|
|
685
|
+
/** Last time the member logged in to the website */
|
|
686
|
+
lastWebLogin?: Date | null;
|
|
687
|
+
/** Last time the member logged in to one of the mobile apps */
|
|
688
|
+
lastMobileLogin?: Date | null;
|
|
689
|
+
/**
|
|
690
|
+
* List of mobile apps that the member has ever logged in to
|
|
691
|
+
* @maxSize 50
|
|
692
|
+
* @maxLength 50
|
|
693
|
+
*/
|
|
694
|
+
mobileAppNames?: string[];
|
|
695
|
+
}
|
|
696
|
+
interface GroupInfo {
|
|
697
|
+
/**
|
|
698
|
+
* Group IDs
|
|
699
|
+
* @format GUID
|
|
700
|
+
* @maxSize 1000
|
|
701
|
+
*/
|
|
702
|
+
groupIds?: string[];
|
|
703
|
+
}
|
|
704
|
+
interface PrivateTags {
|
|
705
|
+
/** Tags that are exposed to anyone with access to the entity. */
|
|
706
|
+
privateTags?: TagList;
|
|
707
|
+
}
|
|
708
|
+
interface TagList {
|
|
709
|
+
/**
|
|
710
|
+
* A list of tag IDs.
|
|
711
|
+
* To create a tag, use the [Tags API](https://dev.wix.com/docs/api-reference/business-management/tags/introduction) with the contacts FQDN: `wix.contacts.*.contact`.
|
|
712
|
+
* @maxSize 1000
|
|
713
|
+
* @maxLength 5
|
|
714
|
+
*/
|
|
715
|
+
tagIds?: string[];
|
|
716
|
+
}
|
|
717
|
+
interface ExtendedFields {
|
|
718
|
+
/**
|
|
719
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
720
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
721
|
+
*
|
|
722
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
723
|
+
*
|
|
724
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
725
|
+
*/
|
|
726
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* Message for reindexing search data to a given search schema. Support both upsert and delete flows as well as
|
|
730
|
+
* performs context manipulation with adding tenant, provided in message to callscope.
|
|
731
|
+
*/
|
|
732
|
+
interface ReindexMessage extends ReindexMessageActionOneOf {
|
|
733
|
+
upsert?: Upsert;
|
|
734
|
+
delete?: ReindexMessageDelete;
|
|
735
|
+
entityFqdn?: string;
|
|
736
|
+
tenantId?: string;
|
|
737
|
+
eventTime?: Date | null;
|
|
738
|
+
entityEventSequence?: string | null;
|
|
739
|
+
schema?: Schema;
|
|
740
|
+
}
|
|
741
|
+
/** @oneof */
|
|
742
|
+
interface ReindexMessageActionOneOf {
|
|
743
|
+
upsert?: Upsert;
|
|
744
|
+
delete?: ReindexMessageDelete;
|
|
745
|
+
}
|
|
746
|
+
interface Upsert {
|
|
747
|
+
entityId?: string;
|
|
748
|
+
entityAsJson?: string;
|
|
749
|
+
}
|
|
750
|
+
interface ReindexMessageDelete {
|
|
751
|
+
entityId?: string;
|
|
752
|
+
}
|
|
753
|
+
interface Schema {
|
|
754
|
+
label?: string;
|
|
755
|
+
clusterName?: string;
|
|
756
|
+
}
|
|
757
|
+
interface ContactMerged {
|
|
758
|
+
/**
|
|
759
|
+
* ID of the contact the source contacts were merged into.
|
|
760
|
+
* @format GUID
|
|
761
|
+
*/
|
|
762
|
+
targetContactId?: string;
|
|
763
|
+
/**
|
|
764
|
+
* IDs of contacts that were merged into the target contact.
|
|
765
|
+
* @format GUID
|
|
766
|
+
* @minSize 1
|
|
767
|
+
* @maxSize 5
|
|
768
|
+
*/
|
|
769
|
+
sourceContactIds?: string[];
|
|
770
|
+
/** Updated target contact. */
|
|
771
|
+
targetContact?: Contact;
|
|
772
|
+
}
|
|
773
|
+
interface ContactEmailSubscriptionUpdated {
|
|
774
|
+
/**
|
|
775
|
+
* The updated contact ID.
|
|
776
|
+
* @format GUID
|
|
777
|
+
*/
|
|
778
|
+
contactId?: string;
|
|
779
|
+
/** The revision of the contact. */
|
|
780
|
+
revision?: string | null;
|
|
781
|
+
/** The email of the contact with the updated subscription and deliverability status. */
|
|
782
|
+
email?: ContactEmail;
|
|
783
|
+
/** Date and time the contact was updated with the email subscription or deliverability status. */
|
|
784
|
+
updatedDate?: Date | null;
|
|
785
|
+
}
|
|
786
|
+
interface ContactPhoneSubscriptionUpdated {
|
|
787
|
+
/**
|
|
788
|
+
* The updated contact ID.
|
|
789
|
+
* @format GUID
|
|
790
|
+
*/
|
|
791
|
+
contactId?: string;
|
|
792
|
+
/** The revision of the contact. */
|
|
793
|
+
revision?: string | null;
|
|
794
|
+
/** The phone of the contact with the updated subscription status. */
|
|
795
|
+
phone?: ContactPhone;
|
|
796
|
+
/** Date and time the contact was updated with the SMS subscription status. */
|
|
797
|
+
updatedDate?: Date | null;
|
|
798
|
+
}
|
|
799
|
+
interface ContactImageUploaded {
|
|
800
|
+
/**
|
|
801
|
+
* The updated contact ID.
|
|
802
|
+
* @format GUID
|
|
803
|
+
*/
|
|
804
|
+
contactId?: string;
|
|
805
|
+
/** The revision of the contact. */
|
|
806
|
+
revision?: string | null;
|
|
807
|
+
/** The contact's uploaded image. */
|
|
808
|
+
image?: Image;
|
|
809
|
+
/** Date and time the contact's image was updated. */
|
|
810
|
+
updatedDate?: Date | null;
|
|
811
|
+
/**
|
|
812
|
+
* The upload ID.
|
|
813
|
+
* @format GUID
|
|
814
|
+
*/
|
|
815
|
+
uploadId?: string | null;
|
|
816
|
+
}
|
|
817
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
818
|
+
createdEvent?: EntityCreatedEvent;
|
|
819
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
820
|
+
deletedEvent?: EntityDeletedEvent;
|
|
821
|
+
actionEvent?: ActionEvent;
|
|
822
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
823
|
+
id?: string;
|
|
824
|
+
/**
|
|
825
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
826
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
827
|
+
*/
|
|
828
|
+
entityFqdn?: string;
|
|
829
|
+
/**
|
|
830
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
831
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
832
|
+
*/
|
|
833
|
+
slug?: string;
|
|
834
|
+
/** ID of the entity associated with the event. */
|
|
835
|
+
entityId?: string;
|
|
836
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
837
|
+
eventTime?: Date | null;
|
|
838
|
+
/**
|
|
839
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
840
|
+
* (for example, GDPR).
|
|
841
|
+
*/
|
|
842
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
843
|
+
/** If present, indicates the action that triggered the event. */
|
|
844
|
+
originatedFrom?: string | null;
|
|
845
|
+
/**
|
|
846
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
847
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
848
|
+
*/
|
|
849
|
+
entityEventSequence?: string | null;
|
|
850
|
+
}
|
|
851
|
+
/** @oneof */
|
|
852
|
+
interface DomainEventBodyOneOf {
|
|
853
|
+
createdEvent?: EntityCreatedEvent;
|
|
854
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
855
|
+
deletedEvent?: EntityDeletedEvent;
|
|
856
|
+
actionEvent?: ActionEvent;
|
|
857
|
+
}
|
|
858
|
+
interface EntityCreatedEvent {
|
|
859
|
+
entityAsJson?: string;
|
|
860
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
861
|
+
restoreInfo?: RestoreInfo;
|
|
862
|
+
}
|
|
863
|
+
interface RestoreInfo {
|
|
864
|
+
deletedDate?: Date | null;
|
|
865
|
+
}
|
|
866
|
+
interface EntityUpdatedEvent {
|
|
867
|
+
/**
|
|
868
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
869
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
870
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
871
|
+
*/
|
|
872
|
+
currentEntityAsJson?: string;
|
|
873
|
+
}
|
|
874
|
+
interface EntityDeletedEvent {
|
|
875
|
+
/** Entity that was deleted. */
|
|
876
|
+
deletedEntityAsJson?: string | null;
|
|
877
|
+
}
|
|
878
|
+
interface ActionEvent {
|
|
879
|
+
bodyAsJson?: string;
|
|
880
|
+
}
|
|
881
|
+
interface MessageEnvelope {
|
|
882
|
+
/**
|
|
883
|
+
* App instance ID.
|
|
884
|
+
* @format GUID
|
|
885
|
+
*/
|
|
886
|
+
instanceId?: string | null;
|
|
887
|
+
/**
|
|
888
|
+
* Event type.
|
|
889
|
+
* @maxLength 150
|
|
890
|
+
*/
|
|
891
|
+
eventType?: string;
|
|
892
|
+
/** The identification type and identity data. */
|
|
893
|
+
identity?: IdentificationData;
|
|
894
|
+
/** Stringify payload. */
|
|
895
|
+
data?: string;
|
|
896
|
+
/** Details related to the account */
|
|
897
|
+
accountInfo?: AccountInfo;
|
|
898
|
+
}
|
|
899
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
900
|
+
/**
|
|
901
|
+
* ID of a site visitor that has not logged in to the site.
|
|
902
|
+
* @format GUID
|
|
903
|
+
*/
|
|
904
|
+
anonymousVisitorId?: string;
|
|
905
|
+
/**
|
|
906
|
+
* ID of a site visitor that has logged in to the site.
|
|
907
|
+
* @format GUID
|
|
908
|
+
*/
|
|
909
|
+
memberId?: string;
|
|
910
|
+
/**
|
|
911
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
912
|
+
* @format GUID
|
|
913
|
+
*/
|
|
914
|
+
wixUserId?: string;
|
|
915
|
+
/**
|
|
916
|
+
* ID of an app.
|
|
917
|
+
* @format GUID
|
|
918
|
+
*/
|
|
919
|
+
appId?: string;
|
|
920
|
+
/** @readonly */
|
|
921
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
922
|
+
}
|
|
923
|
+
/** @oneof */
|
|
924
|
+
interface IdentificationDataIdOneOf {
|
|
925
|
+
/**
|
|
926
|
+
* ID of a site visitor that has not logged in to the site.
|
|
927
|
+
* @format GUID
|
|
928
|
+
*/
|
|
929
|
+
anonymousVisitorId?: string;
|
|
930
|
+
/**
|
|
931
|
+
* ID of a site visitor that has logged in to the site.
|
|
932
|
+
* @format GUID
|
|
933
|
+
*/
|
|
934
|
+
memberId?: string;
|
|
935
|
+
/**
|
|
936
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
937
|
+
* @format GUID
|
|
938
|
+
*/
|
|
939
|
+
wixUserId?: string;
|
|
940
|
+
/**
|
|
941
|
+
* ID of an app.
|
|
942
|
+
* @format GUID
|
|
943
|
+
*/
|
|
944
|
+
appId?: string;
|
|
945
|
+
}
|
|
946
|
+
declare enum WebhookIdentityType {
|
|
947
|
+
UNKNOWN = "UNKNOWN",
|
|
948
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
949
|
+
MEMBER = "MEMBER",
|
|
950
|
+
WIX_USER = "WIX_USER",
|
|
951
|
+
APP = "APP"
|
|
952
|
+
}
|
|
953
|
+
/** @enumType */
|
|
954
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
955
|
+
interface AccountInfo {
|
|
956
|
+
/**
|
|
957
|
+
* ID of the Wix account associated with the event.
|
|
958
|
+
* @format GUID
|
|
959
|
+
*/
|
|
960
|
+
accountId?: string | null;
|
|
961
|
+
/**
|
|
962
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
963
|
+
* @format GUID
|
|
964
|
+
*/
|
|
965
|
+
parentAccountId?: string | null;
|
|
966
|
+
/**
|
|
967
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
968
|
+
* @format GUID
|
|
969
|
+
*/
|
|
970
|
+
siteId?: string | null;
|
|
971
|
+
}
|
|
972
|
+
interface BulkUpdateContactSubscriptionsRequest {
|
|
973
|
+
/**
|
|
974
|
+
* A filter for the contacts that the subscription statuses will be applied to.
|
|
975
|
+
*
|
|
976
|
+
* Example:
|
|
977
|
+
* `{ "filter": { "name.last": "Smith" } }`
|
|
978
|
+
*/
|
|
979
|
+
filter: Record<string, any> | null;
|
|
980
|
+
/** Free text to match in searchable fields for the contacts that the subscription statuses will be applied to. */
|
|
981
|
+
search?: SearchDetails;
|
|
982
|
+
/** The subscription status to apply to the contact's email address. */
|
|
983
|
+
emailSubscriptionStatus?: V5SubscriptionStatusWithLiterals;
|
|
984
|
+
/** The subscription status to apply to the contact's phone. */
|
|
985
|
+
phoneSubscriptionStatus?: V5SubscriptionStatusWithLiterals;
|
|
986
|
+
}
|
|
987
|
+
interface SearchDetails {
|
|
988
|
+
/** Defines how separate search terms in `expression` are combined */
|
|
989
|
+
mode?: ModeWithLiterals;
|
|
990
|
+
/**
|
|
991
|
+
* Search term or expression
|
|
992
|
+
* @maxLength 100
|
|
993
|
+
*/
|
|
994
|
+
expression?: string | null;
|
|
995
|
+
/**
|
|
996
|
+
* Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path
|
|
997
|
+
* @maxLength 200
|
|
998
|
+
* @maxSize 20
|
|
999
|
+
*/
|
|
1000
|
+
fields?: string[];
|
|
1001
|
+
/** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
|
|
1002
|
+
fuzzy?: boolean;
|
|
1003
|
+
}
|
|
1004
|
+
declare enum Mode {
|
|
1005
|
+
/** Any of the search terms must be present */
|
|
1006
|
+
OR = "OR",
|
|
1007
|
+
/** All search terms must be present */
|
|
1008
|
+
AND = "AND"
|
|
1009
|
+
}
|
|
1010
|
+
/** @enumType */
|
|
1011
|
+
type ModeWithLiterals = Mode | 'OR' | 'AND';
|
|
1012
|
+
declare enum V5SubscriptionStatus {
|
|
1013
|
+
NOT_SET = "NOT_SET",
|
|
1014
|
+
SUBSCRIBED = "SUBSCRIBED",
|
|
1015
|
+
UNSUBSCRIBED = "UNSUBSCRIBED"
|
|
1016
|
+
}
|
|
1017
|
+
/** @enumType */
|
|
1018
|
+
type V5SubscriptionStatusWithLiterals = V5SubscriptionStatus | 'NOT_SET' | 'SUBSCRIBED' | 'UNSUBSCRIBED';
|
|
1019
|
+
interface BulkUpdateContactSubscriptionsResponse {
|
|
1020
|
+
/**
|
|
1021
|
+
* The ID of the bulk update contact subscription job.
|
|
1022
|
+
*
|
|
1023
|
+
* Pass this ID to Get Async Job, in the Async Jobs API, to retrieve job details and metadata.
|
|
1024
|
+
* @format GUID
|
|
1025
|
+
*/
|
|
1026
|
+
jobId?: string;
|
|
1027
|
+
}
|
|
1028
|
+
/** Message for reindexing an entity across all active schemas (for fqdn). Tenant needs to be provided in call context. */
|
|
1029
|
+
interface ReindexEntityForFQDN extends ReindexEntityForFQDNActionOneOf {
|
|
1030
|
+
/** to upsert an entity */
|
|
1031
|
+
index?: Index;
|
|
1032
|
+
/** to remove an entity */
|
|
1033
|
+
delete?: Delete;
|
|
1034
|
+
/** to report completion of reindexing */
|
|
1035
|
+
reportBatchCompleted?: ReportBatchCompleted;
|
|
1036
|
+
/** to bulk upsert entities */
|
|
1037
|
+
bulkIndex?: BulkIndex;
|
|
1038
|
+
/** to bulk delete entities */
|
|
1039
|
+
bulkDelete?: BulkDelete;
|
|
1040
|
+
/**
|
|
1041
|
+
* entity fqdn
|
|
1042
|
+
* @maxLength 256
|
|
1043
|
+
*/
|
|
1044
|
+
entityFqdn?: string;
|
|
1045
|
+
/** event time */
|
|
1046
|
+
eventTime?: Date | null;
|
|
1047
|
+
}
|
|
1048
|
+
/** @oneof */
|
|
1049
|
+
interface ReindexEntityForFQDNActionOneOf {
|
|
1050
|
+
/** to upsert an entity */
|
|
1051
|
+
index?: Index;
|
|
1052
|
+
/** to remove an entity */
|
|
1053
|
+
delete?: Delete;
|
|
1054
|
+
/** to report completion of reindexing */
|
|
1055
|
+
reportBatchCompleted?: ReportBatchCompleted;
|
|
1056
|
+
/** to bulk upsert entities */
|
|
1057
|
+
bulkIndex?: BulkIndex;
|
|
1058
|
+
/** to bulk delete entities */
|
|
1059
|
+
bulkDelete?: BulkDelete;
|
|
1060
|
+
}
|
|
1061
|
+
/** Will create or update entity in search index */
|
|
1062
|
+
interface Index {
|
|
1063
|
+
/**
|
|
1064
|
+
* entity id
|
|
1065
|
+
* @format GUID
|
|
1066
|
+
*/
|
|
1067
|
+
entityId?: string;
|
|
1068
|
+
/** entity as json string */
|
|
1069
|
+
entityAsJson?: string;
|
|
1070
|
+
/** entity sequence for versioning */
|
|
1071
|
+
entityEventSequence?: string | null;
|
|
1072
|
+
}
|
|
1073
|
+
/** Will delete entity from search index */
|
|
1074
|
+
interface Delete {
|
|
1075
|
+
/**
|
|
1076
|
+
* entity id
|
|
1077
|
+
* @format GUID
|
|
1078
|
+
*/
|
|
1079
|
+
entityId?: string;
|
|
1080
|
+
/** entity sequence for versioning */
|
|
1081
|
+
entityEventSequence?: string | null;
|
|
1082
|
+
}
|
|
1083
|
+
/** Will report completion of reindexing */
|
|
1084
|
+
interface ReportBatchCompleted {
|
|
1085
|
+
/** completion time */
|
|
1086
|
+
batchStart?: Date | null;
|
|
1087
|
+
}
|
|
1088
|
+
/** Will create or update entities in search index. Max 1000 entities per message. */
|
|
1089
|
+
interface BulkIndex {
|
|
1090
|
+
items?: Index[];
|
|
1091
|
+
}
|
|
1092
|
+
/** Will delete entities from search index. Max 1000 entities per message. */
|
|
1093
|
+
interface BulkDelete {
|
|
1094
|
+
items?: Delete[];
|
|
1095
|
+
}
|
|
1096
|
+
interface CreateContactRequest {
|
|
1097
|
+
/** Contact to be created. */
|
|
1098
|
+
contact: Contact;
|
|
1099
|
+
/**
|
|
1100
|
+
* Allows creating a duplicate contact.
|
|
1101
|
+
* More about duplicate contacts can be found [here](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts-v5/matching-contacts).
|
|
1102
|
+
*/
|
|
1103
|
+
allowDuplicates?: boolean;
|
|
1104
|
+
}
|
|
1105
|
+
interface CreateContactResponse {
|
|
1106
|
+
/** The created Contact. */
|
|
1107
|
+
contact?: Contact;
|
|
1108
|
+
/**
|
|
1109
|
+
* The upload ID of the image upload process.
|
|
1110
|
+
* @maxLength 100
|
|
1111
|
+
*/
|
|
1112
|
+
imageUploadId?: string | null;
|
|
1113
|
+
}
|
|
1114
|
+
interface DuplicateContactExists {
|
|
1115
|
+
/**
|
|
1116
|
+
* The ID of an existing contact that matches a duplicate in the request.
|
|
1117
|
+
* @format GUID
|
|
1118
|
+
*/
|
|
1119
|
+
matchingContactId?: string | null;
|
|
1120
|
+
/** The field(s) of an existing contact that match a duplicate in the request. */
|
|
1121
|
+
matchType?: MatchTypeWithLiterals;
|
|
1122
|
+
}
|
|
1123
|
+
declare enum MatchType {
|
|
1124
|
+
EMAIL = "EMAIL",
|
|
1125
|
+
PHONE = "PHONE",
|
|
1126
|
+
EXTERNAL_ID = "EXTERNAL_ID",
|
|
1127
|
+
EMAIL_AND_PHONE = "EMAIL_AND_PHONE"
|
|
1128
|
+
}
|
|
1129
|
+
/** @enumType */
|
|
1130
|
+
type MatchTypeWithLiterals = MatchType | 'EMAIL' | 'PHONE' | 'EXTERNAL_ID' | 'EMAIL_AND_PHONE';
|
|
1131
|
+
interface GetContactRequest {
|
|
1132
|
+
/**
|
|
1133
|
+
* ID of the Contact to retrieve.
|
|
1134
|
+
* @format GUID
|
|
1135
|
+
*/
|
|
1136
|
+
contactId: string;
|
|
1137
|
+
}
|
|
1138
|
+
interface GetContactResponse {
|
|
1139
|
+
/** The requested Contact. */
|
|
1140
|
+
contact?: Contact;
|
|
1141
|
+
}
|
|
1142
|
+
interface UpdateContactRequest {
|
|
1143
|
+
/** Contact to be updated, may be partial. */
|
|
1144
|
+
contact: Contact;
|
|
1145
|
+
/**
|
|
1146
|
+
* Allows updating the contact even if it becomes a duplicate of another contact.
|
|
1147
|
+
* More about duplicate contacts can be found [here](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts-v5/matching-contacts).
|
|
1148
|
+
*/
|
|
1149
|
+
allowDuplicates?: boolean;
|
|
1150
|
+
}
|
|
1151
|
+
interface UpdateContactResponse {
|
|
1152
|
+
/** Updated Contact. */
|
|
1153
|
+
contact?: Contact;
|
|
1154
|
+
/**
|
|
1155
|
+
* The upload ID of the image upload process.
|
|
1156
|
+
* @maxLength 100
|
|
1157
|
+
*/
|
|
1158
|
+
imageUploadId?: string | null;
|
|
1159
|
+
}
|
|
1160
|
+
interface UpsertContactRequest {
|
|
1161
|
+
/** Contact to be upserted. */
|
|
1162
|
+
contact: Contact;
|
|
1163
|
+
/** The mode in which the upsert should work in. */
|
|
1164
|
+
upsertMode?: UpsertModeWithLiterals;
|
|
1165
|
+
/** Indicates whether to update the contact even if it is a site member. */
|
|
1166
|
+
updateMember?: boolean | null;
|
|
1167
|
+
}
|
|
1168
|
+
declare enum UpsertMode {
|
|
1169
|
+
/** Fields will be overwritten (default). */
|
|
1170
|
+
OVERWRITE = "OVERWRITE",
|
|
1171
|
+
/** Fields will be appended. Non-array fields will be set only if it does not have an existing value. */
|
|
1172
|
+
APPEND = "APPEND",
|
|
1173
|
+
/** Array fields, will be appended. Non-array fields will be overwritten. */
|
|
1174
|
+
OVERWRITE_APPEND_ARRAYS = "OVERWRITE_APPEND_ARRAYS"
|
|
1175
|
+
}
|
|
1176
|
+
/** @enumType */
|
|
1177
|
+
type UpsertModeWithLiterals = UpsertMode | 'OVERWRITE' | 'APPEND' | 'OVERWRITE_APPEND_ARRAYS';
|
|
1178
|
+
interface UpsertContactResponse {
|
|
1179
|
+
/** Upserted contact. */
|
|
1180
|
+
contact?: Contact;
|
|
1181
|
+
/** The action performed on the contact. */
|
|
1182
|
+
action?: UpsertContactResponseActionWithLiterals;
|
|
1183
|
+
/**
|
|
1184
|
+
* The upload ID of the image upload process.
|
|
1185
|
+
* @maxLength 100
|
|
1186
|
+
*/
|
|
1187
|
+
imageUploadId?: string | null;
|
|
1188
|
+
}
|
|
1189
|
+
declare enum UpsertContactResponseAction {
|
|
1190
|
+
UPDATED = "UPDATED",
|
|
1191
|
+
CREATED = "CREATED"
|
|
1192
|
+
}
|
|
1193
|
+
/** @enumType */
|
|
1194
|
+
type UpsertContactResponseActionWithLiterals = UpsertContactResponseAction | 'UPDATED' | 'CREATED';
|
|
1195
|
+
interface FailedMemberUpdate {
|
|
1196
|
+
/**
|
|
1197
|
+
* Contact ID.
|
|
1198
|
+
* @format GUID
|
|
1199
|
+
*/
|
|
1200
|
+
contactId?: string | null;
|
|
1201
|
+
}
|
|
1202
|
+
interface UpdateContactTagsRequest {
|
|
1203
|
+
/**
|
|
1204
|
+
* The contact from which to add or remove tags.
|
|
1205
|
+
* @format GUID
|
|
1206
|
+
*/
|
|
1207
|
+
contactId: string;
|
|
1208
|
+
/** The tags to add. */
|
|
1209
|
+
assignTags?: PrivateTags;
|
|
1210
|
+
/** The tags to remove. */
|
|
1211
|
+
unassignTags?: PrivateTags;
|
|
1212
|
+
}
|
|
1213
|
+
interface UpdateContactTagsResponse {
|
|
1214
|
+
/** Updated Contact. */
|
|
1215
|
+
contact?: Contact;
|
|
1216
|
+
}
|
|
1217
|
+
interface MergeContactsRequest {
|
|
1218
|
+
/**
|
|
1219
|
+
* Target contact ID.
|
|
1220
|
+
* @format GUID
|
|
1221
|
+
*/
|
|
1222
|
+
targetContactId: string;
|
|
1223
|
+
/** Target contact revision number, which increments by 1 each time the contact is updated to prevent conflicting changes. */
|
|
1224
|
+
targetContactRevision: string | null;
|
|
1225
|
+
/** When the target contact is provided, the merged result will be overwritten. */
|
|
1226
|
+
targetContact?: Contact;
|
|
1227
|
+
/**
|
|
1228
|
+
* IDs of up to 5 contacts to merge into the target contact.
|
|
1229
|
+
* If merging more than one source contact,
|
|
1230
|
+
* the first source is given precedence, then the second, and so on.
|
|
1231
|
+
* @minSize 1
|
|
1232
|
+
* @maxSize 5
|
|
1233
|
+
* @format GUID
|
|
1234
|
+
*/
|
|
1235
|
+
sourceContactIds?: string[];
|
|
1236
|
+
/** Indicates whether to only return a preview of the merged contact or perform the actual merge. */
|
|
1237
|
+
preview?: boolean | null;
|
|
1238
|
+
/**
|
|
1239
|
+
* Allows updating the target contact even if it becomes a duplicate of another contact.
|
|
1240
|
+
* This can happen only where the target contact is provided.
|
|
1241
|
+
* More about duplicate contacts can be found [here](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts-v5/matching-contacts).
|
|
1242
|
+
*/
|
|
1243
|
+
allowDuplicates?: boolean;
|
|
1244
|
+
}
|
|
1245
|
+
interface MergeContactsResponse {
|
|
1246
|
+
/** Updated target contact. */
|
|
1247
|
+
contact?: Contact;
|
|
1248
|
+
}
|
|
1249
|
+
interface DeleteContactRequest {
|
|
1250
|
+
/**
|
|
1251
|
+
* Id of the Contact to delete.
|
|
1252
|
+
* @format GUID
|
|
1253
|
+
*/
|
|
1254
|
+
contactId: string;
|
|
1255
|
+
/**
|
|
1256
|
+
* Indicates whether to delete the contact that is a site member. If set to `true`, the contact is deleted even
|
|
1257
|
+
* if it is a site member and the site member is also deleted. Default: `false`
|
|
1258
|
+
*/
|
|
1259
|
+
deleteMember?: boolean | null;
|
|
1260
|
+
}
|
|
1261
|
+
interface DeleteContactResponse {
|
|
1262
|
+
}
|
|
1263
|
+
interface FindMatchingContactsRequest {
|
|
1264
|
+
/**
|
|
1265
|
+
* Contact External ID.
|
|
1266
|
+
* @maxLength 100
|
|
1267
|
+
*/
|
|
1268
|
+
externalId?: string | null;
|
|
1269
|
+
/**
|
|
1270
|
+
* Email address.
|
|
1271
|
+
* @format EMAIL
|
|
1272
|
+
* @maxLength 320
|
|
1273
|
+
*/
|
|
1274
|
+
email?: string | null;
|
|
1275
|
+
/**
|
|
1276
|
+
* Phone number.
|
|
1277
|
+
* @minLength 1
|
|
1278
|
+
* @maxLength 50
|
|
1279
|
+
*/
|
|
1280
|
+
phone?: string | null;
|
|
1281
|
+
}
|
|
1282
|
+
interface FindMatchingContactsResponse {
|
|
1283
|
+
/** List of Contacts. At most 100 contacts are returned. */
|
|
1284
|
+
contacts?: Contact[];
|
|
1285
|
+
}
|
|
1286
|
+
interface QueryContactsRequest {
|
|
1287
|
+
/** WQL expression. */
|
|
1288
|
+
query?: CursorQuery;
|
|
1289
|
+
}
|
|
1290
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
1291
|
+
/**
|
|
1292
|
+
* Cursor paging options.
|
|
1293
|
+
*
|
|
1294
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1295
|
+
*/
|
|
1296
|
+
cursorPaging?: CursorPaging;
|
|
1297
|
+
/**
|
|
1298
|
+
* Filter object.
|
|
1299
|
+
*
|
|
1300
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
1301
|
+
*/
|
|
1302
|
+
filter?: Record<string, any> | null;
|
|
1303
|
+
/**
|
|
1304
|
+
* Sort object.
|
|
1305
|
+
*
|
|
1306
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1307
|
+
* @maxSize 5
|
|
1308
|
+
*/
|
|
1309
|
+
sort?: Sorting[];
|
|
1310
|
+
}
|
|
1311
|
+
/** @oneof */
|
|
1312
|
+
interface CursorQueryPagingMethodOneOf {
|
|
1313
|
+
/**
|
|
1314
|
+
* Cursor paging options.
|
|
1315
|
+
*
|
|
1316
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1317
|
+
*/
|
|
1318
|
+
cursorPaging?: CursorPaging;
|
|
1319
|
+
}
|
|
1320
|
+
interface Sorting {
|
|
1321
|
+
/**
|
|
1322
|
+
* Name of the field to sort by.
|
|
1323
|
+
* @maxLength 512
|
|
1324
|
+
*/
|
|
1325
|
+
fieldName?: string;
|
|
1326
|
+
/** Sort order. */
|
|
1327
|
+
order?: SortOrderWithLiterals;
|
|
1328
|
+
}
|
|
1329
|
+
declare enum SortOrder {
|
|
1330
|
+
ASC = "ASC",
|
|
1331
|
+
DESC = "DESC"
|
|
1332
|
+
}
|
|
1333
|
+
/** @enumType */
|
|
1334
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
1335
|
+
interface CursorPaging {
|
|
1336
|
+
/**
|
|
1337
|
+
* Maximum number of items to return in the results.
|
|
1338
|
+
* @max 100
|
|
1339
|
+
*/
|
|
1340
|
+
limit?: number | null;
|
|
1341
|
+
/**
|
|
1342
|
+
* Pointer to the next or previous page in the list of results.
|
|
1343
|
+
*
|
|
1344
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1345
|
+
* Not relevant for the first request.
|
|
1346
|
+
* @maxLength 16000
|
|
1347
|
+
*/
|
|
1348
|
+
cursor?: string | null;
|
|
1349
|
+
}
|
|
1350
|
+
interface QueryContactsResponse {
|
|
1351
|
+
/** List of Contacts. */
|
|
1352
|
+
contacts?: Contact[];
|
|
1353
|
+
/** Paging metadata */
|
|
1354
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
1355
|
+
}
|
|
1356
|
+
interface CursorPagingMetadata {
|
|
1357
|
+
/** Number of items returned in current page. */
|
|
1358
|
+
count?: number | null;
|
|
1359
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
1360
|
+
cursors?: Cursors;
|
|
1361
|
+
/**
|
|
1362
|
+
* Whether there are more pages to retrieve following the current page.
|
|
1363
|
+
*
|
|
1364
|
+
* + `true`: Another page of results can be retrieved.
|
|
1365
|
+
* + `false`: This is the last page.
|
|
1366
|
+
*/
|
|
1367
|
+
hasNext?: boolean | null;
|
|
1368
|
+
/**
|
|
1369
|
+
* Total number of items matching the filter.
|
|
1370
|
+
* Available only on the first page of *Search* results, not included in *Query* or *List* results.
|
|
1371
|
+
* If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.
|
|
1372
|
+
*/
|
|
1373
|
+
total?: number | null;
|
|
1374
|
+
}
|
|
1375
|
+
interface Cursors {
|
|
1376
|
+
/**
|
|
1377
|
+
* Cursor string pointing to the next page in the list of results.
|
|
1378
|
+
* @maxLength 16000
|
|
1379
|
+
*/
|
|
1380
|
+
next?: string | null;
|
|
1381
|
+
/**
|
|
1382
|
+
* Cursor pointing to the previous page in the list of results.
|
|
1383
|
+
* @maxLength 16000
|
|
1384
|
+
*/
|
|
1385
|
+
prev?: string | null;
|
|
1386
|
+
}
|
|
1387
|
+
interface SearchContactsRequest {
|
|
1388
|
+
/** WQL search expression */
|
|
1389
|
+
search?: CursorSearch;
|
|
1390
|
+
/**
|
|
1391
|
+
* Name Format for sorting and searching.
|
|
1392
|
+
* When sorting by `displayName`, the returned contacts are ordered by first and last names, by default.
|
|
1393
|
+
* Alternatively, when sorting by `displayName` with `BY_LAST_NAME`, the returned contacts are ordered by last and first names.
|
|
1394
|
+
* For contacts that do not have names, sorting is by email or phone.
|
|
1395
|
+
* When searching by `name.full`, the contacts returned are matched and ordered by first and last names.
|
|
1396
|
+
* Alternatively, when searching by `name.full` with `BY_LAST_NAME`, the contacts returned
|
|
1397
|
+
* are matched and ordered by last and first names.
|
|
1398
|
+
*/
|
|
1399
|
+
nameFormat?: NameFormatWithLiterals;
|
|
1400
|
+
}
|
|
1401
|
+
interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
1402
|
+
/**
|
|
1403
|
+
* Cursor paging options.
|
|
1404
|
+
*
|
|
1405
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1406
|
+
*/
|
|
1407
|
+
cursorPaging?: CursorPaging;
|
|
1408
|
+
/**
|
|
1409
|
+
* Filter object.
|
|
1410
|
+
*
|
|
1411
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
1412
|
+
*/
|
|
1413
|
+
filter?: Record<string, any> | null;
|
|
1414
|
+
/**
|
|
1415
|
+
* List of sort objects.
|
|
1416
|
+
*
|
|
1417
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1418
|
+
* @maxSize 10
|
|
1419
|
+
*/
|
|
1420
|
+
sort?: Sorting[];
|
|
1421
|
+
/**
|
|
1422
|
+
* Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
|
|
1423
|
+
* @maxSize 10
|
|
1424
|
+
*/
|
|
1425
|
+
aggregations?: Aggregation[];
|
|
1426
|
+
/** Free text to match in searchable fields. */
|
|
1427
|
+
search?: SearchDetails;
|
|
1428
|
+
/**
|
|
1429
|
+
* UTC offset or IANA time zone. Valid values are
|
|
1430
|
+
* ISO 8601 UTC offsets, such as +02:00 or -06:00,
|
|
1431
|
+
* and IANA time zone IDs, such as Europe/Rome
|
|
1432
|
+
*
|
|
1433
|
+
* Affects all filters and aggregations returned values.
|
|
1434
|
+
* You may override this behavior in a specific filter by providing
|
|
1435
|
+
* timestamps including time zone. e.g. `"2023-12-20T10:52:34.795Z"`
|
|
1436
|
+
* @maxLength 50
|
|
1437
|
+
*/
|
|
1438
|
+
timeZone?: string | null;
|
|
1439
|
+
}
|
|
1440
|
+
/** @oneof */
|
|
1441
|
+
interface CursorSearchPagingMethodOneOf {
|
|
1442
|
+
/**
|
|
1443
|
+
* Cursor paging options.
|
|
1444
|
+
*
|
|
1445
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1446
|
+
*/
|
|
1447
|
+
cursorPaging?: CursorPaging;
|
|
1448
|
+
}
|
|
1449
|
+
interface Aggregation extends AggregationKindOneOf {
|
|
1450
|
+
/** Value aggregation */
|
|
1451
|
+
value?: ValueAggregation;
|
|
1452
|
+
/** Range aggregation */
|
|
1453
|
+
range?: RangeAggregation;
|
|
1454
|
+
/** Scalar aggregation */
|
|
1455
|
+
scalar?: ScalarAggregation;
|
|
1456
|
+
/** Date histogram aggregation */
|
|
1457
|
+
dateHistogram?: DateHistogramAggregation;
|
|
1458
|
+
/** Nested aggregation */
|
|
1459
|
+
nested?: NestedAggregation;
|
|
1460
|
+
/**
|
|
1461
|
+
* User-defined name of aggregation, should be unique, will appear in aggregation results
|
|
1462
|
+
* @maxLength 100
|
|
1463
|
+
*/
|
|
1464
|
+
name?: string | null;
|
|
1465
|
+
/** Type of aggregation, client must provide matching aggregation field below */
|
|
1466
|
+
type?: AggregationTypeWithLiterals;
|
|
1467
|
+
/**
|
|
1468
|
+
* Field to aggregate by, use dot notation to specify json path
|
|
1469
|
+
* @maxLength 200
|
|
1470
|
+
*/
|
|
1471
|
+
fieldPath?: string;
|
|
1472
|
+
}
|
|
1473
|
+
/** @oneof */
|
|
1474
|
+
interface AggregationKindOneOf {
|
|
1475
|
+
/** Value aggregation */
|
|
1476
|
+
value?: ValueAggregation;
|
|
1477
|
+
/** Range aggregation */
|
|
1478
|
+
range?: RangeAggregation;
|
|
1479
|
+
/** Scalar aggregation */
|
|
1480
|
+
scalar?: ScalarAggregation;
|
|
1481
|
+
/** Date histogram aggregation */
|
|
1482
|
+
dateHistogram?: DateHistogramAggregation;
|
|
1483
|
+
/** Nested aggregation */
|
|
1484
|
+
nested?: NestedAggregation;
|
|
1485
|
+
}
|
|
1486
|
+
interface RangeBucket {
|
|
1487
|
+
/** Inclusive lower bound of the range. Required if to is not given */
|
|
1488
|
+
from?: number | null;
|
|
1489
|
+
/** Exclusive upper bound of the range. Required if from is not given */
|
|
1490
|
+
to?: number | null;
|
|
1491
|
+
}
|
|
1492
|
+
declare enum SortType {
|
|
1493
|
+
/** Should sort by number of matches */
|
|
1494
|
+
COUNT = "COUNT",
|
|
1495
|
+
/** Should sort by value of the field alphabetically */
|
|
1496
|
+
VALUE = "VALUE"
|
|
1497
|
+
}
|
|
1498
|
+
/** @enumType */
|
|
1499
|
+
type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';
|
|
1500
|
+
declare enum SortDirection {
|
|
1501
|
+
/** Should sort in descending order */
|
|
1502
|
+
DESC = "DESC",
|
|
1503
|
+
/** Should sort in ascending order */
|
|
1504
|
+
ASC = "ASC"
|
|
1505
|
+
}
|
|
1506
|
+
/** @enumType */
|
|
1507
|
+
type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';
|
|
1508
|
+
declare enum MissingValues {
|
|
1509
|
+
/** Should missing values be excluded from the aggregation results */
|
|
1510
|
+
EXCLUDE = "EXCLUDE",
|
|
1511
|
+
/** Should missing values be included in the aggregation results */
|
|
1512
|
+
INCLUDE = "INCLUDE"
|
|
1513
|
+
}
|
|
1514
|
+
/** @enumType */
|
|
1515
|
+
type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';
|
|
1516
|
+
interface IncludeMissingValuesOptions {
|
|
1517
|
+
/**
|
|
1518
|
+
* Can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ...
|
|
1519
|
+
* @maxLength 20
|
|
1520
|
+
*/
|
|
1521
|
+
addToBucket?: string;
|
|
1522
|
+
}
|
|
1523
|
+
declare enum ScalarType {
|
|
1524
|
+
/** Count of distinct values */
|
|
1525
|
+
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
1526
|
+
/** Minimum value */
|
|
1527
|
+
MIN = "MIN",
|
|
1528
|
+
/** Maximum value */
|
|
1529
|
+
MAX = "MAX"
|
|
1530
|
+
}
|
|
1531
|
+
/** @enumType */
|
|
1532
|
+
type ScalarTypeWithLiterals = ScalarType | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
|
|
1533
|
+
declare enum NestedAggregationType {
|
|
1534
|
+
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
1535
|
+
VALUE = "VALUE",
|
|
1536
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket */
|
|
1537
|
+
RANGE = "RANGE",
|
|
1538
|
+
/** A single-value metric aggregation - e.g. min, max, sum, avg */
|
|
1539
|
+
SCALAR = "SCALAR",
|
|
1540
|
+
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
1541
|
+
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
1542
|
+
}
|
|
1543
|
+
/** @enumType */
|
|
1544
|
+
type NestedAggregationTypeWithLiterals = NestedAggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM';
|
|
1545
|
+
interface ValueAggregation extends ValueAggregationOptionsOneOf {
|
|
1546
|
+
/** Options for including missing values */
|
|
1547
|
+
includeOptions?: IncludeMissingValuesOptions;
|
|
1548
|
+
/** Should sort by number of matches or value of the field */
|
|
1549
|
+
sortType?: SortTypeWithLiterals;
|
|
1550
|
+
/** Should sort in ascending or descending order */
|
|
1551
|
+
sortDirection?: SortDirectionWithLiterals;
|
|
1552
|
+
/** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
|
|
1553
|
+
limit?: number | null;
|
|
1554
|
+
/** Should missing values be included or excluded from the aggregation results. Default is EXCLUDE */
|
|
1555
|
+
missingValues?: MissingValuesWithLiterals;
|
|
1556
|
+
}
|
|
1557
|
+
/** @oneof */
|
|
1558
|
+
interface ValueAggregationOptionsOneOf {
|
|
1559
|
+
/** Options for including missing values */
|
|
1560
|
+
includeOptions?: IncludeMissingValuesOptions;
|
|
1561
|
+
}
|
|
1562
|
+
interface RangeAggregation {
|
|
1563
|
+
/**
|
|
1564
|
+
* List of range buckets, where during aggregation each entity will be placed in the first bucket where its value falls into based on provided range bounds
|
|
1565
|
+
* @maxSize 50
|
|
1566
|
+
*/
|
|
1567
|
+
buckets?: RangeBucket[];
|
|
1568
|
+
}
|
|
1569
|
+
interface ScalarAggregation {
|
|
1570
|
+
/** Define the operator for the scalar aggregation */
|
|
1571
|
+
type?: ScalarTypeWithLiterals;
|
|
1572
|
+
}
|
|
1573
|
+
interface DateHistogramAggregation {
|
|
1574
|
+
/** Interval for date histogram aggregation */
|
|
1575
|
+
interval?: IntervalWithLiterals;
|
|
1576
|
+
}
|
|
1577
|
+
declare enum Interval {
|
|
1578
|
+
/** Yearly interval */
|
|
1579
|
+
YEAR = "YEAR",
|
|
1580
|
+
/** Monthly interval */
|
|
1581
|
+
MONTH = "MONTH",
|
|
1582
|
+
/** Weekly interval */
|
|
1583
|
+
WEEK = "WEEK",
|
|
1584
|
+
/** Daily interval */
|
|
1585
|
+
DAY = "DAY",
|
|
1586
|
+
/** Hourly interval */
|
|
1587
|
+
HOUR = "HOUR",
|
|
1588
|
+
/** Minute interval */
|
|
1589
|
+
MINUTE = "MINUTE",
|
|
1590
|
+
/** Second interval */
|
|
1591
|
+
SECOND = "SECOND"
|
|
1592
|
+
}
|
|
1593
|
+
/** @enumType */
|
|
1594
|
+
type IntervalWithLiterals = Interval | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
|
|
1595
|
+
interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
1596
|
+
/** Value aggregation */
|
|
1597
|
+
value?: ValueAggregation;
|
|
1598
|
+
/** Range aggregation */
|
|
1599
|
+
range?: RangeAggregation;
|
|
1600
|
+
/** Scalar aggregation */
|
|
1601
|
+
scalar?: ScalarAggregation;
|
|
1602
|
+
/** Date histogram aggregation */
|
|
1603
|
+
dateHistogram?: DateHistogramAggregation;
|
|
1604
|
+
/**
|
|
1605
|
+
* User-defined name of aggregation, should be unique, will appear in aggregation results
|
|
1606
|
+
* @maxLength 100
|
|
1607
|
+
*/
|
|
1608
|
+
name?: string | null;
|
|
1609
|
+
/** Type of aggregation, client must provide matching aggregation field below */
|
|
1610
|
+
type?: NestedAggregationTypeWithLiterals;
|
|
1611
|
+
/**
|
|
1612
|
+
* Field to aggregate by, use dont notation to specify json path
|
|
1613
|
+
* @maxLength 200
|
|
1614
|
+
*/
|
|
1615
|
+
fieldPath?: string;
|
|
1616
|
+
}
|
|
1617
|
+
/** @oneof */
|
|
1618
|
+
interface NestedAggregationItemKindOneOf {
|
|
1619
|
+
/** Value aggregation */
|
|
1620
|
+
value?: ValueAggregation;
|
|
1621
|
+
/** Range aggregation */
|
|
1622
|
+
range?: RangeAggregation;
|
|
1623
|
+
/** Scalar aggregation */
|
|
1624
|
+
scalar?: ScalarAggregation;
|
|
1625
|
+
/** Date histogram aggregation */
|
|
1626
|
+
dateHistogram?: DateHistogramAggregation;
|
|
1627
|
+
}
|
|
1628
|
+
declare enum AggregationType {
|
|
1629
|
+
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
1630
|
+
VALUE = "VALUE",
|
|
1631
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket */
|
|
1632
|
+
RANGE = "RANGE",
|
|
1633
|
+
/** A single-value metric aggregation - e.g. min, max, sum, avg */
|
|
1634
|
+
SCALAR = "SCALAR",
|
|
1635
|
+
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
1636
|
+
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
1637
|
+
/** Multi-level aggregation, where each next aggregation is nested within previous one */
|
|
1638
|
+
NESTED = "NESTED"
|
|
1639
|
+
}
|
|
1640
|
+
/** @enumType */
|
|
1641
|
+
type AggregationTypeWithLiterals = AggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
|
|
1642
|
+
/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
|
|
1643
|
+
interface NestedAggregation {
|
|
1644
|
+
/**
|
|
1645
|
+
* Flattened list of aggregations, where each next aggregation is nested within previous one
|
|
1646
|
+
* @minSize 2
|
|
1647
|
+
* @maxSize 3
|
|
1648
|
+
*/
|
|
1649
|
+
nestedAggregations?: NestedAggregationItem[];
|
|
1650
|
+
}
|
|
1651
|
+
/** Name format types for sorting and searching. */
|
|
1652
|
+
declare enum NameFormat {
|
|
1653
|
+
/** Names will be formatted starting with the first name followed by the last name. */
|
|
1654
|
+
BY_FIRST_NAME = "BY_FIRST_NAME",
|
|
1655
|
+
/** Names will be formatted starting with the last name followed by the first name. */
|
|
1656
|
+
BY_LAST_NAME = "BY_LAST_NAME"
|
|
1657
|
+
}
|
|
1658
|
+
/** @enumType */
|
|
1659
|
+
type NameFormatWithLiterals = NameFormat | 'BY_FIRST_NAME' | 'BY_LAST_NAME';
|
|
1660
|
+
interface SearchContactsResponse {
|
|
1661
|
+
/** List of Contacts. */
|
|
1662
|
+
contacts?: Contact[];
|
|
1663
|
+
/** Paging metadata */
|
|
1664
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
1665
|
+
/** Aggregation data */
|
|
1666
|
+
aggregationData?: AggregationData;
|
|
1667
|
+
}
|
|
1668
|
+
interface AggregationData {
|
|
1669
|
+
/**
|
|
1670
|
+
* key = aggregation name (as derived from search request)
|
|
1671
|
+
* @maxSize 10000
|
|
1672
|
+
*/
|
|
1673
|
+
results?: AggregationResults[];
|
|
1674
|
+
}
|
|
1675
|
+
interface ValueAggregationResult {
|
|
1676
|
+
/**
|
|
1677
|
+
* Value of the field
|
|
1678
|
+
* @maxLength 100
|
|
1679
|
+
*/
|
|
1680
|
+
value?: string;
|
|
1681
|
+
/** Count of entities with this value */
|
|
1682
|
+
count?: number;
|
|
1683
|
+
}
|
|
1684
|
+
interface RangeAggregationResult {
|
|
1685
|
+
/** Inclusive lower bound of the range */
|
|
1686
|
+
from?: number | null;
|
|
1687
|
+
/** Exclusive upper bound of the range */
|
|
1688
|
+
to?: number | null;
|
|
1689
|
+
/** Count of entities in this range */
|
|
1690
|
+
count?: number;
|
|
1691
|
+
}
|
|
1692
|
+
interface ValueResults {
|
|
1693
|
+
/**
|
|
1694
|
+
* List of value aggregations
|
|
1695
|
+
* @maxSize 250
|
|
1696
|
+
*/
|
|
1697
|
+
results?: ValueAggregationResult[];
|
|
1698
|
+
}
|
|
1699
|
+
interface RangeResults {
|
|
1700
|
+
/**
|
|
1701
|
+
* List of ranges returned in same order as requested
|
|
1702
|
+
* @maxSize 50
|
|
1703
|
+
*/
|
|
1704
|
+
results?: RangeAggregationResult[];
|
|
1705
|
+
}
|
|
1706
|
+
interface AggregationResultsScalarResult {
|
|
1707
|
+
/** Type of scalar aggregation */
|
|
1708
|
+
type?: ScalarTypeWithLiterals;
|
|
1709
|
+
/** Value of the scalar aggregation */
|
|
1710
|
+
value?: number;
|
|
1711
|
+
}
|
|
1712
|
+
interface ValueResult {
|
|
1713
|
+
/**
|
|
1714
|
+
* Value of the field
|
|
1715
|
+
* @maxLength 1000
|
|
1716
|
+
*/
|
|
1717
|
+
value?: string;
|
|
1718
|
+
/** Count of entities with this value */
|
|
1719
|
+
count?: number | null;
|
|
1720
|
+
}
|
|
1721
|
+
interface RangeResult {
|
|
1722
|
+
/** Inclusive lower bound of the range */
|
|
1723
|
+
from?: number | null;
|
|
1724
|
+
/** Exclusive upper bound of the range */
|
|
1725
|
+
to?: number | null;
|
|
1726
|
+
/** Count of entities in this range */
|
|
1727
|
+
count?: number | null;
|
|
1728
|
+
}
|
|
1729
|
+
interface ScalarResult {
|
|
1730
|
+
/** Value of the scalar aggregation */
|
|
1731
|
+
value?: number;
|
|
1732
|
+
}
|
|
1733
|
+
interface NestedResultValue extends NestedResultValueResultOneOf {
|
|
1734
|
+
/** Value aggregation result */
|
|
1735
|
+
value?: ValueResult;
|
|
1736
|
+
/** Range aggregation result */
|
|
1737
|
+
range?: RangeResult;
|
|
1738
|
+
/** Scalar aggregation result */
|
|
1739
|
+
scalar?: ScalarResult;
|
|
1740
|
+
/** Date histogram aggregation result */
|
|
1741
|
+
dateHistogram?: ValueResult;
|
|
1742
|
+
}
|
|
1743
|
+
/** @oneof */
|
|
1744
|
+
interface NestedResultValueResultOneOf {
|
|
1745
|
+
/** Value aggregation result */
|
|
1746
|
+
value?: ValueResult;
|
|
1747
|
+
/** Range aggregation result */
|
|
1748
|
+
range?: RangeResult;
|
|
1749
|
+
/** Scalar aggregation result */
|
|
1750
|
+
scalar?: ScalarResult;
|
|
1751
|
+
/** Date histogram aggregation result */
|
|
1752
|
+
dateHistogram?: ValueResult;
|
|
1753
|
+
}
|
|
1754
|
+
interface Results {
|
|
1755
|
+
/** List of nested aggregations */
|
|
1756
|
+
results?: Record<string, NestedResultValue>;
|
|
1757
|
+
}
|
|
1758
|
+
interface DateHistogramResult {
|
|
1759
|
+
/**
|
|
1760
|
+
* Date in ISO 8601 format
|
|
1761
|
+
* @maxLength 100
|
|
1762
|
+
*/
|
|
1763
|
+
value?: string;
|
|
1764
|
+
/** Count of documents in the bucket */
|
|
1765
|
+
count?: number;
|
|
1766
|
+
}
|
|
1767
|
+
interface DateHistogramResults {
|
|
1768
|
+
/**
|
|
1769
|
+
* List of date histogram aggregations
|
|
1770
|
+
* @maxSize 200
|
|
1771
|
+
*/
|
|
1772
|
+
results?: DateHistogramResult[];
|
|
1773
|
+
}
|
|
1774
|
+
/**
|
|
1775
|
+
* Results of `NESTED` aggregation type in a flattened form
|
|
1776
|
+
* aggregations in resulting array are keyed by requested aggregation `name`.
|
|
1777
|
+
*/
|
|
1778
|
+
interface NestedResults {
|
|
1779
|
+
/**
|
|
1780
|
+
* List of nested aggregations
|
|
1781
|
+
* @maxSize 1000
|
|
1782
|
+
*/
|
|
1783
|
+
results?: Results[];
|
|
1784
|
+
}
|
|
1785
|
+
interface AggregationResults extends AggregationResultsResultOneOf {
|
|
1786
|
+
/** Value aggregation results */
|
|
1787
|
+
values?: ValueResults;
|
|
1788
|
+
/** Range aggregation results */
|
|
1789
|
+
ranges?: RangeResults;
|
|
1790
|
+
/** Scalar aggregation results */
|
|
1791
|
+
scalar?: AggregationResultsScalarResult;
|
|
1792
|
+
/** Date histogram aggregation results */
|
|
1793
|
+
dateHistogram?: DateHistogramResults;
|
|
1794
|
+
/** Nested aggregation results */
|
|
1795
|
+
nested?: NestedResults;
|
|
1796
|
+
/**
|
|
1797
|
+
* User-defined name of aggregation as derived from search request
|
|
1798
|
+
* @maxLength 100
|
|
1799
|
+
*/
|
|
1800
|
+
name?: string;
|
|
1801
|
+
/** Type of aggregation that must match provided kind as derived from search request */
|
|
1802
|
+
type?: AggregationTypeWithLiterals;
|
|
1803
|
+
/**
|
|
1804
|
+
* Field to aggregate by as derived from search request
|
|
1805
|
+
* @maxLength 200
|
|
1806
|
+
*/
|
|
1807
|
+
fieldPath?: string;
|
|
1808
|
+
}
|
|
1809
|
+
/** @oneof */
|
|
1810
|
+
interface AggregationResultsResultOneOf {
|
|
1811
|
+
/** Value aggregation results */
|
|
1812
|
+
values?: ValueResults;
|
|
1813
|
+
/** Range aggregation results */
|
|
1814
|
+
ranges?: RangeResults;
|
|
1815
|
+
/** Scalar aggregation results */
|
|
1816
|
+
scalar?: AggregationResultsScalarResult;
|
|
1817
|
+
/** Date histogram aggregation results */
|
|
1818
|
+
dateHistogram?: DateHistogramResults;
|
|
1819
|
+
/** Nested aggregation results */
|
|
1820
|
+
nested?: NestedResults;
|
|
1821
|
+
}
|
|
1822
|
+
interface CountContactsRequest {
|
|
1823
|
+
/**
|
|
1824
|
+
* Filter object.
|
|
1825
|
+
*
|
|
1826
|
+
* Example:
|
|
1827
|
+
* `{ "filter": { "name.last": "Smith" } }`
|
|
1828
|
+
*/
|
|
1829
|
+
filter?: Record<string, any> | null;
|
|
1830
|
+
/**
|
|
1831
|
+
* Plain text search for an exact match.
|
|
1832
|
+
*
|
|
1833
|
+
* Supported search properties are:
|
|
1834
|
+
*
|
|
1835
|
+
* - `name.full`
|
|
1836
|
+
* - `email.email`
|
|
1837
|
+
* - `phone.phone`
|
|
1838
|
+
* - `member_info.email`
|
|
1839
|
+
* - `member_info.profile_info.nickname`
|
|
1840
|
+
* - `company.name`
|
|
1841
|
+
* - `company.job_title`
|
|
1842
|
+
*
|
|
1843
|
+
* Max: 100 characters
|
|
1844
|
+
* @maxLength 100
|
|
1845
|
+
*/
|
|
1846
|
+
search?: string | null;
|
|
1847
|
+
}
|
|
1848
|
+
interface CountContactsResponse {
|
|
1849
|
+
/** number of contacts */
|
|
1850
|
+
count?: number;
|
|
1851
|
+
}
|
|
1852
|
+
interface GenerateContactImageUploadUrlRequest {
|
|
1853
|
+
/**
|
|
1854
|
+
* ID of the contact whose picture is being updated.
|
|
1855
|
+
* @format GUID
|
|
1856
|
+
*/
|
|
1857
|
+
contactId: string;
|
|
1858
|
+
/**
|
|
1859
|
+
* Mime Type. Must be one of: `image/png`, `image/jpeg`.
|
|
1860
|
+
* Defaults to `image/png`.
|
|
1861
|
+
* @maxLength 100
|
|
1862
|
+
*/
|
|
1863
|
+
mimeType?: string | null;
|
|
1864
|
+
}
|
|
1865
|
+
interface GenerateContactImageUploadUrlResponse {
|
|
1866
|
+
/**
|
|
1867
|
+
* URL to upload the image to.
|
|
1868
|
+
* @format WEB_URL
|
|
1869
|
+
*/
|
|
1870
|
+
uploadUrl?: string;
|
|
1871
|
+
/**
|
|
1872
|
+
* The upload id.
|
|
1873
|
+
* @format GUID
|
|
1874
|
+
*/
|
|
1875
|
+
imageUploadId?: string;
|
|
1876
|
+
}
|
|
1877
|
+
interface AddContactAdditionalEmailRequest {
|
|
1878
|
+
/**
|
|
1879
|
+
* ID of the Contact to add an email.
|
|
1880
|
+
* @format GUID
|
|
1881
|
+
*/
|
|
1882
|
+
contactId: string;
|
|
1883
|
+
/** The email to add. */
|
|
1884
|
+
email: AdditionalEmail;
|
|
1885
|
+
/** Contact revision number for optimistic concurrency control. */
|
|
1886
|
+
revision: string | null;
|
|
1887
|
+
}
|
|
1888
|
+
interface AddContactAdditionalEmailResponse {
|
|
1889
|
+
/** Updated Contact. */
|
|
1890
|
+
contact?: Contact;
|
|
1891
|
+
}
|
|
1892
|
+
interface AddContactAdditionalPhoneRequest {
|
|
1893
|
+
/**
|
|
1894
|
+
* ID of the Contact to add a phone.
|
|
1895
|
+
* @format GUID
|
|
1896
|
+
*/
|
|
1897
|
+
contactId: string;
|
|
1898
|
+
/** The phone to add. */
|
|
1899
|
+
phone: AdditionalPhone;
|
|
1900
|
+
/** Contact revision number for optimistic concurrency control. */
|
|
1901
|
+
revision: string | null;
|
|
1902
|
+
}
|
|
1903
|
+
interface AddContactAdditionalPhoneResponse {
|
|
1904
|
+
/** Updated Contact. */
|
|
1905
|
+
contact?: Contact;
|
|
1906
|
+
}
|
|
1907
|
+
interface AddContactAddressRequest {
|
|
1908
|
+
/**
|
|
1909
|
+
* ID of the Contact to add an address.
|
|
1910
|
+
* @format GUID
|
|
1911
|
+
*/
|
|
1912
|
+
contactId: string;
|
|
1913
|
+
/** The address to add. */
|
|
1914
|
+
address: ContactAddress;
|
|
1915
|
+
/** Contact revision number for optimistic concurrency control. */
|
|
1916
|
+
revision: string | null;
|
|
1917
|
+
}
|
|
1918
|
+
interface AddContactAddressResponse {
|
|
1919
|
+
/** Updated Contact. */
|
|
1920
|
+
contact?: Contact;
|
|
1921
|
+
}
|
|
1922
|
+
interface DeleteContactAddressRequest {
|
|
1923
|
+
/**
|
|
1924
|
+
* ID of the Contact from which to delete an address.
|
|
1925
|
+
* @format GUID
|
|
1926
|
+
*/
|
|
1927
|
+
contactId: string;
|
|
1928
|
+
/**
|
|
1929
|
+
* ID of the address to delete.
|
|
1930
|
+
* @format GUID
|
|
1931
|
+
*/
|
|
1932
|
+
addressId: string;
|
|
1933
|
+
/** Contact revision number for optimistic concurrency control. */
|
|
1934
|
+
revision: string | null;
|
|
1935
|
+
}
|
|
1936
|
+
interface DeleteContactAddressResponse {
|
|
1937
|
+
/** Updated Contact after address deletion. */
|
|
1938
|
+
contact?: Contact;
|
|
1939
|
+
}
|
|
1940
|
+
interface UpdateContactAddressRequest {
|
|
1941
|
+
/**
|
|
1942
|
+
* ID of the Contact to update address on.
|
|
1943
|
+
* @format GUID
|
|
1944
|
+
*/
|
|
1945
|
+
contactId: string;
|
|
1946
|
+
/** The updated address (must include address.id). */
|
|
1947
|
+
address: ContactAddress;
|
|
1948
|
+
/** Contact revision number for optimistic concurrency control. */
|
|
1949
|
+
revision: string | null;
|
|
1950
|
+
}
|
|
1951
|
+
interface UpdateContactAddressResponse {
|
|
1952
|
+
/** Updated Contact after address update. */
|
|
1953
|
+
contact?: Contact;
|
|
1954
|
+
}
|
|
1955
|
+
interface BulkCreateContactsRequest {
|
|
1956
|
+
/**
|
|
1957
|
+
* List of Contacts to be created
|
|
1958
|
+
* @minSize 1
|
|
1959
|
+
* @maxSize 100
|
|
1960
|
+
*/
|
|
1961
|
+
contacts: Contact[];
|
|
1962
|
+
/** set to `true` if you wish to receive back the created Contacts in the response */
|
|
1963
|
+
returnEntity?: boolean;
|
|
1964
|
+
/** Allows creating the contact even if a duplicate already exists. */
|
|
1965
|
+
allowDuplicates?: boolean;
|
|
1966
|
+
}
|
|
1967
|
+
interface BulkCreateContactsResponse {
|
|
1968
|
+
/**
|
|
1969
|
+
* List of the bulk create operation results including the Contacts and metadata.
|
|
1970
|
+
* @minSize 1
|
|
1971
|
+
* @maxSize 100
|
|
1972
|
+
*/
|
|
1973
|
+
results?: BulkContactResult[];
|
|
1974
|
+
/** Metadata regarding the bulk create operation */
|
|
1975
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1976
|
+
}
|
|
1977
|
+
interface ItemMetadata {
|
|
1978
|
+
/**
|
|
1979
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
1980
|
+
* @format GUID
|
|
1981
|
+
*/
|
|
1982
|
+
id?: string | null;
|
|
1983
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
1984
|
+
originalIndex?: number;
|
|
1985
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
1986
|
+
success?: boolean;
|
|
1987
|
+
/** Details about the error in case of failure. */
|
|
1988
|
+
error?: ApplicationError;
|
|
1989
|
+
}
|
|
1990
|
+
interface ApplicationError {
|
|
1991
|
+
/** Error code. */
|
|
1992
|
+
code?: string;
|
|
1993
|
+
/** Description of the error. */
|
|
1994
|
+
description?: string;
|
|
1995
|
+
/** Data related to the error. */
|
|
1996
|
+
data?: Record<string, any> | null;
|
|
1997
|
+
}
|
|
1998
|
+
interface BulkContactResult {
|
|
1999
|
+
/** Metadata regarding the specific single create operation */
|
|
2000
|
+
itemMetadata?: ItemMetadata;
|
|
2001
|
+
/** Only exists if `returnEntity` was set to true in the request */
|
|
2002
|
+
item?: Contact;
|
|
2003
|
+
}
|
|
2004
|
+
interface BulkActionMetadata {
|
|
2005
|
+
/** Number of items that were successfully processed. */
|
|
2006
|
+
totalSuccesses?: number;
|
|
2007
|
+
/** Number of items that couldn't be processed. */
|
|
2008
|
+
totalFailures?: number;
|
|
2009
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
2010
|
+
undetailedFailures?: number;
|
|
2011
|
+
}
|
|
2012
|
+
interface BulkUpdateContactsRequest {
|
|
2013
|
+
/**
|
|
2014
|
+
* List of Contacts to be updated.
|
|
2015
|
+
* @minSize 1
|
|
2016
|
+
* @maxSize 100
|
|
2017
|
+
*/
|
|
2018
|
+
contacts: MaskedContact[];
|
|
2019
|
+
/** set to `true` if you wish to receive back the updated Contacts in the response */
|
|
2020
|
+
returnEntity?: boolean;
|
|
2021
|
+
/** Allows updating the contact even if it becomes a duplicate of another contact. */
|
|
2022
|
+
allowDuplicates?: boolean;
|
|
2023
|
+
}
|
|
2024
|
+
interface MaskedContact {
|
|
2025
|
+
/** Contact to be updated, may be partial */
|
|
2026
|
+
contact?: Contact;
|
|
2027
|
+
}
|
|
2028
|
+
interface BulkUpdateContactsResponse {
|
|
2029
|
+
/**
|
|
2030
|
+
* Results
|
|
2031
|
+
* @minSize 1
|
|
2032
|
+
* @maxSize 100
|
|
2033
|
+
*/
|
|
2034
|
+
results?: BulkUpdateContactsResponseBulkContactResult[];
|
|
2035
|
+
/** Metadata regarding the bulk update operation */
|
|
2036
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
2037
|
+
}
|
|
2038
|
+
interface BulkUpdateContactsResponseBulkContactResult {
|
|
2039
|
+
/** Metadata regarding the specific single update operation */
|
|
2040
|
+
itemMetadata?: ItemMetadata;
|
|
2041
|
+
/** Only exists if `returnEntity` was set to true in the request */
|
|
2042
|
+
item?: Contact;
|
|
2043
|
+
}
|
|
2044
|
+
interface BulkUpdateContactTagsRequest {
|
|
2045
|
+
/**
|
|
2046
|
+
* The contacts from which to add or remove tags.
|
|
2047
|
+
* @minSize 1
|
|
2048
|
+
* @maxSize 100
|
|
2049
|
+
* @format GUID
|
|
2050
|
+
*/
|
|
2051
|
+
contactIds: string[];
|
|
2052
|
+
/** set to `true` if you wish to receive back the updated Contacts in the response */
|
|
2053
|
+
returnEntity?: boolean;
|
|
2054
|
+
/** The tags to add. */
|
|
2055
|
+
assignTags?: PrivateTags;
|
|
2056
|
+
/** The tags to remove. */
|
|
2057
|
+
unassignTags?: PrivateTags;
|
|
2058
|
+
}
|
|
2059
|
+
interface BulkUpdateContactTagsResponse {
|
|
2060
|
+
/**
|
|
2061
|
+
* The results of the update for all contacts in the request.
|
|
2062
|
+
* @minSize 1
|
|
2063
|
+
* @maxSize 100
|
|
2064
|
+
*/
|
|
2065
|
+
results?: BulkUpdateContactTagsResult[];
|
|
2066
|
+
/** Summary of successes and failures. */
|
|
2067
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
2068
|
+
}
|
|
2069
|
+
interface BulkUpdateContactTagsResult {
|
|
2070
|
+
/** Metadata regarding the specific single update operation */
|
|
2071
|
+
itemMetadata?: ItemMetadata;
|
|
2072
|
+
/** Only exists if `returnEntity` was set to true in the request */
|
|
2073
|
+
item?: Contact;
|
|
2074
|
+
}
|
|
2075
|
+
interface BulkUpdateContactTagsByFilterRequest {
|
|
2076
|
+
/** A filter object. See documentation [here](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#filters) */
|
|
2077
|
+
filter: Record<string, any> | null;
|
|
2078
|
+
/** Free text to match in searchable fields. */
|
|
2079
|
+
search?: SearchDetails;
|
|
2080
|
+
/** Tag ids to add to the contact. */
|
|
2081
|
+
assignTags?: PrivateTags;
|
|
2082
|
+
/** Tag ids to remove from the contact. */
|
|
2083
|
+
unassignTags?: PrivateTags;
|
|
2084
|
+
}
|
|
2085
|
+
interface BulkUpdateContactTagsByFilterResponse {
|
|
2086
|
+
/**
|
|
2087
|
+
* The ID of the update tags job.
|
|
2088
|
+
*
|
|
2089
|
+
* Pass this ID to Get Async Job, in the Async Jobs API, to retrieve job details and metadata.
|
|
2090
|
+
* @format GUID
|
|
2091
|
+
*/
|
|
2092
|
+
jobId?: string;
|
|
2093
|
+
}
|
|
2094
|
+
interface BulkUpsertContactsRequest {
|
|
2095
|
+
/**
|
|
2096
|
+
* List of Contacts to be updated.
|
|
2097
|
+
* @minSize 1
|
|
2098
|
+
* @maxSize 100
|
|
2099
|
+
*/
|
|
2100
|
+
contacts: BulkUpsertContactsRequestMaskedContact[];
|
|
2101
|
+
/** set to `true` if you wish to receive back the updated Contacts in the response */
|
|
2102
|
+
returnEntity?: boolean;
|
|
2103
|
+
/** The mode in which the upsert should work in. */
|
|
2104
|
+
upsertMode?: UpsertModeWithLiterals;
|
|
2105
|
+
/** Indicates whether to update a contact even if it is a site member. */
|
|
2106
|
+
updateMember?: boolean | null;
|
|
2107
|
+
}
|
|
2108
|
+
interface BulkUpsertContactsRequestMaskedContact {
|
|
2109
|
+
/** Contact to be updated, may be partial */
|
|
2110
|
+
contact?: Contact;
|
|
2111
|
+
}
|
|
2112
|
+
interface BulkUpsertContactsResponse {
|
|
2113
|
+
/**
|
|
2114
|
+
* Results
|
|
2115
|
+
* @minSize 1
|
|
2116
|
+
* @maxSize 100
|
|
2117
|
+
*/
|
|
2118
|
+
results?: BulkUpsertContactsResponseBulkContactResult[];
|
|
2119
|
+
/** Metadata regarding the bulk update operation */
|
|
2120
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
2121
|
+
}
|
|
2122
|
+
declare enum Action {
|
|
2123
|
+
UNKNOWN_ACTION = "UNKNOWN_ACTION",
|
|
2124
|
+
UPDATED = "UPDATED",
|
|
2125
|
+
CREATED = "CREATED"
|
|
2126
|
+
}
|
|
2127
|
+
/** @enumType */
|
|
2128
|
+
type ActionWithLiterals = Action | 'UNKNOWN_ACTION' | 'UPDATED' | 'CREATED';
|
|
2129
|
+
interface BulkUpsertContactsResponseBulkContactResult {
|
|
2130
|
+
/** Metadata regarding the specific single update operation */
|
|
2131
|
+
itemMetadata?: ItemMetadata;
|
|
2132
|
+
/** Only exists if `returnEntity` was set to true in the request */
|
|
2133
|
+
item?: Contact;
|
|
2134
|
+
/** The action performed on the contact. */
|
|
2135
|
+
action?: ActionWithLiterals;
|
|
2136
|
+
}
|
|
2137
|
+
interface BulkDeleteContactsRequest {
|
|
2138
|
+
/**
|
|
2139
|
+
* Contact ids to be deleted
|
|
2140
|
+
* @minSize 1
|
|
2141
|
+
* @maxSize 100
|
|
2142
|
+
* @format GUID
|
|
2143
|
+
*/
|
|
2144
|
+
contactIds: string[];
|
|
2145
|
+
/**
|
|
2146
|
+
* Indicates whether to delete the contact that is a site member. If set to `true`, the contact is deleted even
|
|
2147
|
+
* if it is a site member and the site member is also deleted. Default: `false`
|
|
2148
|
+
*/
|
|
2149
|
+
deleteMembers?: boolean | null;
|
|
2150
|
+
}
|
|
2151
|
+
interface BulkDeleteContactsResponse {
|
|
2152
|
+
/**
|
|
2153
|
+
* Results
|
|
2154
|
+
* @minSize 1
|
|
2155
|
+
* @maxSize 100
|
|
2156
|
+
*/
|
|
2157
|
+
results?: BulkDeleteContactsResponseBulkContactResult[];
|
|
2158
|
+
/** Metadata regarding the bulk delete operation */
|
|
2159
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
2160
|
+
}
|
|
2161
|
+
interface BulkDeleteContactsResponseBulkContactResult {
|
|
2162
|
+
/** Metadata regarding the specific single delete operation */
|
|
2163
|
+
itemMetadata?: ItemMetadata;
|
|
2164
|
+
}
|
|
2165
|
+
interface BulkDeleteContactsByFilterRequest {
|
|
2166
|
+
/**
|
|
2167
|
+
* Filter object.
|
|
2168
|
+
*
|
|
2169
|
+
* Example:
|
|
2170
|
+
* `{ "filter": { "name.last": "Smith" } }`
|
|
2171
|
+
*/
|
|
2172
|
+
filter: Record<string, any> | null;
|
|
2173
|
+
/** Free text to match in searchable fields */
|
|
2174
|
+
search?: SearchDetails;
|
|
2175
|
+
/**
|
|
2176
|
+
* Indicates whether to delete the contact that is a site member. If set to `true`, the contact is deleted even
|
|
2177
|
+
* if it is a site member and the site member is also deleted. Default: `false`
|
|
2178
|
+
*/
|
|
2179
|
+
deleteMembers?: boolean | null;
|
|
2180
|
+
}
|
|
2181
|
+
interface BulkDeleteContactsByFilterResponse {
|
|
2182
|
+
/**
|
|
2183
|
+
* The ID of the delete job.
|
|
2184
|
+
*
|
|
2185
|
+
* Pass this ID to Get Async Job, in the Async Jobs API, to retrieve job details and metadata.
|
|
2186
|
+
* @format GUID
|
|
2187
|
+
*/
|
|
2188
|
+
jobId?: string;
|
|
2189
|
+
}
|
|
2190
|
+
interface RemoveContactFromTrashBinRequest {
|
|
2191
|
+
/**
|
|
2192
|
+
* Id of the Contact to remove from trashbin.
|
|
2193
|
+
* @format GUID
|
|
2194
|
+
*/
|
|
2195
|
+
contactId: string;
|
|
2196
|
+
}
|
|
2197
|
+
interface RemoveContactFromTrashBinResponse {
|
|
2198
|
+
}
|
|
2199
|
+
interface RestoreContactFromTrashBinRequest {
|
|
2200
|
+
/**
|
|
2201
|
+
* Id of the Contact to restore from trashbin.
|
|
2202
|
+
* @format GUID
|
|
2203
|
+
*/
|
|
2204
|
+
contactId: string;
|
|
2205
|
+
}
|
|
2206
|
+
interface RestoreContactFromTrashBinResponse {
|
|
2207
|
+
/** The restored Contact. */
|
|
2208
|
+
contact?: Contact;
|
|
2209
|
+
}
|
|
2210
|
+
interface BulkRestoreContactsFromTrashBinRequest {
|
|
2211
|
+
/**
|
|
2212
|
+
* List of Contacts to be restored
|
|
2213
|
+
* @minSize 1
|
|
2214
|
+
* @maxSize 100
|
|
2215
|
+
* @format GUID
|
|
2216
|
+
*/
|
|
2217
|
+
contactIds?: string[];
|
|
2218
|
+
/** return full entity in response */
|
|
2219
|
+
returnEntity?: boolean;
|
|
2220
|
+
}
|
|
2221
|
+
interface BulkRestoreContactsFromTrashBinResponse {
|
|
2222
|
+
/**
|
|
2223
|
+
* Results
|
|
2224
|
+
* @minSize 1
|
|
2225
|
+
* @maxSize 100
|
|
2226
|
+
*/
|
|
2227
|
+
results?: BulkRestoreContactsFromTrashBinResponseBulkContactResult[];
|
|
2228
|
+
/** Metadata regarding the bulk delete operation */
|
|
2229
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
2230
|
+
}
|
|
2231
|
+
interface BulkRestoreContactsFromTrashBinResponseBulkContactResult {
|
|
2232
|
+
/** Metadata regarding the specific single restore operation */
|
|
2233
|
+
itemMetadata?: ItemMetadata;
|
|
2234
|
+
/** Only exists if returnEntity was set to true in the request */
|
|
2235
|
+
item?: Contact;
|
|
2236
|
+
}
|
|
2237
|
+
interface GetDeletedContactRequest {
|
|
2238
|
+
/**
|
|
2239
|
+
* Id of the Contact to retrieve from trashbin.
|
|
2240
|
+
* @format GUID
|
|
2241
|
+
*/
|
|
2242
|
+
contactId: string;
|
|
2243
|
+
}
|
|
2244
|
+
interface GetDeletedContactResponse {
|
|
2245
|
+
/** The requested Contact. */
|
|
2246
|
+
contact?: Contact;
|
|
2247
|
+
}
|
|
2248
|
+
interface ListDeletedContactsRequest {
|
|
2249
|
+
/**
|
|
2250
|
+
* External ID
|
|
2251
|
+
* @maxLength 100
|
|
2252
|
+
*/
|
|
2253
|
+
externalId?: string | null;
|
|
2254
|
+
/**
|
|
2255
|
+
* Email address.
|
|
2256
|
+
* @format EMAIL
|
|
2257
|
+
* @maxLength 320
|
|
2258
|
+
*/
|
|
2259
|
+
email?: string | null;
|
|
2260
|
+
/**
|
|
2261
|
+
* Phone number.
|
|
2262
|
+
* @minLength 1
|
|
2263
|
+
* @maxLength 50
|
|
2264
|
+
*/
|
|
2265
|
+
phone?: string | null;
|
|
2266
|
+
/**
|
|
2267
|
+
* Contact IDs.
|
|
2268
|
+
* @maxSize 100
|
|
2269
|
+
* @format GUID
|
|
2270
|
+
*/
|
|
2271
|
+
contactIds?: string[];
|
|
2272
|
+
/** From date and time that contact was deleted. */
|
|
2273
|
+
deletedFromDate?: Date | null;
|
|
2274
|
+
/** Until date and time that contact was deleted. */
|
|
2275
|
+
deletedToDate?: Date | null;
|
|
2276
|
+
/** Cursor paging. */
|
|
2277
|
+
paging?: CursorPaging;
|
|
2278
|
+
}
|
|
2279
|
+
interface ListDeletedContactsResponse {
|
|
2280
|
+
/** List of Contacts. */
|
|
2281
|
+
contacts?: Contact[];
|
|
2282
|
+
/** Paging metadata */
|
|
2283
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
2284
|
+
}
|
|
2285
|
+
interface BulkAddSegmentToContactsRequest {
|
|
2286
|
+
/**
|
|
2287
|
+
* Segment id
|
|
2288
|
+
* @format GUID
|
|
2289
|
+
*/
|
|
2290
|
+
segmentId?: string;
|
|
2291
|
+
/**
|
|
2292
|
+
* List of Contact ids
|
|
2293
|
+
* @format GUID
|
|
2294
|
+
* @minSize 1
|
|
2295
|
+
* @maxSize 100
|
|
2296
|
+
*/
|
|
2297
|
+
contactIds?: string[];
|
|
2298
|
+
/**
|
|
2299
|
+
* List of existing segment ids. It is used to remove segments that no longer exist that are still on the contact.
|
|
2300
|
+
* @format GUID
|
|
2301
|
+
* @maxSize 100
|
|
2302
|
+
*/
|
|
2303
|
+
existingSegmentIds?: string[];
|
|
2304
|
+
}
|
|
2305
|
+
interface BulkAddSegmentToContactsResponse {
|
|
2306
|
+
/** List of action results */
|
|
2307
|
+
results?: ItemMetadata[];
|
|
2308
|
+
/** Metadata on the bulk action */
|
|
2309
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
2310
|
+
}
|
|
2311
|
+
interface BulkRemoveSegmentFromContactsRequest {
|
|
2312
|
+
/**
|
|
2313
|
+
* Segment id
|
|
2314
|
+
* @format GUID
|
|
2315
|
+
*/
|
|
2316
|
+
segmentId?: string;
|
|
2317
|
+
/**
|
|
2318
|
+
* List of Contact ids
|
|
2319
|
+
* @format GUID
|
|
2320
|
+
* @minSize 1
|
|
2321
|
+
* @maxSize 100
|
|
2322
|
+
*/
|
|
2323
|
+
contactIds?: string[];
|
|
2324
|
+
}
|
|
2325
|
+
interface BulkRemoveSegmentFromContactsResponse {
|
|
2326
|
+
/** List of action results */
|
|
2327
|
+
results?: ItemMetadata[];
|
|
2328
|
+
/** Metadata on the bulk action */
|
|
2329
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
2330
|
+
}
|
|
2331
|
+
interface QueryContactsByOffsetInternalRequest {
|
|
2332
|
+
/** WQL expression. */
|
|
2333
|
+
query?: QueryV2;
|
|
2334
|
+
/**
|
|
2335
|
+
* Plain text search for an exact match.
|
|
2336
|
+
*
|
|
2337
|
+
* Supported search properties are:
|
|
2338
|
+
*
|
|
2339
|
+
* - `name.full`
|
|
2340
|
+
* - `email.email`
|
|
2341
|
+
* - `phone.phone`
|
|
2342
|
+
* - `member_info.email`
|
|
2343
|
+
* - `member_info.profile_info.nickname`
|
|
2344
|
+
* - `company.name`
|
|
2345
|
+
* - `company.job_title`
|
|
2346
|
+
*
|
|
2347
|
+
* Max: 100 characters
|
|
2348
|
+
* @maxLength 100
|
|
2349
|
+
*/
|
|
2350
|
+
search?: string | null;
|
|
2351
|
+
/**
|
|
2352
|
+
* Name Format for sorting and searching.
|
|
2353
|
+
* When sorting by `displayName`, the returned contacts are ordered by first and last names, by default.
|
|
2354
|
+
* Alternatively, when sorting by `displayName` with `BY_LAST_NAME`, the returned contacts are ordered by last and first names.
|
|
2355
|
+
* For contacts that do not have names, sorting is by email or phone.
|
|
2356
|
+
* When searching by `name.full`, the contacts returned are matched and ordered by first and last names.
|
|
2357
|
+
* Alternatively, when searching by `name.full` with `BY_LAST_NAME`, the contacts returned
|
|
2358
|
+
* are matched and ordered by last and first names.
|
|
2359
|
+
*/
|
|
2360
|
+
nameFormat?: QueryContactsByOffsetInternalRequestNameFormatWithLiterals;
|
|
2361
|
+
}
|
|
2362
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
2363
|
+
/** Paging options to limit and skip the number of items. */
|
|
2364
|
+
paging?: Paging;
|
|
2365
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
2366
|
+
cursorPaging?: CursorPaging;
|
|
2367
|
+
/**
|
|
2368
|
+
* Filter object.
|
|
2369
|
+
*
|
|
2370
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
2371
|
+
*/
|
|
2372
|
+
filter?: Record<string, any> | null;
|
|
2373
|
+
/**
|
|
2374
|
+
* Sort object.
|
|
2375
|
+
*
|
|
2376
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
2377
|
+
* @maxSize 100
|
|
2378
|
+
*/
|
|
2379
|
+
sort?: Sorting[];
|
|
2380
|
+
/**
|
|
2381
|
+
* Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.
|
|
2382
|
+
* @maxSize 1000
|
|
2383
|
+
* @maxLength 100
|
|
2384
|
+
*/
|
|
2385
|
+
fields?: string[];
|
|
2386
|
+
/**
|
|
2387
|
+
* Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.
|
|
2388
|
+
* @maxSize 100
|
|
2389
|
+
* @maxLength 100
|
|
2390
|
+
*/
|
|
2391
|
+
fieldsets?: string[];
|
|
2392
|
+
}
|
|
2393
|
+
/** @oneof */
|
|
2394
|
+
interface QueryV2PagingMethodOneOf {
|
|
2395
|
+
/** Paging options to limit and skip the number of items. */
|
|
2396
|
+
paging?: Paging;
|
|
2397
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
2398
|
+
cursorPaging?: CursorPaging;
|
|
2399
|
+
}
|
|
2400
|
+
interface Paging {
|
|
2401
|
+
/**
|
|
2402
|
+
* Number of items to load.
|
|
2403
|
+
* @max 100
|
|
2404
|
+
*/
|
|
2405
|
+
limit?: number | null;
|
|
2406
|
+
/** Number of items to skip in the current sort order. */
|
|
2407
|
+
offset?: number | null;
|
|
2408
|
+
}
|
|
2409
|
+
/** Name format types for sorting and searching. */
|
|
2410
|
+
declare enum QueryContactsByOffsetInternalRequestNameFormat {
|
|
2411
|
+
BY_FIRST_NAME = "BY_FIRST_NAME",
|
|
2412
|
+
BY_LAST_NAME = "BY_LAST_NAME"
|
|
2413
|
+
}
|
|
2414
|
+
/** @enumType */
|
|
2415
|
+
type QueryContactsByOffsetInternalRequestNameFormatWithLiterals = QueryContactsByOffsetInternalRequestNameFormat | 'BY_FIRST_NAME' | 'BY_LAST_NAME';
|
|
2416
|
+
interface QueryContactsByOffsetInternalResponse {
|
|
2417
|
+
/** List of Contacts. */
|
|
2418
|
+
contacts?: Contact[];
|
|
2419
|
+
/** Paging metadata */
|
|
2420
|
+
pagingMetadata?: PagingMetadataV2;
|
|
2421
|
+
}
|
|
2422
|
+
interface PagingMetadataV2 {
|
|
2423
|
+
/** Number of items returned in the response. */
|
|
2424
|
+
count?: number | null;
|
|
2425
|
+
/** Offset that was requested. */
|
|
2426
|
+
offset?: number | null;
|
|
2427
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
2428
|
+
total?: number | null;
|
|
2429
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
2430
|
+
tooManyToCount?: boolean | null;
|
|
2431
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
2432
|
+
cursors?: Cursors;
|
|
2433
|
+
}
|
|
2434
|
+
interface GetContactImageUploadStatusRequest {
|
|
2435
|
+
/**
|
|
2436
|
+
* Id of the contact for which to retrieve the image upload status.
|
|
2437
|
+
* @format GUID
|
|
2438
|
+
*/
|
|
2439
|
+
contactId: string;
|
|
2440
|
+
/**
|
|
2441
|
+
* The upload ID of the image upload process. Returned in case an image URL was provided when creating or
|
|
2442
|
+
* updating a contact. It is also returned from the GenerateContactImageUploadUrl endpoint.
|
|
2443
|
+
* @maxLength 100
|
|
2444
|
+
*/
|
|
2445
|
+
imageUploadId: string;
|
|
2446
|
+
}
|
|
2447
|
+
interface GetContactImageUploadStatusResponse {
|
|
2448
|
+
/** The status of the image upload process. */
|
|
2449
|
+
status?: ImageUploadStatusWithLiterals;
|
|
2450
|
+
}
|
|
2451
|
+
declare enum ImageUploadStatus {
|
|
2452
|
+
/** Image upload is in progress. */
|
|
2453
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
2454
|
+
/** Image is uploaded. */
|
|
2455
|
+
SUCCESS = "SUCCESS",
|
|
2456
|
+
/** Image upload failed. */
|
|
2457
|
+
FAILURE = "FAILURE"
|
|
2458
|
+
}
|
|
2459
|
+
/** @enumType */
|
|
2460
|
+
type ImageUploadStatusWithLiterals = ImageUploadStatus | 'IN_PROGRESS' | 'SUCCESS' | 'FAILURE';
|
|
2461
|
+
interface BulkUpdatePhoneCountryCodeByFilterRequest {
|
|
2462
|
+
/**
|
|
2463
|
+
* A filter for the contacts that the country code will be applied to.
|
|
2464
|
+
*
|
|
2465
|
+
* Example:
|
|
2466
|
+
* `{ "filter": { "name.last": "Smith" } }`
|
|
2467
|
+
*/
|
|
2468
|
+
filter?: Record<string, any> | null;
|
|
2469
|
+
/** Free text to match in searchable fields for the contacts that the country code will be applied to. */
|
|
2470
|
+
search?: SearchDetails;
|
|
2471
|
+
/**
|
|
2472
|
+
* [ISO-3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code to apply.
|
|
2473
|
+
* The country code will be added to the contacts main phone number, when adding it the phone, makes it a valid phone number.
|
|
2474
|
+
* @format COUNTRY
|
|
2475
|
+
*/
|
|
2476
|
+
countryCode: string;
|
|
2477
|
+
}
|
|
2478
|
+
interface BulkUpdatePhoneCountryCodeByFilterResponse {
|
|
2479
|
+
/**
|
|
2480
|
+
* The ID of the bulk update contact job.
|
|
2481
|
+
*
|
|
2482
|
+
* Pass this ID to Get Async Job, in the Async Jobs API, to retrieve job details and metadata.
|
|
2483
|
+
* @format GUID
|
|
2484
|
+
*/
|
|
2485
|
+
jobId?: string;
|
|
2486
|
+
}
|
|
2487
|
+
interface Empty {
|
|
2488
|
+
}
|
|
2489
|
+
interface MediaFileUploadedEvent {
|
|
2490
|
+
fileId?: string;
|
|
2491
|
+
path?: string;
|
|
2492
|
+
mimeType?: string;
|
|
2493
|
+
acl?: string | null;
|
|
2494
|
+
size?: string | null;
|
|
2495
|
+
dateCreated?: Date | null;
|
|
2496
|
+
dateUpdated?: Date | null;
|
|
2497
|
+
}
|
|
2498
|
+
/** @docsIgnore */
|
|
2499
|
+
type BulkUpdateContactSubscriptionsApplicationErrors = {
|
|
2500
|
+
code?: 'MISSING_SUBSCRIPTION_STATUS';
|
|
2501
|
+
description?: string;
|
|
2502
|
+
data?: Record<string, any>;
|
|
2503
|
+
};
|
|
2504
|
+
/** @docsIgnore */
|
|
2505
|
+
type CreateContactApplicationErrors = {
|
|
2506
|
+
code?: 'INSUFFICIENT_CONTACT_DATA';
|
|
2507
|
+
description?: string;
|
|
2508
|
+
data?: Record<string, any>;
|
|
2509
|
+
} | {
|
|
2510
|
+
code?: 'DUPLICATE_EMAIL';
|
|
2511
|
+
description?: string;
|
|
2512
|
+
data?: Record<string, any>;
|
|
2513
|
+
} | {
|
|
2514
|
+
code?: 'DUPLICATE_PHONE';
|
|
2515
|
+
description?: string;
|
|
2516
|
+
data?: Record<string, any>;
|
|
2517
|
+
} | {
|
|
2518
|
+
code?: 'DUPLICATE_ADDRESS';
|
|
2519
|
+
description?: string;
|
|
2520
|
+
data?: Record<string, any>;
|
|
2521
|
+
} | {
|
|
2522
|
+
code?: 'MULTIPLE_DEFAULT_ADDRESSES';
|
|
2523
|
+
description?: string;
|
|
2524
|
+
data?: Record<string, any>;
|
|
2525
|
+
} | {
|
|
2526
|
+
code?: 'DUPLICATE_ADDRESS_ID';
|
|
2527
|
+
description?: string;
|
|
2528
|
+
data?: Record<string, any>;
|
|
2529
|
+
} | {
|
|
2530
|
+
code?: 'EMAIL_REQUIRED';
|
|
2531
|
+
description?: string;
|
|
2532
|
+
data?: Record<string, any>;
|
|
2533
|
+
} | {
|
|
2534
|
+
code?: 'PHONE_REQUIRED';
|
|
2535
|
+
description?: string;
|
|
2536
|
+
data?: Record<string, any>;
|
|
2537
|
+
} | {
|
|
2538
|
+
code?: 'DUPLICATE_CONTACT_EXISTS';
|
|
2539
|
+
description?: string;
|
|
2540
|
+
data?: DuplicateContactExists;
|
|
2541
|
+
} | {
|
|
2542
|
+
code?: 'INVALID_TIME_ZONE';
|
|
2543
|
+
description?: string;
|
|
2544
|
+
data?: Record<string, any>;
|
|
2545
|
+
} | {
|
|
2546
|
+
code?: 'INVALID_BIRTHDATE';
|
|
2547
|
+
description?: string;
|
|
2548
|
+
data?: Record<string, any>;
|
|
2549
|
+
} | {
|
|
2550
|
+
code?: 'INVALID_IMAGE_URL';
|
|
2551
|
+
description?: string;
|
|
2552
|
+
data?: Record<string, any>;
|
|
2553
|
+
};
|
|
2554
|
+
/** @docsIgnore */
|
|
2555
|
+
type UpdateContactApplicationErrors = {
|
|
2556
|
+
code?: 'INSUFFICIENT_CONTACT_DATA';
|
|
2557
|
+
description?: string;
|
|
2558
|
+
data?: Record<string, any>;
|
|
2559
|
+
} | {
|
|
2560
|
+
code?: 'DUPLICATE_EMAIL';
|
|
2561
|
+
description?: string;
|
|
2562
|
+
data?: Record<string, any>;
|
|
2563
|
+
} | {
|
|
2564
|
+
code?: 'DUPLICATE_PHONE';
|
|
2565
|
+
description?: string;
|
|
2566
|
+
data?: Record<string, any>;
|
|
2567
|
+
} | {
|
|
2568
|
+
code?: 'DUPLICATE_ADDRESS';
|
|
2569
|
+
description?: string;
|
|
2570
|
+
data?: Record<string, any>;
|
|
2571
|
+
} | {
|
|
2572
|
+
code?: 'MULTIPLE_DEFAULT_ADDRESSES';
|
|
2573
|
+
description?: string;
|
|
2574
|
+
data?: Record<string, any>;
|
|
2575
|
+
} | {
|
|
2576
|
+
code?: 'DUPLICATE_ADDRESS_ID';
|
|
2577
|
+
description?: string;
|
|
2578
|
+
data?: Record<string, any>;
|
|
2579
|
+
} | {
|
|
2580
|
+
code?: 'EMAIL_REQUIRED';
|
|
2581
|
+
description?: string;
|
|
2582
|
+
data?: Record<string, any>;
|
|
2583
|
+
} | {
|
|
2584
|
+
code?: 'PHONE_REQUIRED';
|
|
2585
|
+
description?: string;
|
|
2586
|
+
data?: Record<string, any>;
|
|
2587
|
+
} | {
|
|
2588
|
+
code?: 'CANNOT_CHANGE_EXTERNAL_ID';
|
|
2589
|
+
description?: string;
|
|
2590
|
+
data?: Record<string, any>;
|
|
2591
|
+
} | {
|
|
2592
|
+
code?: 'DUPLICATE_CONTACT_EXISTS';
|
|
2593
|
+
description?: string;
|
|
2594
|
+
data?: DuplicateContactExists;
|
|
2595
|
+
} | {
|
|
2596
|
+
code?: 'CANNOT_UPDATE_MEMBER_EMAIL';
|
|
2597
|
+
description?: string;
|
|
2598
|
+
data?: Record<string, any>;
|
|
2599
|
+
} | {
|
|
2600
|
+
code?: 'INVALID_TIME_ZONE';
|
|
2601
|
+
description?: string;
|
|
2602
|
+
data?: Record<string, any>;
|
|
2603
|
+
} | {
|
|
2604
|
+
code?: 'INVALID_IMAGE_URL';
|
|
2605
|
+
description?: string;
|
|
2606
|
+
data?: Record<string, any>;
|
|
2607
|
+
};
|
|
2608
|
+
/** @docsIgnore */
|
|
2609
|
+
type UpsertContactApplicationErrors = {
|
|
2610
|
+
code?: 'INSUFFICIENT_CONTACT_DATA';
|
|
2611
|
+
description?: string;
|
|
2612
|
+
data?: Record<string, any>;
|
|
2613
|
+
} | {
|
|
2614
|
+
code?: 'DUPLICATE_EMAIL';
|
|
2615
|
+
description?: string;
|
|
2616
|
+
data?: Record<string, any>;
|
|
2617
|
+
} | {
|
|
2618
|
+
code?: 'DUPLICATE_PHONE';
|
|
2619
|
+
description?: string;
|
|
2620
|
+
data?: Record<string, any>;
|
|
2621
|
+
} | {
|
|
2622
|
+
code?: 'DUPLICATE_ADDRESS';
|
|
2623
|
+
description?: string;
|
|
2624
|
+
data?: Record<string, any>;
|
|
2625
|
+
} | {
|
|
2626
|
+
code?: 'MULTIPLE_DEFAULT_ADDRESSES';
|
|
2627
|
+
description?: string;
|
|
2628
|
+
data?: Record<string, any>;
|
|
2629
|
+
} | {
|
|
2630
|
+
code?: 'DUPLICATE_ADDRESS_ID';
|
|
2631
|
+
description?: string;
|
|
2632
|
+
data?: Record<string, any>;
|
|
2633
|
+
} | {
|
|
2634
|
+
code?: 'EMAIL_REQUIRED';
|
|
2635
|
+
description?: string;
|
|
2636
|
+
data?: Record<string, any>;
|
|
2637
|
+
} | {
|
|
2638
|
+
code?: 'PHONE_REQUIRED';
|
|
2639
|
+
description?: string;
|
|
2640
|
+
data?: Record<string, any>;
|
|
2641
|
+
} | {
|
|
2642
|
+
code?: 'INVALID_TIME_ZONE';
|
|
2643
|
+
description?: string;
|
|
2644
|
+
data?: Record<string, any>;
|
|
2645
|
+
} | {
|
|
2646
|
+
code?: 'INVALID_IMAGE_URL';
|
|
2647
|
+
description?: string;
|
|
2648
|
+
data?: Record<string, any>;
|
|
2649
|
+
} | {
|
|
2650
|
+
code?: 'CANNOT_CHANGE_EXTERNAL_ID';
|
|
2651
|
+
description?: string;
|
|
2652
|
+
data?: Record<string, any>;
|
|
2653
|
+
} | {
|
|
2654
|
+
code?: 'CANNOT_UPDATE_MEMBER_EMAIL';
|
|
2655
|
+
description?: string;
|
|
2656
|
+
data?: Record<string, any>;
|
|
2657
|
+
} | {
|
|
2658
|
+
code?: 'UNAUTHORIZED_UPDATE_MEMBER';
|
|
2659
|
+
description?: string;
|
|
2660
|
+
data?: FailedMemberUpdate;
|
|
2661
|
+
} | {
|
|
2662
|
+
code?: 'CANNOT_UPDATE_MEMBER';
|
|
2663
|
+
description?: string;
|
|
2664
|
+
data?: FailedMemberUpdate;
|
|
2665
|
+
};
|
|
2666
|
+
/** @docsIgnore */
|
|
2667
|
+
type UpdateContactTagsApplicationErrors = {
|
|
2668
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
2669
|
+
description?: string;
|
|
2670
|
+
data?: Record<string, any>;
|
|
2671
|
+
};
|
|
2672
|
+
/** @docsIgnore */
|
|
2673
|
+
type MergeContactsApplicationErrors = {
|
|
2674
|
+
code?: 'CANNOT_MERGE_SOURCE_MEMBER';
|
|
2675
|
+
description?: string;
|
|
2676
|
+
data?: Record<string, any>;
|
|
2677
|
+
} | {
|
|
2678
|
+
code?: 'CANNOT_UPDATE_MEMBER_EMAIL';
|
|
2679
|
+
description?: string;
|
|
2680
|
+
data?: Record<string, any>;
|
|
2681
|
+
} | {
|
|
2682
|
+
code?: 'INVALID_CONTACT_MERGE';
|
|
2683
|
+
description?: string;
|
|
2684
|
+
data?: Record<string, any>;
|
|
2685
|
+
} | {
|
|
2686
|
+
code?: 'SOURCE_NOT_FOUND';
|
|
2687
|
+
description?: string;
|
|
2688
|
+
data?: Record<string, any>;
|
|
2689
|
+
} | {
|
|
2690
|
+
code?: 'INSUFFICIENT_CONTACT_DATA';
|
|
2691
|
+
description?: string;
|
|
2692
|
+
data?: Record<string, any>;
|
|
2693
|
+
} | {
|
|
2694
|
+
code?: 'DUPLICATE_EMAIL';
|
|
2695
|
+
description?: string;
|
|
2696
|
+
data?: Record<string, any>;
|
|
2697
|
+
} | {
|
|
2698
|
+
code?: 'DUPLICATE_PHONE';
|
|
2699
|
+
description?: string;
|
|
2700
|
+
data?: Record<string, any>;
|
|
2701
|
+
} | {
|
|
2702
|
+
code?: 'DUPLICATE_ADDRESS';
|
|
2703
|
+
description?: string;
|
|
2704
|
+
data?: Record<string, any>;
|
|
2705
|
+
} | {
|
|
2706
|
+
code?: 'MULTIPLE_DEFAULT_ADDRESSES';
|
|
2707
|
+
description?: string;
|
|
2708
|
+
data?: Record<string, any>;
|
|
2709
|
+
} | {
|
|
2710
|
+
code?: 'DUPLICATE_ADDRESS_ID';
|
|
2711
|
+
description?: string;
|
|
2712
|
+
data?: Record<string, any>;
|
|
2713
|
+
} | {
|
|
2714
|
+
code?: 'EMAIL_REQUIRED';
|
|
2715
|
+
description?: string;
|
|
2716
|
+
data?: Record<string, any>;
|
|
2717
|
+
} | {
|
|
2718
|
+
code?: 'PHONE_REQUIRED';
|
|
2719
|
+
description?: string;
|
|
2720
|
+
data?: Record<string, any>;
|
|
2721
|
+
} | {
|
|
2722
|
+
code?: 'CANNOT_CHANGE_EXTERNAL_ID';
|
|
2723
|
+
description?: string;
|
|
2724
|
+
data?: Record<string, any>;
|
|
2725
|
+
} | {
|
|
2726
|
+
code?: 'DUPLICATE_CONTACT_EXISTS';
|
|
2727
|
+
description?: string;
|
|
2728
|
+
data?: DuplicateContactExists;
|
|
2729
|
+
} | {
|
|
2730
|
+
code?: 'INVALID_TIME_ZONE';
|
|
2731
|
+
description?: string;
|
|
2732
|
+
data?: Record<string, any>;
|
|
2733
|
+
} | {
|
|
2734
|
+
code?: 'INVALID_IMAGE_URL';
|
|
2735
|
+
description?: string;
|
|
2736
|
+
data?: Record<string, any>;
|
|
2737
|
+
};
|
|
2738
|
+
/** @docsIgnore */
|
|
2739
|
+
type DeleteContactApplicationErrors = {
|
|
2740
|
+
code?: 'UNAUTHORIZED_DELETE_MEMBER';
|
|
2741
|
+
description?: string;
|
|
2742
|
+
data?: Record<string, any>;
|
|
2743
|
+
} | {
|
|
2744
|
+
code?: 'CANNOT_DELETE_MEMBER';
|
|
2745
|
+
description?: string;
|
|
2746
|
+
data?: Record<string, any>;
|
|
2747
|
+
} | {
|
|
2748
|
+
code?: 'CANNOT_DELETE_CONTACT_WITH_BILLING_SUBSCRIPTION';
|
|
2749
|
+
description?: string;
|
|
2750
|
+
data?: Record<string, any>;
|
|
2751
|
+
} | {
|
|
2752
|
+
code?: 'CANNOT_DELETE_WIX_USERS_MEMBER';
|
|
2753
|
+
description?: string;
|
|
2754
|
+
data?: Record<string, any>;
|
|
2755
|
+
} | {
|
|
2756
|
+
code?: 'FAILED_DELETE_CONTACT_AFTER_MEMBER_DELETION';
|
|
2757
|
+
description?: string;
|
|
2758
|
+
data?: Record<string, any>;
|
|
2759
|
+
};
|
|
2760
|
+
/** @docsIgnore */
|
|
2761
|
+
type FindMatchingContactsApplicationErrors = {
|
|
2762
|
+
code?: 'NO_IDENTIFIER_PROVIDED';
|
|
2763
|
+
description?: string;
|
|
2764
|
+
data?: Record<string, any>;
|
|
2765
|
+
};
|
|
2766
|
+
/** @docsIgnore */
|
|
2767
|
+
type GenerateContactImageUploadUrlApplicationErrors = {
|
|
2768
|
+
code?: 'INVALID_MIME_TYPE';
|
|
2769
|
+
description?: string;
|
|
2770
|
+
data?: Record<string, any>;
|
|
2771
|
+
};
|
|
2772
|
+
/** @docsIgnore */
|
|
2773
|
+
type AddContactAdditionalEmailApplicationErrors = {
|
|
2774
|
+
code?: 'EMAIL_REQUIRED';
|
|
2775
|
+
description?: string;
|
|
2776
|
+
data?: Record<string, any>;
|
|
2777
|
+
} | {
|
|
2778
|
+
code?: 'ADDITIONAL_EMAILS_LIMIT_REACHED';
|
|
2779
|
+
description?: string;
|
|
2780
|
+
data?: Record<string, any>;
|
|
2781
|
+
};
|
|
2782
|
+
/** @docsIgnore */
|
|
2783
|
+
type AddContactAdditionalPhoneApplicationErrors = {
|
|
2784
|
+
code?: 'PHONE_REQUIRED';
|
|
2785
|
+
description?: string;
|
|
2786
|
+
data?: Record<string, any>;
|
|
2787
|
+
} | {
|
|
2788
|
+
code?: 'ADDITIONAL_PHONES_LIMIT_REACHED';
|
|
2789
|
+
description?: string;
|
|
2790
|
+
data?: Record<string, any>;
|
|
2791
|
+
};
|
|
2792
|
+
/** @docsIgnore */
|
|
2793
|
+
type AddContactAddressApplicationErrors = {
|
|
2794
|
+
code?: 'ADDRESSES_LIMIT_REACHED';
|
|
2795
|
+
description?: string;
|
|
2796
|
+
data?: Record<string, any>;
|
|
2797
|
+
} | {
|
|
2798
|
+
code?: 'DUPLICATE_ADDRESS_ID';
|
|
2799
|
+
description?: string;
|
|
2800
|
+
data?: Record<string, any>;
|
|
2801
|
+
};
|
|
2802
|
+
/** @docsIgnore */
|
|
2803
|
+
type DeleteContactAddressApplicationErrors = {
|
|
2804
|
+
code?: 'ADDRESS_NOT_FOUND';
|
|
2805
|
+
description?: string;
|
|
2806
|
+
data?: Record<string, any>;
|
|
2807
|
+
} | {
|
|
2808
|
+
code?: 'DUPLICATE_ADDRESS_ID';
|
|
2809
|
+
description?: string;
|
|
2810
|
+
data?: Record<string, any>;
|
|
2811
|
+
};
|
|
2812
|
+
/** @docsIgnore */
|
|
2813
|
+
type UpdateContactAddressApplicationErrors = {
|
|
2814
|
+
code?: 'ADDRESS_NOT_FOUND';
|
|
2815
|
+
description?: string;
|
|
2816
|
+
data?: Record<string, any>;
|
|
2817
|
+
} | {
|
|
2818
|
+
code?: 'DUPLICATE_ADDRESS';
|
|
2819
|
+
description?: string;
|
|
2820
|
+
data?: Record<string, any>;
|
|
2821
|
+
};
|
|
2822
|
+
/** @docsIgnore */
|
|
2823
|
+
type BulkUpdateContactTagsApplicationErrors = {
|
|
2824
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
2825
|
+
description?: string;
|
|
2826
|
+
data?: Record<string, any>;
|
|
2827
|
+
};
|
|
2828
|
+
/** @docsIgnore */
|
|
2829
|
+
type BulkUpdateContactTagsByFilterApplicationErrors = {
|
|
2830
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
2831
|
+
description?: string;
|
|
2832
|
+
data?: Record<string, any>;
|
|
2833
|
+
};
|
|
2834
|
+
/** @docsIgnore */
|
|
2835
|
+
type BulkDeleteContactsApplicationErrors = {
|
|
2836
|
+
code?: 'UNAUTHORIZED_DELETE_MEMBER';
|
|
2837
|
+
description?: string;
|
|
2838
|
+
data?: Record<string, any>;
|
|
2839
|
+
};
|
|
2840
|
+
/** @docsIgnore */
|
|
2841
|
+
type BulkDeleteContactsByFilterApplicationErrors = {
|
|
2842
|
+
code?: 'UNAUTHORIZED_DELETE_MEMBER';
|
|
2843
|
+
description?: string;
|
|
2844
|
+
data?: Record<string, any>;
|
|
2845
|
+
};
|
|
2846
|
+
/** @docsIgnore */
|
|
2847
|
+
type GetContactImageUploadStatusApplicationErrors = {
|
|
2848
|
+
code?: 'UPLOAD_ID_NOT_FOUND';
|
|
2849
|
+
description?: string;
|
|
2850
|
+
data?: Record<string, any>;
|
|
2851
|
+
};
|
|
2852
|
+
|
|
2853
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
2854
|
+
getUrl: (context: any) => string;
|
|
2855
|
+
httpMethod: K;
|
|
2856
|
+
path: string;
|
|
2857
|
+
pathParams: M;
|
|
2858
|
+
__requestType: T;
|
|
2859
|
+
__originalRequestType: S;
|
|
2860
|
+
__responseType: Q;
|
|
2861
|
+
__originalResponseType: R;
|
|
2862
|
+
};
|
|
2863
|
+
declare function bulkUpdateContactSubscriptions(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateContactSubscriptionsRequest$1, BulkUpdateContactSubscriptionsRequest, BulkUpdateContactSubscriptionsResponse$1, BulkUpdateContactSubscriptionsResponse>;
|
|
2864
|
+
declare function createContact(): __PublicMethodMetaInfo<'POST', {}, CreateContactRequest$1, CreateContactRequest, CreateContactResponse$1, CreateContactResponse>;
|
|
2865
|
+
declare function getContact(): __PublicMethodMetaInfo<'GET', {
|
|
2866
|
+
contactId: string;
|
|
2867
|
+
}, GetContactRequest$1, GetContactRequest, GetContactResponse$1, GetContactResponse>;
|
|
2868
|
+
declare function updateContact(): __PublicMethodMetaInfo<'PATCH', {
|
|
2869
|
+
contactId: string;
|
|
2870
|
+
}, UpdateContactRequest$1, UpdateContactRequest, UpdateContactResponse$1, UpdateContactResponse>;
|
|
2871
|
+
declare function upsertContact(): __PublicMethodMetaInfo<'POST', {}, UpsertContactRequest$1, UpsertContactRequest, UpsertContactResponse$1, UpsertContactResponse>;
|
|
2872
|
+
declare function updateContactTags(): __PublicMethodMetaInfo<'POST', {
|
|
2873
|
+
contactId: string;
|
|
2874
|
+
}, UpdateContactTagsRequest$1, UpdateContactTagsRequest, UpdateContactTagsResponse$1, UpdateContactTagsResponse>;
|
|
2875
|
+
declare function mergeContacts(): __PublicMethodMetaInfo<'POST', {
|
|
2876
|
+
targetContactId: string;
|
|
2877
|
+
}, MergeContactsRequest$1, MergeContactsRequest, MergeContactsResponse$1, MergeContactsResponse>;
|
|
2878
|
+
declare function deleteContact(): __PublicMethodMetaInfo<'DELETE', {
|
|
2879
|
+
contactId: string;
|
|
2880
|
+
}, DeleteContactRequest$1, DeleteContactRequest, DeleteContactResponse$1, DeleteContactResponse>;
|
|
2881
|
+
declare function findMatchingContacts(): __PublicMethodMetaInfo<'GET', {}, FindMatchingContactsRequest$1, FindMatchingContactsRequest, FindMatchingContactsResponse$1, FindMatchingContactsResponse>;
|
|
2882
|
+
declare function queryContacts(): __PublicMethodMetaInfo<'GET', {}, QueryContactsRequest$1, QueryContactsRequest, QueryContactsResponse$1, QueryContactsResponse>;
|
|
2883
|
+
declare function searchContacts(): __PublicMethodMetaInfo<'GET', {}, SearchContactsRequest$1, SearchContactsRequest, SearchContactsResponse$1, SearchContactsResponse>;
|
|
2884
|
+
declare function countContacts(): __PublicMethodMetaInfo<'POST', {}, CountContactsRequest$1, CountContactsRequest, CountContactsResponse$1, CountContactsResponse>;
|
|
2885
|
+
declare function generateContactImageUploadUrl(): __PublicMethodMetaInfo<'POST', {
|
|
2886
|
+
contactId: string;
|
|
2887
|
+
}, GenerateContactImageUploadUrlRequest$1, GenerateContactImageUploadUrlRequest, GenerateContactImageUploadUrlResponse$1, GenerateContactImageUploadUrlResponse>;
|
|
2888
|
+
declare function addContactAdditionalEmail(): __PublicMethodMetaInfo<'POST', {
|
|
2889
|
+
contactId: string;
|
|
2890
|
+
}, AddContactAdditionalEmailRequest$1, AddContactAdditionalEmailRequest, AddContactAdditionalEmailResponse$1, AddContactAdditionalEmailResponse>;
|
|
2891
|
+
declare function addContactAdditionalPhone(): __PublicMethodMetaInfo<'POST', {
|
|
2892
|
+
contactId: string;
|
|
2893
|
+
}, AddContactAdditionalPhoneRequest$1, AddContactAdditionalPhoneRequest, AddContactAdditionalPhoneResponse$1, AddContactAdditionalPhoneResponse>;
|
|
2894
|
+
declare function addContactAddress(): __PublicMethodMetaInfo<'POST', {
|
|
2895
|
+
contactId: string;
|
|
2896
|
+
}, AddContactAddressRequest$1, AddContactAddressRequest, AddContactAddressResponse$1, AddContactAddressResponse>;
|
|
2897
|
+
declare function deleteContactAddress(): __PublicMethodMetaInfo<'DELETE', {
|
|
2898
|
+
contactId: string;
|
|
2899
|
+
addressId: string;
|
|
2900
|
+
}, DeleteContactAddressRequest$1, DeleteContactAddressRequest, DeleteContactAddressResponse$1, DeleteContactAddressResponse>;
|
|
2901
|
+
declare function updateContactAddress(): __PublicMethodMetaInfo<'PATCH', {
|
|
2902
|
+
contactId: string;
|
|
2903
|
+
addressId: string;
|
|
2904
|
+
}, UpdateContactAddressRequest$1, UpdateContactAddressRequest, UpdateContactAddressResponse$1, UpdateContactAddressResponse>;
|
|
2905
|
+
declare function bulkCreateContacts(): __PublicMethodMetaInfo<'POST', {}, BulkCreateContactsRequest$1, BulkCreateContactsRequest, BulkCreateContactsResponse$1, BulkCreateContactsResponse>;
|
|
2906
|
+
declare function bulkUpdateContacts(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateContactsRequest$1, BulkUpdateContactsRequest, BulkUpdateContactsResponse$1, BulkUpdateContactsResponse>;
|
|
2907
|
+
declare function bulkUpdateContactTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateContactTagsRequest$1, BulkUpdateContactTagsRequest, BulkUpdateContactTagsResponse$1, BulkUpdateContactTagsResponse>;
|
|
2908
|
+
declare function bulkUpdateContactTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateContactTagsByFilterRequest$1, BulkUpdateContactTagsByFilterRequest, BulkUpdateContactTagsByFilterResponse$1, BulkUpdateContactTagsByFilterResponse>;
|
|
2909
|
+
declare function bulkUpsertContacts(): __PublicMethodMetaInfo<'POST', {}, BulkUpsertContactsRequest$1, BulkUpsertContactsRequest, BulkUpsertContactsResponse$1, BulkUpsertContactsResponse>;
|
|
2910
|
+
declare function bulkDeleteContacts(): __PublicMethodMetaInfo<'POST', {}, BulkDeleteContactsRequest$1, BulkDeleteContactsRequest, BulkDeleteContactsResponse$1, BulkDeleteContactsResponse>;
|
|
2911
|
+
declare function bulkDeleteContactsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkDeleteContactsByFilterRequest$1, BulkDeleteContactsByFilterRequest, BulkDeleteContactsByFilterResponse$1, BulkDeleteContactsByFilterResponse>;
|
|
2912
|
+
declare function removeContactFromTrashBin(): __PublicMethodMetaInfo<'DELETE', {
|
|
2913
|
+
contactId: string;
|
|
2914
|
+
}, RemoveContactFromTrashBinRequest$1, RemoveContactFromTrashBinRequest, RemoveContactFromTrashBinResponse$1, RemoveContactFromTrashBinResponse>;
|
|
2915
|
+
declare function restoreContactFromTrashBin(): __PublicMethodMetaInfo<'POST', {
|
|
2916
|
+
contactId: string;
|
|
2917
|
+
}, RestoreContactFromTrashBinRequest$1, RestoreContactFromTrashBinRequest, RestoreContactFromTrashBinResponse$1, RestoreContactFromTrashBinResponse>;
|
|
2918
|
+
declare function bulkRestoreContactsFromTrashBin(): __PublicMethodMetaInfo<'POST', {}, BulkRestoreContactsFromTrashBinRequest$1, BulkRestoreContactsFromTrashBinRequest, BulkRestoreContactsFromTrashBinResponse$1, BulkRestoreContactsFromTrashBinResponse>;
|
|
2919
|
+
declare function getDeletedContact(): __PublicMethodMetaInfo<'GET', {
|
|
2920
|
+
contactId: string;
|
|
2921
|
+
}, GetDeletedContactRequest$1, GetDeletedContactRequest, GetDeletedContactResponse$1, GetDeletedContactResponse>;
|
|
2922
|
+
declare function listDeletedContacts(): __PublicMethodMetaInfo<'GET', {}, ListDeletedContactsRequest$1, ListDeletedContactsRequest, ListDeletedContactsResponse$1, ListDeletedContactsResponse>;
|
|
2923
|
+
declare function getContactImageUploadStatus(): __PublicMethodMetaInfo<'GET', {
|
|
2924
|
+
contactId: string;
|
|
2925
|
+
imageUploadId: string;
|
|
2926
|
+
}, GetContactImageUploadStatusRequest$1, GetContactImageUploadStatusRequest, GetContactImageUploadStatusResponse$1, GetContactImageUploadStatusResponse>;
|
|
2927
|
+
declare function bulkUpdatePhoneCountryCodeByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePhoneCountryCodeByFilterRequest$1, BulkUpdatePhoneCountryCodeByFilterRequest, BulkUpdatePhoneCountryCodeByFilterResponse$1, BulkUpdatePhoneCountryCodeByFilterResponse>;
|
|
2928
|
+
|
|
2929
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, Action as ActionOriginal, type ActionWithLiterals as ActionWithLiteralsOriginal, type AddContactAdditionalEmailApplicationErrors as AddContactAdditionalEmailApplicationErrorsOriginal, type AddContactAdditionalEmailRequest as AddContactAdditionalEmailRequestOriginal, type AddContactAdditionalEmailResponse as AddContactAdditionalEmailResponseOriginal, type AddContactAdditionalPhoneApplicationErrors as AddContactAdditionalPhoneApplicationErrorsOriginal, type AddContactAdditionalPhoneRequest as AddContactAdditionalPhoneRequestOriginal, type AddContactAdditionalPhoneResponse as AddContactAdditionalPhoneResponseOriginal, type AddContactAddressApplicationErrors as AddContactAddressApplicationErrorsOriginal, type AddContactAddressRequest as AddContactAddressRequestOriginal, type AddContactAddressResponse as AddContactAddressResponseOriginal, type AdditionalEmail as AdditionalEmailOriginal, type AdditionalPhone as AdditionalPhoneOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type AddressStreetOneOf as AddressStreetOneOfOriginal, AddressTag as AddressTagOriginal, type AddressTagWithLiterals as AddressTagWithLiteralsOriginal, type AggregationData as AggregationDataOriginal, type AggregationKindOneOf as AggregationKindOneOfOriginal, type Aggregation as AggregationOriginal, type AggregationResults as AggregationResultsOriginal, type AggregationResultsResultOneOf as AggregationResultsResultOneOfOriginal, type AggregationResultsScalarResult as AggregationResultsScalarResultOriginal, AggregationType as AggregationTypeOriginal, type AggregationTypeWithLiterals as AggregationTypeWithLiteralsOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkAddSegmentToContactsRequest as BulkAddSegmentToContactsRequestOriginal, type BulkAddSegmentToContactsResponse as BulkAddSegmentToContactsResponseOriginal, type BulkContactResult as BulkContactResultOriginal, type BulkCreateContactsRequest as BulkCreateContactsRequestOriginal, type BulkCreateContactsResponse as BulkCreateContactsResponseOriginal, type BulkDeleteContactsApplicationErrors as BulkDeleteContactsApplicationErrorsOriginal, type BulkDeleteContactsByFilterApplicationErrors as BulkDeleteContactsByFilterApplicationErrorsOriginal, type BulkDeleteContactsByFilterRequest as BulkDeleteContactsByFilterRequestOriginal, type BulkDeleteContactsByFilterResponse as BulkDeleteContactsByFilterResponseOriginal, type BulkDeleteContactsRequest as BulkDeleteContactsRequestOriginal, type BulkDeleteContactsResponseBulkContactResult as BulkDeleteContactsResponseBulkContactResultOriginal, type BulkDeleteContactsResponse as BulkDeleteContactsResponseOriginal, type BulkDelete as BulkDeleteOriginal, type BulkIndex as BulkIndexOriginal, type BulkRemoveSegmentFromContactsRequest as BulkRemoveSegmentFromContactsRequestOriginal, type BulkRemoveSegmentFromContactsResponse as BulkRemoveSegmentFromContactsResponseOriginal, type BulkRestoreContactsFromTrashBinRequest as BulkRestoreContactsFromTrashBinRequestOriginal, type BulkRestoreContactsFromTrashBinResponseBulkContactResult as BulkRestoreContactsFromTrashBinResponseBulkContactResultOriginal, type BulkRestoreContactsFromTrashBinResponse as BulkRestoreContactsFromTrashBinResponseOriginal, type BulkUpdateContactSubscriptionsApplicationErrors as BulkUpdateContactSubscriptionsApplicationErrorsOriginal, type BulkUpdateContactSubscriptionsRequest as BulkUpdateContactSubscriptionsRequestOriginal, type BulkUpdateContactSubscriptionsResponse as BulkUpdateContactSubscriptionsResponseOriginal, type BulkUpdateContactTagsApplicationErrors as BulkUpdateContactTagsApplicationErrorsOriginal, type BulkUpdateContactTagsByFilterApplicationErrors as BulkUpdateContactTagsByFilterApplicationErrorsOriginal, type BulkUpdateContactTagsByFilterRequest as BulkUpdateContactTagsByFilterRequestOriginal, type BulkUpdateContactTagsByFilterResponse as BulkUpdateContactTagsByFilterResponseOriginal, type BulkUpdateContactTagsRequest as BulkUpdateContactTagsRequestOriginal, type BulkUpdateContactTagsResponse as BulkUpdateContactTagsResponseOriginal, type BulkUpdateContactTagsResult as BulkUpdateContactTagsResultOriginal, type BulkUpdateContactsRequest as BulkUpdateContactsRequestOriginal, type BulkUpdateContactsResponseBulkContactResult as BulkUpdateContactsResponseBulkContactResultOriginal, type BulkUpdateContactsResponse as BulkUpdateContactsResponseOriginal, type BulkUpdatePhoneCountryCodeByFilterRequest as BulkUpdatePhoneCountryCodeByFilterRequestOriginal, type BulkUpdatePhoneCountryCodeByFilterResponse as BulkUpdatePhoneCountryCodeByFilterResponseOriginal, type BulkUpsertContactsRequestMaskedContact as BulkUpsertContactsRequestMaskedContactOriginal, type BulkUpsertContactsRequest as BulkUpsertContactsRequestOriginal, type BulkUpsertContactsResponseBulkContactResult as BulkUpsertContactsResponseBulkContactResultOriginal, type BulkUpsertContactsResponse as BulkUpsertContactsResponseOriginal, type ContactActivity as ContactActivityOriginal, type ContactAddress as ContactAddressOriginal, type ContactCompany as ContactCompanyOriginal, type ContactEmail as ContactEmailOriginal, type ContactEmailSubscriptionUpdated as ContactEmailSubscriptionUpdatedOriginal, type ContactImageUploaded as ContactImageUploadedOriginal, type ContactMerged as ContactMergedOriginal, type ContactName as ContactNameOriginal, type Contact as ContactOriginal, type ContactPhone as ContactPhoneOriginal, type ContactPhoneSubscriptionUpdated as ContactPhoneSubscriptionUpdatedOriginal, type ContactSource as ContactSourceOriginal, type ContactSubscription as ContactSubscriptionOriginal, type CountContactsRequest as CountContactsRequestOriginal, type CountContactsResponse as CountContactsResponseOriginal, type CreateContactApplicationErrors as CreateContactApplicationErrorsOriginal, type CreateContactRequest as CreateContactRequestOriginal, type CreateContactResponse as CreateContactResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type CursorSearch as CursorSearchOriginal, type CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DateHistogramAggregation as DateHistogramAggregationOriginal, type DateHistogramResult as DateHistogramResultOriginal, type DateHistogramResults as DateHistogramResultsOriginal, type DeleteContactAddressApplicationErrors as DeleteContactAddressApplicationErrorsOriginal, type DeleteContactAddressRequest as DeleteContactAddressRequestOriginal, type DeleteContactAddressResponse as DeleteContactAddressResponseOriginal, type DeleteContactApplicationErrors as DeleteContactApplicationErrorsOriginal, type DeleteContactRequest as DeleteContactRequestOriginal, type DeleteContactResponse as DeleteContactResponseOriginal, type Delete as DeleteOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateContactExists as DuplicateContactExistsOriginal, EmailDeliverabilityStatus as EmailDeliverabilityStatusOriginal, type EmailDeliverabilityStatusWithLiterals as EmailDeliverabilityStatusWithLiteralsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FailedMemberUpdate as FailedMemberUpdateOriginal, type FindMatchingContactsApplicationErrors as FindMatchingContactsApplicationErrorsOriginal, type FindMatchingContactsRequest as FindMatchingContactsRequestOriginal, type FindMatchingContactsResponse as FindMatchingContactsResponseOriginal, type GenerateContactImageUploadUrlApplicationErrors as GenerateContactImageUploadUrlApplicationErrorsOriginal, type GenerateContactImageUploadUrlRequest as GenerateContactImageUploadUrlRequestOriginal, type GenerateContactImageUploadUrlResponse as GenerateContactImageUploadUrlResponseOriginal, type GetContactImageUploadStatusApplicationErrors as GetContactImageUploadStatusApplicationErrorsOriginal, type GetContactImageUploadStatusRequest as GetContactImageUploadStatusRequestOriginal, type GetContactImageUploadStatusResponse as GetContactImageUploadStatusResponseOriginal, type GetContactRequest as GetContactRequestOriginal, type GetContactResponse as GetContactResponseOriginal, type GetDeletedContactRequest as GetDeletedContactRequestOriginal, type GetDeletedContactResponse as GetDeletedContactResponseOriginal, type GroupInfo as GroupInfoOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, ImageUploadStatus as ImageUploadStatusOriginal, type ImageUploadStatusWithLiterals as ImageUploadStatusWithLiteralsOriginal, type IncludeMissingValuesOptions as IncludeMissingValuesOptionsOriginal, type Index as IndexOriginal, Interval as IntervalOriginal, type IntervalWithLiterals as IntervalWithLiteralsOriginal, type ItemMetadata as ItemMetadataOriginal, type ListDeletedContactsRequest as ListDeletedContactsRequestOriginal, type ListDeletedContactsResponse as ListDeletedContactsResponseOriginal, type MaskedContact as MaskedContactOriginal, MatchType as MatchTypeOriginal, type MatchTypeWithLiterals as MatchTypeWithLiteralsOriginal, type MediaFileUploadedEvent as MediaFileUploadedEventOriginal, type MemberInfo as MemberInfoOriginal, MemberStatus as MemberStatusOriginal, type MemberStatusWithLiterals as MemberStatusWithLiteralsOriginal, type MergeContactsApplicationErrors as MergeContactsApplicationErrorsOriginal, type MergeContactsRequest as MergeContactsRequestOriginal, type MergeContactsResponse as MergeContactsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, MissingValues as MissingValuesOriginal, type MissingValuesWithLiterals as MissingValuesWithLiteralsOriginal, Mode as ModeOriginal, type ModeWithLiterals as ModeWithLiteralsOriginal, NameFormat as NameFormatOriginal, type NameFormatWithLiterals as NameFormatWithLiteralsOriginal, type NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOfOriginal, type NestedAggregationItem as NestedAggregationItemOriginal, type NestedAggregation as NestedAggregationOriginal, NestedAggregationType as NestedAggregationTypeOriginal, type NestedAggregationTypeWithLiterals as NestedAggregationTypeWithLiteralsOriginal, type NestedResultValue as NestedResultValueOriginal, type NestedResultValueResultOneOf as NestedResultValueResultOneOfOriginal, type NestedResults as NestedResultsOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, PhoneDeliverabilityStatus as PhoneDeliverabilityStatusOriginal, type PhoneDeliverabilityStatusWithLiterals as PhoneDeliverabilityStatusWithLiteralsOriginal, PhoneTag as PhoneTagOriginal, type PhoneTagWithLiterals as PhoneTagWithLiteralsOriginal, PrivacyStatus as PrivacyStatusOriginal, type PrivacyStatusWithLiterals as PrivacyStatusWithLiteralsOriginal, type PrivateTags as PrivateTagsOriginal, type ProfileInfo as ProfileInfoOriginal, QueryContactsByOffsetInternalRequestNameFormat as QueryContactsByOffsetInternalRequestNameFormatOriginal, type QueryContactsByOffsetInternalRequestNameFormatWithLiterals as QueryContactsByOffsetInternalRequestNameFormatWithLiteralsOriginal, type QueryContactsByOffsetInternalRequest as QueryContactsByOffsetInternalRequestOriginal, type QueryContactsByOffsetInternalResponse as QueryContactsByOffsetInternalResponseOriginal, type QueryContactsRequest as QueryContactsRequestOriginal, type QueryContactsResponse as QueryContactsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RangeAggregation as RangeAggregationOriginal, type RangeAggregationResult as RangeAggregationResultOriginal, type RangeBucket as RangeBucketOriginal, type RangeResult as RangeResultOriginal, type RangeResults as RangeResultsOriginal, type Recipient as RecipientOriginal, type ReindexEntityForFQDNActionOneOf as ReindexEntityForFQDNActionOneOfOriginal, type ReindexEntityForFQDN as ReindexEntityForFQDNOriginal, type ReindexMessageActionOneOf as ReindexMessageActionOneOfOriginal, type ReindexMessageDelete as ReindexMessageDeleteOriginal, type ReindexMessage as ReindexMessageOriginal, type RemoveContactFromTrashBinRequest as RemoveContactFromTrashBinRequestOriginal, type RemoveContactFromTrashBinResponse as RemoveContactFromTrashBinResponseOriginal, type ReportBatchCompleted as ReportBatchCompletedOriginal, type RestoreContactFromTrashBinRequest as RestoreContactFromTrashBinRequestOriginal, type RestoreContactFromTrashBinResponse as RestoreContactFromTrashBinResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type Results as ResultsOriginal, Role as RoleOriginal, type RoleWithLiterals as RoleWithLiteralsOriginal, type ScalarAggregation as ScalarAggregationOriginal, type ScalarResult as ScalarResultOriginal, ScalarType as ScalarTypeOriginal, type ScalarTypeWithLiterals as ScalarTypeWithLiteralsOriginal, type Schema as SchemaOriginal, type SearchContactsRequest as SearchContactsRequestOriginal, type SearchContactsResponse as SearchContactsResponseOriginal, type SearchDetails as SearchDetailsOriginal, type SessionInfo as SessionInfoOriginal, SortDirection as SortDirectionOriginal, type SortDirectionWithLiterals as SortDirectionWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, SortType as SortTypeOriginal, type SortTypeWithLiterals as SortTypeWithLiteralsOriginal, type Sorting as SortingOriginal, type StandardDetails as StandardDetailsOriginal, type StreetAddress as StreetAddressOriginal, type Subdivision as SubdivisionOriginal, SubdivisionType as SubdivisionTypeOriginal, type SubdivisionTypeWithLiterals as SubdivisionTypeWithLiteralsOriginal, SubscriptionStatus as SubscriptionStatusOriginal, type SubscriptionStatusWithLiterals as SubscriptionStatusWithLiteralsOriginal, type TagList as TagListOriginal, type UpdateContactAddressApplicationErrors as UpdateContactAddressApplicationErrorsOriginal, type UpdateContactAddressRequest as UpdateContactAddressRequestOriginal, type UpdateContactAddressResponse as UpdateContactAddressResponseOriginal, type UpdateContactApplicationErrors as UpdateContactApplicationErrorsOriginal, type UpdateContactRequest as UpdateContactRequestOriginal, type UpdateContactResponse as UpdateContactResponseOriginal, type UpdateContactTagsApplicationErrors as UpdateContactTagsApplicationErrorsOriginal, type UpdateContactTagsRequest as UpdateContactTagsRequestOriginal, type UpdateContactTagsResponse as UpdateContactTagsResponseOriginal, type UpsertContactApplicationErrors as UpsertContactApplicationErrorsOriginal, type UpsertContactRequest as UpsertContactRequestOriginal, UpsertContactResponseAction as UpsertContactResponseActionOriginal, type UpsertContactResponseActionWithLiterals as UpsertContactResponseActionWithLiteralsOriginal, type UpsertContactResponse as UpsertContactResponseOriginal, UpsertMode as UpsertModeOriginal, type UpsertModeWithLiterals as UpsertModeWithLiteralsOriginal, type Upsert as UpsertOriginal, type UserInfo as UserInfoOriginal, V5SubscriptionStatus as V5SubscriptionStatusOriginal, type V5SubscriptionStatusWithLiterals as V5SubscriptionStatusWithLiteralsOriginal, type ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOfOriginal, type ValueAggregation as ValueAggregationOriginal, type ValueAggregationResult as ValueAggregationResultOriginal, type ValueResult as ValueResultOriginal, type ValueResults as ValueResultsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, addContactAdditionalEmail, addContactAdditionalPhone, addContactAddress, bulkCreateContacts, bulkDeleteContacts, bulkDeleteContactsByFilter, bulkRestoreContactsFromTrashBin, bulkUpdateContactSubscriptions, bulkUpdateContactTags, bulkUpdateContactTagsByFilter, bulkUpdateContacts, bulkUpdatePhoneCountryCodeByFilter, bulkUpsertContacts, countContacts, createContact, deleteContact, deleteContactAddress, findMatchingContacts, generateContactImageUploadUrl, getContact, getContactImageUploadStatus, getDeletedContact, listDeletedContacts, mergeContacts, queryContacts, removeContactFromTrashBin, restoreContactFromTrashBin, searchContacts, updateContact, updateContactAddress, updateContactTags, upsertContact };
|