@wix/auto_sdk_crm_contacts 1.0.256 → 1.0.258
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/contacts-v4-contact-contacts.context.d.ts +36 -0
- package/build/cjs/src/contacts-v4-contact-contacts.context.js +61 -0
- package/build/cjs/src/contacts-v4-contact-contacts.context.js.map +1 -0
- package/build/cjs/src/contacts-v4-contact-contacts.http.d.ts +126 -0
- package/build/cjs/src/contacts-v4-contact-contacts.http.js +555 -0
- package/build/cjs/src/contacts-v4-contact-contacts.http.js.map +1 -0
- package/build/cjs/src/contacts-v4-contact-contacts.meta.d.ts +32 -0
- package/build/cjs/src/contacts-v4-contact-contacts.meta.js +180 -0
- package/build/cjs/src/contacts-v4-contact-contacts.meta.js.map +1 -0
- package/build/{internal/index.d.ts → cjs/src/contacts-v4-contact-contacts.public.d.ts} +18 -43
- package/build/cjs/src/contacts-v4-contact-contacts.public.js +193 -0
- package/build/cjs/src/contacts-v4-contact-contacts.public.js.map +1 -0
- package/build/{contacts-v4-contact-contacts.universal-B3uIE5qF.d.mts → cjs/src/contacts-v4-contact-contacts.types.d.ts} +193 -363
- package/build/cjs/src/contacts-v4-contact-contacts.types.js +278 -0
- package/build/cjs/src/contacts-v4-contact-contacts.types.js.map +1 -0
- package/build/cjs/src/contacts-v4-contact-contacts.universal.d.ts +2398 -0
- package/build/cjs/src/contacts-v4-contact-contacts.universal.js +911 -0
- package/build/cjs/src/contacts-v4-contact-contacts.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/contacts-v4-contact-contacts.context.d.ts +36 -0
- package/build/es/src/contacts-v4-contact-contacts.context.js +36 -0
- package/build/es/src/contacts-v4-contact-contacts.context.js.map +1 -0
- package/build/es/src/contacts-v4-contact-contacts.http.d.ts +126 -0
- package/build/es/src/contacts-v4-contact-contacts.http.js +544 -0
- package/build/es/src/contacts-v4-contact-contacts.http.js.map +1 -0
- package/build/es/src/contacts-v4-contact-contacts.meta.d.ts +32 -0
- package/build/es/src/contacts-v4-contact-contacts.meta.js +146 -0
- package/build/es/src/contacts-v4-contact-contacts.meta.js.map +1 -0
- package/build/{index.d.ts → es/src/contacts-v4-contact-contacts.public.d.ts} +18 -43
- package/build/es/src/contacts-v4-contact-contacts.public.js +160 -0
- package/build/es/src/contacts-v4-contact-contacts.public.js.map +1 -0
- package/build/{contacts-v4-contact-contacts.universal-B3uIE5qF.d.ts → es/src/contacts-v4-contact-contacts.types.d.ts} +193 -363
- package/build/es/src/contacts-v4-contact-contacts.types.js +275 -0
- package/build/es/src/contacts-v4-contact-contacts.types.js.map +1 -0
- package/build/es/src/contacts-v4-contact-contacts.universal.d.ts +2398 -0
- package/build/es/src/contacts-v4-contact-contacts.universal.js +877 -0
- package/build/es/src/contacts-v4-contact-contacts.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.context.d.ts +36 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.context.js +61 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.context.js.map +1 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.http.d.ts +126 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.http.js +555 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.http.js.map +1 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.d.ts +32 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.js +180 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.js.map +1 -0
- package/build/internal/{index.d.mts → cjs/src/contacts-v4-contact-contacts.public.d.ts} +18 -43
- package/build/internal/cjs/src/contacts-v4-contact-contacts.public.js +193 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.public.js.map +1 -0
- package/build/internal/{contacts-v4-contact-contacts.universal-CdMlf2ui.d.ts → cjs/src/contacts-v4-contact-contacts.types.d.ts} +189 -370
- package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js +278 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js.map +1 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.d.ts +2409 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js +911 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.context.d.ts +36 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.context.js +36 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.context.js.map +1 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.http.d.ts +126 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.http.js +544 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.http.js.map +1 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.meta.d.ts +32 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.meta.js +146 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.meta.js.map +1 -0
- package/build/{index.d.mts → internal/es/src/contacts-v4-contact-contacts.public.d.ts} +18 -43
- package/build/internal/es/src/contacts-v4-contact-contacts.public.js +160 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.public.js.map +1 -0
- package/build/internal/{contacts-v4-contact-contacts.universal-CdMlf2ui.d.mts → es/src/contacts-v4-contact-contacts.types.d.ts} +189 -370
- package/build/internal/es/src/contacts-v4-contact-contacts.types.js +275 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.types.js.map +1 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.d.ts +2409 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.js +877 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.js +0 -1338
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -1281
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js +0 -1338
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -1281
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -914
- package/build/internal/meta.d.ts +0 -914
- package/build/internal/meta.js +0 -618
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -584
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -914
- package/build/meta.d.ts +0 -914
- package/build/meta.js +0 -618
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -584
- package/build/meta.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
interface Contact {
|
|
1
|
+
export interface Contact {
|
|
2
2
|
/**
|
|
3
3
|
* Contact ID.
|
|
4
4
|
* @format GUID
|
|
5
5
|
* @readonly
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
id?: string;
|
|
8
8
|
/**
|
|
9
9
|
* Revision number, which increments by 1 each time the contact is updated.
|
|
10
10
|
* To prevent conflicting changes,
|
|
@@ -21,12 +21,12 @@ interface Contact {
|
|
|
21
21
|
* Date and time the contact was created.
|
|
22
22
|
* @readonly
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
createdDate?: Date | null;
|
|
25
25
|
/**
|
|
26
26
|
* Date and time the contact was last updated.
|
|
27
27
|
* @readonly
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
updatedDate?: Date | null;
|
|
30
30
|
/**
|
|
31
31
|
* Details about the contact's last action in the site.
|
|
32
32
|
* @readonly
|
|
@@ -50,7 +50,7 @@ interface Contact {
|
|
|
50
50
|
*/
|
|
51
51
|
primaryPhone?: PrimaryPhone;
|
|
52
52
|
}
|
|
53
|
-
interface ContactSource {
|
|
53
|
+
export interface ContactSource {
|
|
54
54
|
/**
|
|
55
55
|
* Source type.
|
|
56
56
|
* @readonly
|
|
@@ -63,7 +63,7 @@ interface ContactSource {
|
|
|
63
63
|
*/
|
|
64
64
|
appId?: string | null;
|
|
65
65
|
}
|
|
66
|
-
declare enum ContactSourceType {
|
|
66
|
+
export declare enum ContactSourceType {
|
|
67
67
|
OTHER = "OTHER",
|
|
68
68
|
ADMIN = "ADMIN",
|
|
69
69
|
WIX_APP = "WIX_APP",
|
|
@@ -84,13 +84,13 @@ declare enum ContactSourceType {
|
|
|
84
84
|
WIX_CODE = "WIX_CODE",
|
|
85
85
|
HOPP = "HOPP"
|
|
86
86
|
}
|
|
87
|
-
interface ContactActivity {
|
|
87
|
+
export interface ContactActivity {
|
|
88
88
|
/** Date and time of the last action. */
|
|
89
89
|
activityDate?: Date | null;
|
|
90
90
|
/** Contact's last action in the site. */
|
|
91
91
|
activityType?: ContactActivityType;
|
|
92
92
|
}
|
|
93
|
-
declare enum ContactActivityType {
|
|
93
|
+
export declare enum ContactActivityType {
|
|
94
94
|
/** Visited the site. */
|
|
95
95
|
GENERAL = "GENERAL",
|
|
96
96
|
/** Became a new contact. */
|
|
@@ -174,7 +174,7 @@ declare enum ContactActivityType {
|
|
|
174
174
|
/** Subscribed to phone notifications. */
|
|
175
175
|
PHONE_SUBSCRIPTION_UNSUBSCRIBE = "PHONE_SUBSCRIPTION_UNSUBSCRIBE"
|
|
176
176
|
}
|
|
177
|
-
interface ActivityIcon {
|
|
177
|
+
export interface ActivityIcon {
|
|
178
178
|
/**
|
|
179
179
|
* Icon name
|
|
180
180
|
* @maxLength 50
|
|
@@ -186,7 +186,7 @@ interface ActivityIcon {
|
|
|
186
186
|
*/
|
|
187
187
|
url?: string | null;
|
|
188
188
|
}
|
|
189
|
-
interface PrimaryContactInfo {
|
|
189
|
+
export interface PrimaryContactInfo {
|
|
190
190
|
/**
|
|
191
191
|
* Primary email address.
|
|
192
192
|
*
|
|
@@ -205,7 +205,27 @@ interface PrimaryContactInfo {
|
|
|
205
205
|
*/
|
|
206
206
|
phone?: string | null;
|
|
207
207
|
}
|
|
208
|
-
interface
|
|
208
|
+
export interface Image {
|
|
209
|
+
/**
|
|
210
|
+
* WixMedia image ID.
|
|
211
|
+
* This property is written by Wix when an image is uploaded to the Wix Media Manager.
|
|
212
|
+
*/
|
|
213
|
+
id?: string;
|
|
214
|
+
/** Image source: Either a Media Manager URL or external URL. */
|
|
215
|
+
url?: string;
|
|
216
|
+
/** Height of the original image. */
|
|
217
|
+
height?: number;
|
|
218
|
+
/** Width of the original image. */
|
|
219
|
+
width?: number;
|
|
220
|
+
/** Image alt text (optional). */
|
|
221
|
+
altText?: string | null;
|
|
222
|
+
/**
|
|
223
|
+
* Image URL expiration date (optional).
|
|
224
|
+
* @readonly
|
|
225
|
+
*/
|
|
226
|
+
urlExpirationDate?: Date | null;
|
|
227
|
+
}
|
|
228
|
+
export interface ContactInfo {
|
|
209
229
|
/** Contact's first and last name. */
|
|
210
230
|
name?: ContactName;
|
|
211
231
|
/** Contact's email addresses. */
|
|
@@ -256,7 +276,7 @@ interface ContactInfo {
|
|
|
256
276
|
/** Contact's profile picture. */
|
|
257
277
|
picture?: ContactPicture;
|
|
258
278
|
}
|
|
259
|
-
interface ContactName {
|
|
279
|
+
export interface ContactName {
|
|
260
280
|
/**
|
|
261
281
|
* Contact's first name.
|
|
262
282
|
* @maxLength 1000
|
|
@@ -268,20 +288,20 @@ interface ContactName {
|
|
|
268
288
|
*/
|
|
269
289
|
last?: string | null;
|
|
270
290
|
}
|
|
271
|
-
interface ContactEmailsWrapper {
|
|
291
|
+
export interface ContactEmailsWrapper {
|
|
272
292
|
/**
|
|
273
293
|
* List of up to 50 email addresses.
|
|
274
294
|
* @maxSize 50
|
|
275
295
|
*/
|
|
276
296
|
items?: ContactEmail[];
|
|
277
297
|
}
|
|
278
|
-
interface ContactEmail {
|
|
298
|
+
export interface ContactEmail {
|
|
279
299
|
/**
|
|
280
300
|
* Email ID.
|
|
281
301
|
* @format GUID
|
|
282
302
|
* @readonly
|
|
283
303
|
*/
|
|
284
|
-
|
|
304
|
+
id?: string | null;
|
|
285
305
|
/**
|
|
286
306
|
* Email type.
|
|
287
307
|
*
|
|
@@ -302,26 +322,26 @@ interface ContactEmail {
|
|
|
302
322
|
*/
|
|
303
323
|
primary?: boolean | null;
|
|
304
324
|
}
|
|
305
|
-
declare enum EmailTag {
|
|
325
|
+
export declare enum EmailTag {
|
|
306
326
|
UNTAGGED = "UNTAGGED",
|
|
307
327
|
MAIN = "MAIN",
|
|
308
328
|
HOME = "HOME",
|
|
309
329
|
WORK = "WORK"
|
|
310
330
|
}
|
|
311
|
-
interface ContactPhonesWrapper {
|
|
331
|
+
export interface ContactPhonesWrapper {
|
|
312
332
|
/**
|
|
313
333
|
* List of up to 50 phone numbers.
|
|
314
334
|
* @maxSize 50
|
|
315
335
|
*/
|
|
316
336
|
items?: ContactPhone[];
|
|
317
337
|
}
|
|
318
|
-
interface ContactPhone {
|
|
338
|
+
export interface ContactPhone {
|
|
319
339
|
/**
|
|
320
340
|
* Phone ID.
|
|
321
341
|
* @format GUID
|
|
322
342
|
* @readonly
|
|
323
343
|
*/
|
|
324
|
-
|
|
344
|
+
id?: string | null;
|
|
325
345
|
/**
|
|
326
346
|
* Phone type.
|
|
327
347
|
*
|
|
@@ -354,7 +374,7 @@ interface ContactPhone {
|
|
|
354
374
|
*/
|
|
355
375
|
primary?: boolean | null;
|
|
356
376
|
}
|
|
357
|
-
declare enum PhoneTag {
|
|
377
|
+
export declare enum PhoneTag {
|
|
358
378
|
UNTAGGED = "UNTAGGED",
|
|
359
379
|
MAIN = "MAIN",
|
|
360
380
|
HOME = "HOME",
|
|
@@ -362,20 +382,20 @@ declare enum PhoneTag {
|
|
|
362
382
|
WORK = "WORK",
|
|
363
383
|
FAX = "FAX"
|
|
364
384
|
}
|
|
365
|
-
interface ContactAddressesWrapper {
|
|
385
|
+
export interface ContactAddressesWrapper {
|
|
366
386
|
/**
|
|
367
387
|
* List of up to 50 addresses.
|
|
368
388
|
* @maxSize 50
|
|
369
389
|
*/
|
|
370
390
|
items?: ContactAddress[];
|
|
371
391
|
}
|
|
372
|
-
interface ContactAddress {
|
|
392
|
+
export interface ContactAddress {
|
|
373
393
|
/**
|
|
374
394
|
* Street address ID.
|
|
375
395
|
* @format GUID
|
|
376
396
|
* @readonly
|
|
377
397
|
*/
|
|
378
|
-
|
|
398
|
+
id?: string | null;
|
|
379
399
|
/**
|
|
380
400
|
* Address type.
|
|
381
401
|
* `UNTAGGED` is shown as "Other" in the Contact List.
|
|
@@ -384,7 +404,7 @@ interface ContactAddress {
|
|
|
384
404
|
/** Street address. */
|
|
385
405
|
address?: Address;
|
|
386
406
|
}
|
|
387
|
-
declare enum AddressTag {
|
|
407
|
+
export declare enum AddressTag {
|
|
388
408
|
UNTAGGED = "UNTAGGED",
|
|
389
409
|
HOME = "HOME",
|
|
390
410
|
WORK = "WORK",
|
|
@@ -392,14 +412,14 @@ declare enum AddressTag {
|
|
|
392
412
|
SHIPPING = "SHIPPING"
|
|
393
413
|
}
|
|
394
414
|
/** Physical address */
|
|
395
|
-
interface Address extends AddressStreetOneOf {
|
|
415
|
+
export interface Address extends AddressStreetOneOf {
|
|
396
416
|
/** Street address object, with number and name in separate fields. */
|
|
397
417
|
streetAddress?: StreetAddress;
|
|
398
418
|
/**
|
|
399
419
|
* Main address line, usually street and number, as free text.
|
|
400
420
|
* @maxLength 1000
|
|
401
421
|
*/
|
|
402
|
-
|
|
422
|
+
addressLine?: string | null;
|
|
403
423
|
/**
|
|
404
424
|
* 2-letter country code in an
|
|
405
425
|
* [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
|
|
@@ -430,7 +450,7 @@ interface Address extends AddressStreetOneOf {
|
|
|
430
450
|
addressLine2?: string | null;
|
|
431
451
|
}
|
|
432
452
|
/** @oneof */
|
|
433
|
-
interface AddressStreetOneOf {
|
|
453
|
+
export interface AddressStreetOneOf {
|
|
434
454
|
/** Street address object, with number and name in separate fields. */
|
|
435
455
|
streetAddress?: StreetAddress;
|
|
436
456
|
/**
|
|
@@ -439,7 +459,7 @@ interface AddressStreetOneOf {
|
|
|
439
459
|
*/
|
|
440
460
|
addressLine?: string | null;
|
|
441
461
|
}
|
|
442
|
-
interface StreetAddress {
|
|
462
|
+
export interface StreetAddress {
|
|
443
463
|
/**
|
|
444
464
|
* Street number.
|
|
445
465
|
* @maxLength 100
|
|
@@ -451,19 +471,19 @@ interface StreetAddress {
|
|
|
451
471
|
*/
|
|
452
472
|
name?: string;
|
|
453
473
|
}
|
|
454
|
-
interface AddressLocation {
|
|
474
|
+
export interface AddressLocation {
|
|
455
475
|
/** Address's latitude. */
|
|
456
476
|
latitude?: number | null;
|
|
457
477
|
/** Address's longitude. */
|
|
458
478
|
longitude?: number | null;
|
|
459
479
|
}
|
|
460
|
-
interface Subdivision {
|
|
480
|
+
export interface Subdivision {
|
|
461
481
|
/** subdivision short code */
|
|
462
482
|
code?: string;
|
|
463
483
|
/** Full subdivision name. */
|
|
464
484
|
name?: string;
|
|
465
485
|
}
|
|
466
|
-
declare enum SubdivisionType {
|
|
486
|
+
export declare enum SubdivisionType {
|
|
467
487
|
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
468
488
|
/** State */
|
|
469
489
|
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
@@ -478,7 +498,7 @@ declare enum SubdivisionType {
|
|
|
478
498
|
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
479
499
|
COUNTRY = "COUNTRY"
|
|
480
500
|
}
|
|
481
|
-
interface AssigneesWrapper {
|
|
501
|
+
export interface AssigneesWrapper {
|
|
482
502
|
/**
|
|
483
503
|
* List of site contributor user IDs.
|
|
484
504
|
* @format GUID
|
|
@@ -486,7 +506,7 @@ interface AssigneesWrapper {
|
|
|
486
506
|
*/
|
|
487
507
|
items?: string[];
|
|
488
508
|
}
|
|
489
|
-
interface LabelsWrapper {
|
|
509
|
+
export interface LabelsWrapper {
|
|
490
510
|
/**
|
|
491
511
|
* List of contact label keys.
|
|
492
512
|
*
|
|
@@ -496,7 +516,7 @@ interface LabelsWrapper {
|
|
|
496
516
|
*/
|
|
497
517
|
items?: string[];
|
|
498
518
|
}
|
|
499
|
-
interface ExtendedFieldsWrapper {
|
|
519
|
+
export interface ExtendedFieldsWrapper {
|
|
500
520
|
/**
|
|
501
521
|
* Contact's extended fields,
|
|
502
522
|
* where each key is the field key,
|
|
@@ -506,7 +526,7 @@ interface ExtendedFieldsWrapper {
|
|
|
506
526
|
*/
|
|
507
527
|
items?: Record<string, any>;
|
|
508
528
|
}
|
|
509
|
-
interface LocationsWrapper {
|
|
529
|
+
export interface LocationsWrapper {
|
|
510
530
|
/**
|
|
511
531
|
* List of location ids.
|
|
512
532
|
* @format GUID
|
|
@@ -515,21 +535,21 @@ interface LocationsWrapper {
|
|
|
515
535
|
items?: string[];
|
|
516
536
|
}
|
|
517
537
|
/** TEST contact picture description */
|
|
518
|
-
interface ContactPicture {
|
|
538
|
+
export interface ContactPicture {
|
|
519
539
|
/**
|
|
520
540
|
* Image.
|
|
521
541
|
* This can contain an image URL or a Wix Media image ID.
|
|
522
542
|
*/
|
|
523
|
-
image?:
|
|
543
|
+
image?: Image;
|
|
524
544
|
}
|
|
525
|
-
declare enum ImageProvider {
|
|
545
|
+
export declare enum ImageProvider {
|
|
526
546
|
UNKNOWN = "UNKNOWN",
|
|
527
547
|
/** Image stored outside Wix */
|
|
528
548
|
EXTERNAL = "EXTERNAL",
|
|
529
549
|
/** Stored in wix media platform, Must be uploaded by using `GeneratePictureUploadUrl` */
|
|
530
550
|
WIX_MEDIA = "WIX_MEDIA"
|
|
531
551
|
}
|
|
532
|
-
interface SegmentsWrapper {
|
|
552
|
+
export interface SegmentsWrapper {
|
|
533
553
|
/**
|
|
534
554
|
* List of Contact segment IDs
|
|
535
555
|
* @maxSize 60
|
|
@@ -537,7 +557,7 @@ interface SegmentsWrapper {
|
|
|
537
557
|
*/
|
|
538
558
|
items?: string[];
|
|
539
559
|
}
|
|
540
|
-
interface PrimaryEmail {
|
|
560
|
+
export interface PrimaryEmail {
|
|
541
561
|
/**
|
|
542
562
|
* Primary email address.
|
|
543
563
|
*
|
|
@@ -562,7 +582,7 @@ interface PrimaryEmail {
|
|
|
562
582
|
*/
|
|
563
583
|
deliverabilityStatus?: EmailDeliverabilityStatus;
|
|
564
584
|
}
|
|
565
|
-
declare enum SubscriptionStatus {
|
|
585
|
+
export declare enum SubscriptionStatus {
|
|
566
586
|
/** No status exists. */
|
|
567
587
|
NO_SUBSCRIPTION_STATUS = "NO_SUBSCRIPTION_STATUS",
|
|
568
588
|
/** No status specified. */
|
|
@@ -574,7 +594,7 @@ declare enum SubscriptionStatus {
|
|
|
574
594
|
/** Recipient has opted out of marketing emails or SMS messages. */
|
|
575
595
|
UNSUBSCRIBED = "UNSUBSCRIBED"
|
|
576
596
|
}
|
|
577
|
-
declare enum EmailDeliverabilityStatus {
|
|
597
|
+
export declare enum EmailDeliverabilityStatus {
|
|
578
598
|
/** No status reported. */
|
|
579
599
|
NOT_SET = "NOT_SET",
|
|
580
600
|
/** Emails are being successfully delivered. */
|
|
@@ -586,7 +606,7 @@ declare enum EmailDeliverabilityStatus {
|
|
|
586
606
|
/** Multiple emails have been delivered without any kind of engagement from the recipient. */
|
|
587
607
|
INACTIVE = "INACTIVE"
|
|
588
608
|
}
|
|
589
|
-
interface PrimaryPhone {
|
|
609
|
+
export interface PrimaryPhone {
|
|
590
610
|
/**
|
|
591
611
|
* Country code of the primary phone number in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
|
|
592
612
|
* @format COUNTRY
|
|
@@ -621,13 +641,13 @@ interface PrimaryPhone {
|
|
|
621
641
|
*/
|
|
622
642
|
phone?: string | null;
|
|
623
643
|
}
|
|
624
|
-
declare enum PhoneDeliverabilityStatus {
|
|
644
|
+
export declare enum PhoneDeliverabilityStatus {
|
|
625
645
|
/** No status exists. */
|
|
626
646
|
NO_PHONE_DELIVERABILITY_STATUS = "NO_PHONE_DELIVERABILITY_STATUS",
|
|
627
647
|
/** No status reported. */
|
|
628
648
|
NOT_SET = "NOT_SET"
|
|
629
649
|
}
|
|
630
|
-
interface MemberInfo {
|
|
650
|
+
export interface MemberInfo {
|
|
631
651
|
/**
|
|
632
652
|
* Member ID
|
|
633
653
|
* @format GUID
|
|
@@ -661,14 +681,14 @@ interface MemberInfo {
|
|
|
661
681
|
/** Group info */
|
|
662
682
|
groupInfo?: GroupInfo;
|
|
663
683
|
}
|
|
664
|
-
declare enum MemberStatus {
|
|
684
|
+
export declare enum MemberStatus {
|
|
665
685
|
PENDING = "PENDING",
|
|
666
686
|
ACTIVE = "ACTIVE",
|
|
667
687
|
DELETED = "DELETED",
|
|
668
688
|
BLOCKED = "BLOCKED",
|
|
669
689
|
OFFLINE = "OFFLINE"
|
|
670
690
|
}
|
|
671
|
-
interface ProfileInfo {
|
|
691
|
+
export interface ProfileInfo {
|
|
672
692
|
/**
|
|
673
693
|
* Nickname
|
|
674
694
|
* @maxLength 255
|
|
@@ -681,13 +701,13 @@ interface ProfileInfo {
|
|
|
681
701
|
/** Indicate whether the member is muted */
|
|
682
702
|
muted?: boolean | null;
|
|
683
703
|
/** Profile photo */
|
|
684
|
-
photo?:
|
|
704
|
+
photo?: Image;
|
|
685
705
|
}
|
|
686
|
-
declare enum PrivacyStatus {
|
|
706
|
+
export declare enum PrivacyStatus {
|
|
687
707
|
PRIVATE = "PRIVATE",
|
|
688
708
|
PUBLIC = "PUBLIC"
|
|
689
709
|
}
|
|
690
|
-
interface UserInfo {
|
|
710
|
+
export interface UserInfo {
|
|
691
711
|
/**
|
|
692
712
|
* User ID
|
|
693
713
|
* @format GUID
|
|
@@ -696,12 +716,12 @@ interface UserInfo {
|
|
|
696
716
|
/** The user's role on the website */
|
|
697
717
|
role?: Role;
|
|
698
718
|
}
|
|
699
|
-
declare enum Role {
|
|
719
|
+
export declare enum Role {
|
|
700
720
|
UNSPECIFIED_ROLE = "UNSPECIFIED_ROLE",
|
|
701
721
|
OWNER = "OWNER",
|
|
702
722
|
CONTRIBUTOR = "CONTRIBUTOR"
|
|
703
723
|
}
|
|
704
|
-
interface SessionInfo {
|
|
724
|
+
export interface SessionInfo {
|
|
705
725
|
/** Last time the member logged in to the website */
|
|
706
726
|
lastWebLogin?: Date | null;
|
|
707
727
|
/** Last time the member logged in to one of the mobile apps */
|
|
@@ -713,7 +733,7 @@ interface SessionInfo {
|
|
|
713
733
|
*/
|
|
714
734
|
mobileAppNames?: string[];
|
|
715
735
|
}
|
|
716
|
-
interface GroupInfo {
|
|
736
|
+
export interface GroupInfo {
|
|
717
737
|
/**
|
|
718
738
|
* Group IDs
|
|
719
739
|
* @format GUID
|
|
@@ -721,7 +741,7 @@ interface GroupInfo {
|
|
|
721
741
|
*/
|
|
722
742
|
groupIds?: string[];
|
|
723
743
|
}
|
|
724
|
-
interface ContactSubmitted {
|
|
744
|
+
export interface ContactSubmitted {
|
|
725
745
|
/** Pass through data, submitted with the contact */
|
|
726
746
|
passThroughData?: string | null;
|
|
727
747
|
/** Submitted activity */
|
|
@@ -729,13 +749,13 @@ interface ContactSubmitted {
|
|
|
729
749
|
/** Submitted Contact (after processing) */
|
|
730
750
|
contact?: Contact;
|
|
731
751
|
}
|
|
732
|
-
interface ContactChanged {
|
|
752
|
+
export interface ContactChanged {
|
|
733
753
|
/** The Contact before the changes */
|
|
734
754
|
previousContact?: Contact;
|
|
735
755
|
/** The Contact after the changes */
|
|
736
756
|
currentContact?: Contact;
|
|
737
757
|
}
|
|
738
|
-
interface ContactEmailSubscriptionUpdated {
|
|
758
|
+
export interface ContactEmailSubscriptionUpdated {
|
|
739
759
|
/** The updated contact ID. */
|
|
740
760
|
contactId?: string;
|
|
741
761
|
/** The revision of the contact. */
|
|
@@ -743,9 +763,9 @@ interface ContactEmailSubscriptionUpdated {
|
|
|
743
763
|
/** The primary email of the contact with the updated subscription and deliverability status. */
|
|
744
764
|
primaryEmail?: PrimaryEmail;
|
|
745
765
|
/** Date and time the contact was updated with the email subscription or deliverability status. */
|
|
746
|
-
|
|
766
|
+
updatedDate?: Date | null;
|
|
747
767
|
}
|
|
748
|
-
interface ContactPhoneSubscriptionUpdated {
|
|
768
|
+
export interface ContactPhoneSubscriptionUpdated {
|
|
749
769
|
/** The updated contact ID. */
|
|
750
770
|
contactId?: string;
|
|
751
771
|
/** The revision of the contact. */
|
|
@@ -753,14 +773,14 @@ interface ContactPhoneSubscriptionUpdated {
|
|
|
753
773
|
/** The primary phone of the contact with the updated subscription status. */
|
|
754
774
|
primaryPhone?: PrimaryPhone;
|
|
755
775
|
/** Date and time the contact was updated with the SMS subscription status. */
|
|
756
|
-
|
|
776
|
+
updatedDate?: Date | null;
|
|
757
777
|
}
|
|
758
778
|
/**
|
|
759
779
|
* This message is an internal message used by this app and it is used to trigger
|
|
760
780
|
* the update of the subscription status of the contact asynchronously.
|
|
761
781
|
* It is published after a contact is created/updated/merged.
|
|
762
782
|
*/
|
|
763
|
-
interface ContactPrimaryInfoUpdated {
|
|
783
|
+
export interface ContactPrimaryInfoUpdated {
|
|
764
784
|
/** The updated contact ID. */
|
|
765
785
|
contactId?: string;
|
|
766
786
|
/** Indication whether the primary email was updated. */
|
|
@@ -772,7 +792,7 @@ interface ContactPrimaryInfoUpdated {
|
|
|
772
792
|
/** previous primary phone subscription status */
|
|
773
793
|
previousPrimaryPhoneSubscriptionStatus?: PrimarySubscriptionStatus;
|
|
774
794
|
}
|
|
775
|
-
interface PrimarySubscriptionStatus {
|
|
795
|
+
export interface PrimarySubscriptionStatus {
|
|
776
796
|
/** subscription status */
|
|
777
797
|
subscriptionStatus?: SubscriptionStatus;
|
|
778
798
|
}
|
|
@@ -780,7 +800,7 @@ interface PrimarySubscriptionStatus {
|
|
|
780
800
|
* This message is an internal message used by this app and it is used to trigger
|
|
781
801
|
* the update of the contact's last activity is done asynchronously.
|
|
782
802
|
*/
|
|
783
|
-
interface LastActivityUpdate {
|
|
803
|
+
export interface LastActivityUpdate {
|
|
784
804
|
/**
|
|
785
805
|
* The contact ID.
|
|
786
806
|
* @format GUID
|
|
@@ -800,7 +820,7 @@ interface LastActivityUpdate {
|
|
|
800
820
|
icon?: string | null;
|
|
801
821
|
}
|
|
802
822
|
/** Contact creation options. */
|
|
803
|
-
interface CreateContactRequest {
|
|
823
|
+
export interface CreateContactRequest {
|
|
804
824
|
/** Contact info. */
|
|
805
825
|
info: ContactInfo;
|
|
806
826
|
/**
|
|
@@ -818,11 +838,11 @@ interface CreateContactRequest {
|
|
|
818
838
|
allowDuplicates?: boolean;
|
|
819
839
|
}
|
|
820
840
|
/** Contact. */
|
|
821
|
-
interface CreateContactResponse {
|
|
841
|
+
export interface CreateContactResponse {
|
|
822
842
|
/** Contact. */
|
|
823
843
|
contact?: Contact;
|
|
824
844
|
}
|
|
825
|
-
interface DuplicateContactExists {
|
|
845
|
+
export interface DuplicateContactExists {
|
|
826
846
|
/** @format GUID */
|
|
827
847
|
duplicateContactId?: string | null;
|
|
828
848
|
/** @format EMAIL */
|
|
@@ -830,7 +850,7 @@ interface DuplicateContactExists {
|
|
|
830
850
|
/** @format PHONE */
|
|
831
851
|
duplicatePhone?: string | null;
|
|
832
852
|
}
|
|
833
|
-
interface UpdateContactRequest {
|
|
853
|
+
export interface UpdateContactRequest {
|
|
834
854
|
/**
|
|
835
855
|
* ID of the contact to update.
|
|
836
856
|
* @format GUID
|
|
@@ -859,11 +879,11 @@ interface UpdateContactRequest {
|
|
|
859
879
|
info: ContactInfo;
|
|
860
880
|
}
|
|
861
881
|
/** Updated contact. */
|
|
862
|
-
interface UpdateContactResponse {
|
|
882
|
+
export interface UpdateContactResponse {
|
|
863
883
|
/** Updated contact. */
|
|
864
884
|
contact?: Contact;
|
|
865
885
|
}
|
|
866
|
-
interface MergeContactsRequest {
|
|
886
|
+
export interface MergeContactsRequest {
|
|
867
887
|
/**
|
|
868
888
|
* Target contact ID.
|
|
869
889
|
* @format GUID
|
|
@@ -884,11 +904,11 @@ interface MergeContactsRequest {
|
|
|
884
904
|
*/
|
|
885
905
|
sourceContactIds?: string[];
|
|
886
906
|
}
|
|
887
|
-
interface MergeContactsResponse {
|
|
907
|
+
export interface MergeContactsResponse {
|
|
888
908
|
/** Updated target contact. */
|
|
889
909
|
contact?: Contact;
|
|
890
910
|
}
|
|
891
|
-
interface ContactMerged {
|
|
911
|
+
export interface ContactMerged {
|
|
892
912
|
/** ID of the contact the source contacts were merged into. */
|
|
893
913
|
targetContactId?: string;
|
|
894
914
|
/** IDs of contacts that were merged into the target contact. */
|
|
@@ -896,7 +916,7 @@ interface ContactMerged {
|
|
|
896
916
|
/** Updated target contact. */
|
|
897
917
|
targetContact?: Contact;
|
|
898
918
|
}
|
|
899
|
-
interface PreviewMergeContactsRequest {
|
|
919
|
+
export interface PreviewMergeContactsRequest {
|
|
900
920
|
/**
|
|
901
921
|
* Target contact ID.
|
|
902
922
|
* @format GUID
|
|
@@ -911,20 +931,20 @@ interface PreviewMergeContactsRequest {
|
|
|
911
931
|
*/
|
|
912
932
|
sourceContactIds?: string[];
|
|
913
933
|
}
|
|
914
|
-
interface PreviewMergeContactsResponse {
|
|
934
|
+
export interface PreviewMergeContactsResponse {
|
|
915
935
|
/** Preview of the updated target contact. */
|
|
916
936
|
contact?: Contact;
|
|
917
937
|
}
|
|
918
|
-
interface DeleteContactRequest {
|
|
938
|
+
export interface DeleteContactRequest {
|
|
919
939
|
/**
|
|
920
940
|
* ID of the contact to delete.
|
|
921
941
|
* @format GUID
|
|
922
942
|
*/
|
|
923
943
|
contactId: string;
|
|
924
944
|
}
|
|
925
|
-
interface DeleteContactResponse {
|
|
945
|
+
export interface DeleteContactResponse {
|
|
926
946
|
}
|
|
927
|
-
interface LabelContactRequest {
|
|
947
|
+
export interface LabelContactRequest {
|
|
928
948
|
/**
|
|
929
949
|
* ID of the contact to add labels to.
|
|
930
950
|
* @format GUID
|
|
@@ -941,11 +961,11 @@ interface LabelContactRequest {
|
|
|
941
961
|
labelKeys: string[];
|
|
942
962
|
}
|
|
943
963
|
/** Updated contact. */
|
|
944
|
-
interface LabelContactResponse {
|
|
964
|
+
export interface LabelContactResponse {
|
|
945
965
|
/** Updated contact. */
|
|
946
966
|
contact?: Contact;
|
|
947
967
|
}
|
|
948
|
-
interface UnlabelContactRequest {
|
|
968
|
+
export interface UnlabelContactRequest {
|
|
949
969
|
/**
|
|
950
970
|
* ID of the contact to remove labels from.
|
|
951
971
|
* @format GUID
|
|
@@ -959,11 +979,11 @@ interface UnlabelContactRequest {
|
|
|
959
979
|
labelKeys: string[];
|
|
960
980
|
}
|
|
961
981
|
/** Updated contact. */
|
|
962
|
-
interface UnlabelContactResponse {
|
|
982
|
+
export interface UnlabelContactResponse {
|
|
963
983
|
/** Updated contact. */
|
|
964
984
|
contact?: Contact;
|
|
965
985
|
}
|
|
966
|
-
interface LabelAndUnlabelContactRequest {
|
|
986
|
+
export interface LabelAndUnlabelContactRequest {
|
|
967
987
|
/**
|
|
968
988
|
* Contact ID.
|
|
969
989
|
* @format GUID
|
|
@@ -988,11 +1008,11 @@ interface LabelAndUnlabelContactRequest {
|
|
|
988
1008
|
*/
|
|
989
1009
|
labelKeysToRemove?: string[];
|
|
990
1010
|
}
|
|
991
|
-
interface LabelAndUnlabelContactResponse {
|
|
1011
|
+
export interface LabelAndUnlabelContactResponse {
|
|
992
1012
|
/** Updated contact. */
|
|
993
1013
|
contact?: Contact;
|
|
994
1014
|
}
|
|
995
|
-
interface ListContactsRequest {
|
|
1015
|
+
export interface ListContactsRequest {
|
|
996
1016
|
/** [Sort order](https://dev.wix.com/api/rest/contacts/contacts/sort-and-filter). */
|
|
997
1017
|
sort?: Sorting;
|
|
998
1018
|
/** [Pagination](https://dev.wix.com/api/rest/getting-started/pagination), defaults to offset = 0 and limit = 50 (max limit 1,000). */
|
|
@@ -1015,7 +1035,7 @@ interface ListContactsRequest {
|
|
|
1015
1035
|
/** @maxSize 10 */
|
|
1016
1036
|
fieldsets?: ContactFieldSet[];
|
|
1017
1037
|
}
|
|
1018
|
-
interface Sorting {
|
|
1038
|
+
export interface Sorting {
|
|
1019
1039
|
/**
|
|
1020
1040
|
* Field to sort by.
|
|
1021
1041
|
*
|
|
@@ -1033,11 +1053,11 @@ interface Sorting {
|
|
|
1033
1053
|
*/
|
|
1034
1054
|
order?: SortOrder;
|
|
1035
1055
|
}
|
|
1036
|
-
declare enum SortOrder {
|
|
1056
|
+
export declare enum SortOrder {
|
|
1037
1057
|
ASC = "ASC",
|
|
1038
1058
|
DESC = "DESC"
|
|
1039
1059
|
}
|
|
1040
|
-
interface Paging {
|
|
1060
|
+
export interface Paging {
|
|
1041
1061
|
/**
|
|
1042
1062
|
* Number of items to return. Learn more about pagination in API Query Language([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language)|[REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging).
|
|
1043
1063
|
*
|
|
@@ -1049,7 +1069,7 @@ interface Paging {
|
|
|
1049
1069
|
/** Number of items to skip in the current sort order. */
|
|
1050
1070
|
offset?: number | null;
|
|
1051
1071
|
}
|
|
1052
|
-
declare enum ContactFieldSet {
|
|
1072
|
+
export declare enum ContactFieldSet {
|
|
1053
1073
|
/** name, primaryEmail, primaryPhone */
|
|
1054
1074
|
BASIC = "BASIC",
|
|
1055
1075
|
/** name, phones, emails, addresses */
|
|
@@ -1060,13 +1080,13 @@ declare enum ContactFieldSet {
|
|
|
1060
1080
|
FULL = "FULL"
|
|
1061
1081
|
}
|
|
1062
1082
|
/** List of contacts. */
|
|
1063
|
-
interface ListContactsResponse {
|
|
1083
|
+
export interface ListContactsResponse {
|
|
1064
1084
|
/** List of contacts. */
|
|
1065
1085
|
contacts?: Contact[];
|
|
1066
1086
|
/** Details on the paged set of results returned. */
|
|
1067
1087
|
pagingMetadata?: PagingMetadata;
|
|
1068
1088
|
}
|
|
1069
|
-
interface PagingMetadata {
|
|
1089
|
+
export interface PagingMetadata {
|
|
1070
1090
|
/** The number of items returned in this response. */
|
|
1071
1091
|
count?: number | null;
|
|
1072
1092
|
/** The offset which was requested. */
|
|
@@ -1076,11 +1096,21 @@ interface PagingMetadata {
|
|
|
1076
1096
|
/** A flag that indicates the server failed to calculate 'total' field. */
|
|
1077
1097
|
tooManyToCount?: boolean | null;
|
|
1078
1098
|
}
|
|
1079
|
-
interface QueryContactsRequest {
|
|
1099
|
+
export interface QueryContactsRequest {
|
|
1100
|
+
/**
|
|
1101
|
+
* Plain text search for an exact match.
|
|
1102
|
+
*
|
|
1103
|
+
* Supported properties:
|
|
1104
|
+
* `info.name.first`, `info.name.last`, `info.emails.email`, `info.phones.phone`
|
|
1105
|
+
*
|
|
1106
|
+
* Max: 100 characters
|
|
1107
|
+
* @maxLength 100
|
|
1108
|
+
*/
|
|
1109
|
+
search?: string | null;
|
|
1080
1110
|
/** Query options. */
|
|
1081
1111
|
query?: Query;
|
|
1082
1112
|
}
|
|
1083
|
-
interface Query {
|
|
1113
|
+
export interface Query {
|
|
1084
1114
|
/**
|
|
1085
1115
|
* Filter object.
|
|
1086
1116
|
* See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
@@ -1132,13 +1162,13 @@ interface Query {
|
|
|
1132
1162
|
fieldsets?: ContactFieldSet[];
|
|
1133
1163
|
}
|
|
1134
1164
|
/** List of contacts. */
|
|
1135
|
-
interface QueryContactsResponse {
|
|
1165
|
+
export interface QueryContactsResponse {
|
|
1136
1166
|
/** List of contacts. */
|
|
1137
1167
|
contacts?: Contact[];
|
|
1138
1168
|
/** Details on the paged set of results returned. */
|
|
1139
1169
|
pagingMetadata?: PagingMetadata;
|
|
1140
1170
|
}
|
|
1141
|
-
interface ListFacetsRequest {
|
|
1171
|
+
export interface ListFacetsRequest {
|
|
1142
1172
|
/** Pagination options. */
|
|
1143
1173
|
paging?: Paging;
|
|
1144
1174
|
/**
|
|
@@ -1147,13 +1177,13 @@ interface ListFacetsRequest {
|
|
|
1147
1177
|
*/
|
|
1148
1178
|
language?: string | null;
|
|
1149
1179
|
}
|
|
1150
|
-
interface ListFacetsResponse {
|
|
1180
|
+
export interface ListFacetsResponse {
|
|
1151
1181
|
/** List of facets. */
|
|
1152
1182
|
facets?: ContactsFacet[];
|
|
1153
1183
|
/** Details on the paged set of results returned. */
|
|
1154
1184
|
pagingMetadata?: PagingMetadata;
|
|
1155
1185
|
}
|
|
1156
|
-
interface ContactsFacet {
|
|
1186
|
+
export interface ContactsFacet {
|
|
1157
1187
|
/** Type of facet. */
|
|
1158
1188
|
facetType?: ContactsFacetType;
|
|
1159
1189
|
/**
|
|
@@ -1175,7 +1205,7 @@ interface ContactsFacet {
|
|
|
1175
1205
|
/** Filter used to query contacts of this facet. */
|
|
1176
1206
|
queryFilter?: Record<string, any> | null;
|
|
1177
1207
|
}
|
|
1178
|
-
declare enum ContactsFacetType {
|
|
1208
|
+
export declare enum ContactsFacetType {
|
|
1179
1209
|
UNKNOWN = "UNKNOWN",
|
|
1180
1210
|
ALL_CONTACTS = "ALL_CONTACTS",
|
|
1181
1211
|
NOT_LABELED = "NOT_LABELED",
|
|
@@ -1183,7 +1213,7 @@ declare enum ContactsFacetType {
|
|
|
1183
1213
|
SUBSCRIPTION_STATUS = "SUBSCRIPTION_STATUS",
|
|
1184
1214
|
MEMBERSHIP_STATUS = "MEMBERSHIP_STATUS"
|
|
1185
1215
|
}
|
|
1186
|
-
interface QueryFacetsRequest {
|
|
1216
|
+
export interface QueryFacetsRequest {
|
|
1187
1217
|
/** Pagination options. */
|
|
1188
1218
|
paging?: Paging;
|
|
1189
1219
|
/**
|
|
@@ -1199,13 +1229,13 @@ interface QueryFacetsRequest {
|
|
|
1199
1229
|
*/
|
|
1200
1230
|
filter?: Record<string, any> | null;
|
|
1201
1231
|
}
|
|
1202
|
-
interface QueryFacetsResponse {
|
|
1232
|
+
export interface QueryFacetsResponse {
|
|
1203
1233
|
/** List of facets. */
|
|
1204
1234
|
facets?: ContactsFacet[];
|
|
1205
1235
|
/** Details on the paged set of results returned. */
|
|
1206
1236
|
pagingMetadata?: PagingMetadata;
|
|
1207
1237
|
}
|
|
1208
|
-
interface BulkDeleteContactsRequest {
|
|
1238
|
+
export interface BulkDeleteContactsRequest {
|
|
1209
1239
|
/**
|
|
1210
1240
|
* Filter object.
|
|
1211
1241
|
*
|
|
@@ -1233,7 +1263,7 @@ interface BulkDeleteContactsRequest {
|
|
|
1233
1263
|
*/
|
|
1234
1264
|
search?: string | null;
|
|
1235
1265
|
}
|
|
1236
|
-
interface BulkDeleteContactsResponse {
|
|
1266
|
+
export interface BulkDeleteContactsResponse {
|
|
1237
1267
|
/**
|
|
1238
1268
|
* Bulk job ID.
|
|
1239
1269
|
* The job's status can be retrieved with Get Bulk Job.
|
|
@@ -1241,7 +1271,7 @@ interface BulkDeleteContactsResponse {
|
|
|
1241
1271
|
*/
|
|
1242
1272
|
jobId?: string;
|
|
1243
1273
|
}
|
|
1244
|
-
interface BulkUpdateContactsRequest {
|
|
1274
|
+
export interface BulkUpdateContactsRequest {
|
|
1245
1275
|
/**
|
|
1246
1276
|
* Filter object.
|
|
1247
1277
|
*
|
|
@@ -1271,7 +1301,7 @@ interface BulkUpdateContactsRequest {
|
|
|
1271
1301
|
/** Contact info. */
|
|
1272
1302
|
info?: ContactInfo;
|
|
1273
1303
|
}
|
|
1274
|
-
interface BulkUpdateContactsResponse {
|
|
1304
|
+
export interface BulkUpdateContactsResponse {
|
|
1275
1305
|
/**
|
|
1276
1306
|
* Bulk job ID.
|
|
1277
1307
|
* The job's status can be retrieved with Get Bulk Job.
|
|
@@ -1279,7 +1309,7 @@ interface BulkUpdateContactsResponse {
|
|
|
1279
1309
|
*/
|
|
1280
1310
|
jobId?: string;
|
|
1281
1311
|
}
|
|
1282
|
-
interface BulkLabelAndUnlabelContactsRequest {
|
|
1312
|
+
export interface BulkLabelAndUnlabelContactsRequest {
|
|
1283
1313
|
/**
|
|
1284
1314
|
* Filter options.
|
|
1285
1315
|
* Labels will be removed from contacts that meet the `filter` and `search` criteria.
|
|
@@ -1316,7 +1346,7 @@ interface BulkLabelAndUnlabelContactsRequest {
|
|
|
1316
1346
|
*/
|
|
1317
1347
|
labelKeysToRemove?: string[];
|
|
1318
1348
|
}
|
|
1319
|
-
interface BulkLabelAndUnlabelContactsResponse {
|
|
1349
|
+
export interface BulkLabelAndUnlabelContactsResponse {
|
|
1320
1350
|
/**
|
|
1321
1351
|
* Bulk job ID.
|
|
1322
1352
|
* The job's status can be retrieved with Get Bulk Job.
|
|
@@ -1324,7 +1354,7 @@ interface BulkLabelAndUnlabelContactsResponse {
|
|
|
1324
1354
|
*/
|
|
1325
1355
|
jobId?: string;
|
|
1326
1356
|
}
|
|
1327
|
-
interface BulkUpsertContactsRequest {
|
|
1357
|
+
export interface BulkUpsertContactsRequest {
|
|
1328
1358
|
/**
|
|
1329
1359
|
* @minSize 1
|
|
1330
1360
|
* @maxSize 100
|
|
@@ -1332,52 +1362,52 @@ interface BulkUpsertContactsRequest {
|
|
|
1332
1362
|
info?: ContactInfo[];
|
|
1333
1363
|
returnFullEntity?: boolean;
|
|
1334
1364
|
}
|
|
1335
|
-
interface BulkUpsertContactsResponse {
|
|
1365
|
+
export interface BulkUpsertContactsResponse {
|
|
1336
1366
|
results?: Item[];
|
|
1337
1367
|
metadata?: BulkUpsertContactsResponseMetadata;
|
|
1338
1368
|
}
|
|
1339
|
-
declare enum Action {
|
|
1369
|
+
export declare enum Action {
|
|
1340
1370
|
UNKNOWN = "UNKNOWN",
|
|
1341
1371
|
UPDATED = "UPDATED",
|
|
1342
1372
|
CREATED = "CREATED"
|
|
1343
1373
|
}
|
|
1344
|
-
interface Error {
|
|
1374
|
+
export interface Error {
|
|
1345
1375
|
/** Error code. */
|
|
1346
1376
|
code?: string;
|
|
1347
1377
|
/** Error details. */
|
|
1348
1378
|
message?: string | null;
|
|
1349
1379
|
}
|
|
1350
|
-
interface Metadata {
|
|
1351
|
-
|
|
1380
|
+
export interface Metadata {
|
|
1381
|
+
id?: string | null;
|
|
1352
1382
|
originalIndex?: number;
|
|
1353
1383
|
action?: Action;
|
|
1354
1384
|
success?: boolean;
|
|
1355
1385
|
error?: Error;
|
|
1356
1386
|
}
|
|
1357
|
-
interface Item {
|
|
1387
|
+
export interface Item {
|
|
1358
1388
|
contact?: Contact;
|
|
1359
1389
|
metadata?: Metadata;
|
|
1360
1390
|
}
|
|
1361
|
-
interface BulkUpsertContactsResponseMetadata {
|
|
1391
|
+
export interface BulkUpsertContactsResponseMetadata {
|
|
1362
1392
|
totalSuccess?: number;
|
|
1363
1393
|
totalFailure?: number;
|
|
1364
1394
|
totalCreated?: number;
|
|
1365
1395
|
totalUpdated?: number;
|
|
1366
1396
|
}
|
|
1367
|
-
interface UpsertContactRequest {
|
|
1397
|
+
export interface UpsertContactRequest {
|
|
1368
1398
|
info?: ContactInfo;
|
|
1369
1399
|
}
|
|
1370
|
-
interface UpsertContactResponse {
|
|
1400
|
+
export interface UpsertContactResponse {
|
|
1371
1401
|
/** Upserted contact. */
|
|
1372
1402
|
contact?: Contact;
|
|
1373
1403
|
action?: UpsertContactResponseAction;
|
|
1374
1404
|
}
|
|
1375
|
-
declare enum UpsertContactResponseAction {
|
|
1405
|
+
export declare enum UpsertContactResponseAction {
|
|
1376
1406
|
UNKNOWN = "UNKNOWN",
|
|
1377
1407
|
UPDATED = "UPDATED",
|
|
1378
1408
|
CREATED = "CREATED"
|
|
1379
1409
|
}
|
|
1380
|
-
interface GeneratePictureUploadUrlRequest {
|
|
1410
|
+
export interface GeneratePictureUploadUrlRequest {
|
|
1381
1411
|
/**
|
|
1382
1412
|
* ID of the contact whose picture is being updated.
|
|
1383
1413
|
* @format GUID
|
|
@@ -1390,19 +1420,19 @@ interface GeneratePictureUploadUrlRequest {
|
|
|
1390
1420
|
*/
|
|
1391
1421
|
mimeType?: string | null;
|
|
1392
1422
|
}
|
|
1393
|
-
interface GeneratePictureUploadUrlResponse {
|
|
1423
|
+
export interface GeneratePictureUploadUrlResponse {
|
|
1394
1424
|
/**
|
|
1395
1425
|
* URL to upload the image
|
|
1396
1426
|
* @format WEB_URL
|
|
1397
1427
|
*/
|
|
1398
1428
|
uploadUrl?: string;
|
|
1399
1429
|
}
|
|
1400
|
-
interface GetContactRequest {
|
|
1430
|
+
export interface GetContactRequest {
|
|
1401
1431
|
/**
|
|
1402
1432
|
* ID of the contact to retrieve.
|
|
1403
1433
|
* @format GUID
|
|
1404
1434
|
*/
|
|
1405
|
-
|
|
1435
|
+
id: string;
|
|
1406
1436
|
/**
|
|
1407
1437
|
* List of projected fields to return.
|
|
1408
1438
|
* If both `fields` and `fieldsets` are sent in the request,
|
|
@@ -1434,13 +1464,13 @@ interface GetContactRequest {
|
|
|
1434
1464
|
fieldsets?: ContactFieldSet[];
|
|
1435
1465
|
}
|
|
1436
1466
|
/** The requested contact. */
|
|
1437
|
-
interface GetContactResponse {
|
|
1467
|
+
export interface GetContactResponse {
|
|
1438
1468
|
/** The requested contact. */
|
|
1439
1469
|
contact?: Contact;
|
|
1440
1470
|
/** Contact response type. */
|
|
1441
1471
|
responseType?: GetContactResponseType;
|
|
1442
1472
|
}
|
|
1443
|
-
declare enum GetContactResponseType {
|
|
1473
|
+
export declare enum GetContactResponseType {
|
|
1444
1474
|
/** The specified contact was returned. */
|
|
1445
1475
|
REGULAR = "REGULAR",
|
|
1446
1476
|
/** Not used. */
|
|
@@ -1448,7 +1478,7 @@ declare enum GetContactResponseType {
|
|
|
1448
1478
|
/** The specified contact was previously merged with another contact and the new contact was returned. */
|
|
1449
1479
|
MERGED = "MERGED"
|
|
1450
1480
|
}
|
|
1451
|
-
interface SyncSubmitContactRequest {
|
|
1481
|
+
export interface SyncSubmitContactRequest {
|
|
1452
1482
|
contactInfo?: ContactInfo;
|
|
1453
1483
|
activity?: ContactActivity;
|
|
1454
1484
|
passThroughData?: string | null;
|
|
@@ -1460,23 +1490,23 @@ interface SyncSubmitContactRequest {
|
|
|
1460
1490
|
sourceId?: string | null;
|
|
1461
1491
|
hideFromContactList?: boolean;
|
|
1462
1492
|
}
|
|
1463
|
-
declare enum SubmitOperation {
|
|
1493
|
+
export declare enum SubmitOperation {
|
|
1464
1494
|
UNKNOWN = "UNKNOWN",
|
|
1465
1495
|
CREATE = "CREATE",
|
|
1466
1496
|
UPDATE = "UPDATE"
|
|
1467
1497
|
}
|
|
1468
|
-
interface SyncSubmitContactResponse {
|
|
1498
|
+
export interface SyncSubmitContactResponse {
|
|
1469
1499
|
}
|
|
1470
|
-
interface CountContactsRequest {
|
|
1500
|
+
export interface CountContactsRequest {
|
|
1471
1501
|
}
|
|
1472
|
-
interface CountContactsResponse {
|
|
1502
|
+
export interface CountContactsResponse {
|
|
1473
1503
|
count?: number;
|
|
1474
1504
|
}
|
|
1475
|
-
interface SearchContactsRequest {
|
|
1505
|
+
export interface SearchContactsRequest {
|
|
1476
1506
|
/** Search object. Encapsulates filter, sorting, paging and other details */
|
|
1477
1507
|
search?: Search;
|
|
1478
1508
|
}
|
|
1479
|
-
interface Search extends SearchPagingMethodOneOf {
|
|
1509
|
+
export interface Search extends SearchPagingMethodOneOf {
|
|
1480
1510
|
/** Cursor pointing to page of results. 'cursorPaging.cursor' can not be used together with 'filter' or 'sort' */
|
|
1481
1511
|
cursorPaging?: CursorPaging;
|
|
1482
1512
|
/** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
|
|
@@ -1511,11 +1541,11 @@ interface Search extends SearchPagingMethodOneOf {
|
|
|
1511
1541
|
search?: SearchDetails;
|
|
1512
1542
|
}
|
|
1513
1543
|
/** @oneof */
|
|
1514
|
-
interface SearchPagingMethodOneOf {
|
|
1544
|
+
export interface SearchPagingMethodOneOf {
|
|
1515
1545
|
/** Cursor pointing to page of results. 'cursorPaging.cursor' can not be used together with 'filter' or 'sort' */
|
|
1516
1546
|
cursorPaging?: CursorPaging;
|
|
1517
1547
|
}
|
|
1518
|
-
interface SearchDetails {
|
|
1548
|
+
export interface SearchDetails {
|
|
1519
1549
|
/** boolean search mode. Default is `OR` */
|
|
1520
1550
|
mode?: Mode;
|
|
1521
1551
|
/**
|
|
@@ -1537,13 +1567,13 @@ interface SearchDetails {
|
|
|
1537
1567
|
/** flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
|
|
1538
1568
|
fuzzy?: boolean;
|
|
1539
1569
|
}
|
|
1540
|
-
declare enum Mode {
|
|
1570
|
+
export declare enum Mode {
|
|
1541
1571
|
/** any */
|
|
1542
1572
|
OR = "OR",
|
|
1543
1573
|
/** all */
|
|
1544
1574
|
AND = "AND"
|
|
1545
1575
|
}
|
|
1546
|
-
interface CursorPaging {
|
|
1576
|
+
export interface CursorPaging {
|
|
1547
1577
|
/**
|
|
1548
1578
|
* The number of contacts to load (default = 50, max = 1000)
|
|
1549
1579
|
* @max 1000
|
|
@@ -1552,14 +1582,14 @@ interface CursorPaging {
|
|
|
1552
1582
|
/** Cursor returned in last query response. Should not be provided on first page request */
|
|
1553
1583
|
cursor?: string | null;
|
|
1554
1584
|
}
|
|
1555
|
-
interface SearchContactsResponse {
|
|
1585
|
+
export interface SearchContactsResponse {
|
|
1556
1586
|
/** List of contacts. */
|
|
1557
1587
|
contacts?: Contact[];
|
|
1558
1588
|
/** Details on the paged set of results returned. */
|
|
1559
1589
|
cursorPagingMetadata?: CursorPagingMetadata;
|
|
1560
1590
|
}
|
|
1561
1591
|
/** This is the preferred message for cursor-paging enabled services */
|
|
1562
|
-
interface CursorPagingMetadata {
|
|
1592
|
+
export interface CursorPagingMetadata {
|
|
1563
1593
|
/** Number of items returned in the response. */
|
|
1564
1594
|
count?: number | null;
|
|
1565
1595
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -1572,13 +1602,13 @@ interface CursorPagingMetadata {
|
|
|
1572
1602
|
*/
|
|
1573
1603
|
hasNext?: boolean | null;
|
|
1574
1604
|
}
|
|
1575
|
-
interface Cursors {
|
|
1605
|
+
export interface Cursors {
|
|
1576
1606
|
/** Cursor pointing to next result page */
|
|
1577
1607
|
next?: string | null;
|
|
1578
1608
|
/** Cursor pointing to previous result page */
|
|
1579
1609
|
prev?: string | null;
|
|
1580
1610
|
}
|
|
1581
|
-
interface BulkAddSegmentToContactsRequest {
|
|
1611
|
+
export interface BulkAddSegmentToContactsRequest {
|
|
1582
1612
|
/**
|
|
1583
1613
|
* Segment id
|
|
1584
1614
|
* @format GUID
|
|
@@ -1598,15 +1628,15 @@ interface BulkAddSegmentToContactsRequest {
|
|
|
1598
1628
|
*/
|
|
1599
1629
|
existsSegmentIds?: string[];
|
|
1600
1630
|
}
|
|
1601
|
-
interface BulkAddSegmentToContactsResponse {
|
|
1631
|
+
export interface BulkAddSegmentToContactsResponse {
|
|
1602
1632
|
/** List of action results */
|
|
1603
1633
|
results?: ItemMetadata[];
|
|
1604
1634
|
/** Metadata on the bulk action */
|
|
1605
1635
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1606
1636
|
}
|
|
1607
|
-
interface ItemMetadata {
|
|
1637
|
+
export interface ItemMetadata {
|
|
1608
1638
|
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
1609
|
-
|
|
1639
|
+
id?: string | null;
|
|
1610
1640
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
1611
1641
|
originalIndex?: number;
|
|
1612
1642
|
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
@@ -1614,7 +1644,7 @@ interface ItemMetadata {
|
|
|
1614
1644
|
/** Details about the error in case of failure. */
|
|
1615
1645
|
error?: ApplicationError;
|
|
1616
1646
|
}
|
|
1617
|
-
interface ApplicationError {
|
|
1647
|
+
export interface ApplicationError {
|
|
1618
1648
|
/** Error code. */
|
|
1619
1649
|
code?: string;
|
|
1620
1650
|
/** Description of the error. */
|
|
@@ -1622,7 +1652,7 @@ interface ApplicationError {
|
|
|
1622
1652
|
/** Data related to the error. */
|
|
1623
1653
|
data?: Record<string, any> | null;
|
|
1624
1654
|
}
|
|
1625
|
-
interface BulkActionMetadata {
|
|
1655
|
+
export interface BulkActionMetadata {
|
|
1626
1656
|
/** Number of items that were successfully processed. */
|
|
1627
1657
|
totalSuccesses?: number;
|
|
1628
1658
|
/** Number of items that couldn't be processed. */
|
|
@@ -1630,13 +1660,13 @@ interface BulkActionMetadata {
|
|
|
1630
1660
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1631
1661
|
undetailedFailures?: number;
|
|
1632
1662
|
}
|
|
1633
|
-
interface ContactAddedToSegment {
|
|
1663
|
+
export interface ContactAddedToSegment {
|
|
1634
1664
|
/** Id of the segment to which the contact was added */
|
|
1635
1665
|
segmentId?: string;
|
|
1636
1666
|
/** The contact that was added */
|
|
1637
1667
|
contact?: Contact;
|
|
1638
1668
|
}
|
|
1639
|
-
interface BulkRemoveSegmentFromContactsRequest {
|
|
1669
|
+
export interface BulkRemoveSegmentFromContactsRequest {
|
|
1640
1670
|
/**
|
|
1641
1671
|
* Segment id
|
|
1642
1672
|
* @format GUID
|
|
@@ -1650,19 +1680,19 @@ interface BulkRemoveSegmentFromContactsRequest {
|
|
|
1650
1680
|
*/
|
|
1651
1681
|
contactIds?: string[];
|
|
1652
1682
|
}
|
|
1653
|
-
interface BulkRemoveSegmentFromContactsResponse {
|
|
1683
|
+
export interface BulkRemoveSegmentFromContactsResponse {
|
|
1654
1684
|
/** List of action results */
|
|
1655
1685
|
results?: ItemMetadata[];
|
|
1656
1686
|
/** Metadata on the bulk action */
|
|
1657
1687
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1658
1688
|
}
|
|
1659
|
-
interface ContactRemovedFromSegment {
|
|
1689
|
+
export interface ContactRemovedFromSegment {
|
|
1660
1690
|
/** Id of the segment from which the contact was removed */
|
|
1661
1691
|
segmentId?: string;
|
|
1662
1692
|
/** The contact that was removed */
|
|
1663
1693
|
contact?: Contact;
|
|
1664
1694
|
}
|
|
1665
|
-
interface ListContactIdsBySegmentRequest {
|
|
1695
|
+
export interface ListContactIdsBySegmentRequest {
|
|
1666
1696
|
/**
|
|
1667
1697
|
* Segment id
|
|
1668
1698
|
* @format GUID
|
|
@@ -1671,7 +1701,7 @@ interface ListContactIdsBySegmentRequest {
|
|
|
1671
1701
|
/** Cursor paging. */
|
|
1672
1702
|
cursorPaging?: CursorPaging;
|
|
1673
1703
|
}
|
|
1674
|
-
interface ListContactIdsBySegmentResponse {
|
|
1704
|
+
export interface ListContactIdsBySegmentResponse {
|
|
1675
1705
|
/**
|
|
1676
1706
|
* List of contact IDs
|
|
1677
1707
|
* @format GUID
|
|
@@ -1681,7 +1711,7 @@ interface ListContactIdsBySegmentResponse {
|
|
|
1681
1711
|
/** Paging metadata */
|
|
1682
1712
|
cursorPagingMetadata?: CursorPagingMetadata;
|
|
1683
1713
|
}
|
|
1684
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
1714
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
1685
1715
|
createdEvent?: EntityCreatedEvent;
|
|
1686
1716
|
updatedEvent?: EntityUpdatedEvent;
|
|
1687
1717
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -1690,7 +1720,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1690
1720
|
* Unique event ID.
|
|
1691
1721
|
* Allows clients to ignore duplicate webhooks.
|
|
1692
1722
|
*/
|
|
1693
|
-
|
|
1723
|
+
id?: string;
|
|
1694
1724
|
/**
|
|
1695
1725
|
* Assumes actions are also always typed to an entity_type
|
|
1696
1726
|
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
@@ -1724,34 +1754,36 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1724
1754
|
entityEventSequence?: string | null;
|
|
1725
1755
|
}
|
|
1726
1756
|
/** @oneof */
|
|
1727
|
-
interface DomainEventBodyOneOf {
|
|
1757
|
+
export interface DomainEventBodyOneOf {
|
|
1728
1758
|
createdEvent?: EntityCreatedEvent;
|
|
1729
1759
|
updatedEvent?: EntityUpdatedEvent;
|
|
1730
1760
|
deletedEvent?: EntityDeletedEvent;
|
|
1731
1761
|
actionEvent?: ActionEvent;
|
|
1732
1762
|
}
|
|
1733
|
-
interface EntityCreatedEvent {
|
|
1734
|
-
|
|
1763
|
+
export interface EntityCreatedEvent {
|
|
1764
|
+
entityAsJson?: string;
|
|
1765
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
1766
|
+
restoreInfo?: RestoreInfo;
|
|
1735
1767
|
}
|
|
1736
|
-
interface RestoreInfo {
|
|
1768
|
+
export interface RestoreInfo {
|
|
1737
1769
|
deletedDate?: Date | null;
|
|
1738
1770
|
}
|
|
1739
|
-
interface EntityUpdatedEvent {
|
|
1771
|
+
export interface EntityUpdatedEvent {
|
|
1740
1772
|
/**
|
|
1741
1773
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1742
1774
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1743
1775
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1744
1776
|
*/
|
|
1745
|
-
|
|
1777
|
+
currentEntityAsJson?: string;
|
|
1746
1778
|
}
|
|
1747
|
-
interface EntityDeletedEvent {
|
|
1779
|
+
export interface EntityDeletedEvent {
|
|
1748
1780
|
/** Entity that was deleted */
|
|
1749
|
-
|
|
1781
|
+
deletedEntityAsJson?: string | null;
|
|
1750
1782
|
}
|
|
1751
|
-
interface ActionEvent {
|
|
1752
|
-
|
|
1783
|
+
export interface ActionEvent {
|
|
1784
|
+
bodyAsJson?: string;
|
|
1753
1785
|
}
|
|
1754
|
-
interface MessageEnvelope {
|
|
1786
|
+
export interface MessageEnvelope {
|
|
1755
1787
|
/**
|
|
1756
1788
|
* App instance ID.
|
|
1757
1789
|
* @format GUID
|
|
@@ -1767,7 +1799,7 @@ interface MessageEnvelope {
|
|
|
1767
1799
|
/** Stringify payload. */
|
|
1768
1800
|
data?: string;
|
|
1769
1801
|
}
|
|
1770
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1802
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1771
1803
|
/**
|
|
1772
1804
|
* ID of a site visitor that has not logged in to the site.
|
|
1773
1805
|
* @format GUID
|
|
@@ -1792,7 +1824,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
1792
1824
|
identityType?: WebhookIdentityType;
|
|
1793
1825
|
}
|
|
1794
1826
|
/** @oneof */
|
|
1795
|
-
interface IdentificationDataIdOneOf {
|
|
1827
|
+
export interface IdentificationDataIdOneOf {
|
|
1796
1828
|
/**
|
|
1797
1829
|
* ID of a site visitor that has not logged in to the site.
|
|
1798
1830
|
* @format GUID
|
|
@@ -1814,212 +1846,10 @@ interface IdentificationDataIdOneOf {
|
|
|
1814
1846
|
*/
|
|
1815
1847
|
appId?: string;
|
|
1816
1848
|
}
|
|
1817
|
-
declare enum WebhookIdentityType {
|
|
1849
|
+
export declare enum WebhookIdentityType {
|
|
1818
1850
|
UNKNOWN = "UNKNOWN",
|
|
1819
1851
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1820
1852
|
MEMBER = "MEMBER",
|
|
1821
1853
|
WIX_USER = "WIX_USER",
|
|
1822
1854
|
APP = "APP"
|
|
1823
1855
|
}
|
|
1824
|
-
interface BaseEventMetadata {
|
|
1825
|
-
/**
|
|
1826
|
-
* App instance ID.
|
|
1827
|
-
* @format GUID
|
|
1828
|
-
*/
|
|
1829
|
-
instanceId?: string | null;
|
|
1830
|
-
/**
|
|
1831
|
-
* Event type.
|
|
1832
|
-
* @maxLength 150
|
|
1833
|
-
*/
|
|
1834
|
-
eventType?: string;
|
|
1835
|
-
/** The identification type and identity data. */
|
|
1836
|
-
identity?: IdentificationData;
|
|
1837
|
-
}
|
|
1838
|
-
interface EventMetadata extends BaseEventMetadata {
|
|
1839
|
-
/**
|
|
1840
|
-
* Unique event ID.
|
|
1841
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1842
|
-
*/
|
|
1843
|
-
_id?: string;
|
|
1844
|
-
/**
|
|
1845
|
-
* Assumes actions are also always typed to an entity_type
|
|
1846
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
1847
|
-
*/
|
|
1848
|
-
entityFqdn?: string;
|
|
1849
|
-
/**
|
|
1850
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
1851
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1852
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1853
|
-
*/
|
|
1854
|
-
slug?: string;
|
|
1855
|
-
/** ID of the entity associated with the event. */
|
|
1856
|
-
entityId?: string;
|
|
1857
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1858
|
-
eventTime?: Date | null;
|
|
1859
|
-
/**
|
|
1860
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
1861
|
-
* (for example, GDPR).
|
|
1862
|
-
*/
|
|
1863
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
1864
|
-
/** If present, indicates the action that triggered the event. */
|
|
1865
|
-
originatedFrom?: string | null;
|
|
1866
|
-
/**
|
|
1867
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
1868
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1869
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1870
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1871
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1872
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1873
|
-
*/
|
|
1874
|
-
entityEventSequence?: string | null;
|
|
1875
|
-
}
|
|
1876
|
-
interface ContactCreatedEnvelope {
|
|
1877
|
-
entity: Contact;
|
|
1878
|
-
metadata: EventMetadata;
|
|
1879
|
-
}
|
|
1880
|
-
interface ContactDeletedEnvelope {
|
|
1881
|
-
metadata: EventMetadata;
|
|
1882
|
-
}
|
|
1883
|
-
interface ContactMergedEnvelope {
|
|
1884
|
-
data: ContactMerged;
|
|
1885
|
-
metadata: EventMetadata;
|
|
1886
|
-
}
|
|
1887
|
-
interface ContactUpdatedEnvelope {
|
|
1888
|
-
entity: Contact;
|
|
1889
|
-
metadata: EventMetadata;
|
|
1890
|
-
}
|
|
1891
|
-
interface CreateContactOptions {
|
|
1892
|
-
/**
|
|
1893
|
-
* Controls whether the call will succeed
|
|
1894
|
-
* if the new contact information contains an email or a phone number already used by another contact.
|
|
1895
|
-
*
|
|
1896
|
-
* If set to `true`,
|
|
1897
|
-
* the call will succeed even if an email address or phone number is used by another contact.
|
|
1898
|
-
* If set to `false`,
|
|
1899
|
-
* the call will fail if the given email address is used by another contact or,
|
|
1900
|
-
* if the email address is not given and the given phone number is used by another contact.
|
|
1901
|
-
*
|
|
1902
|
-
* Default: `false`
|
|
1903
|
-
*/
|
|
1904
|
-
allowDuplicates?: boolean;
|
|
1905
|
-
}
|
|
1906
|
-
interface UpdateContactOptions {
|
|
1907
|
-
/**
|
|
1908
|
-
* Controls whether the call will succeed
|
|
1909
|
-
* if the new contact information contains an email or a phone number already used by another contact.
|
|
1910
|
-
*
|
|
1911
|
-
* If set to `true`,
|
|
1912
|
-
* the call will succeed even if an email address or phone number is used by another contact.
|
|
1913
|
-
* If set to `false`,
|
|
1914
|
-
* the call will fail if the given email address is used by another contact or,
|
|
1915
|
-
* if the email address is not given and the given phone number is used by another contact.
|
|
1916
|
-
*
|
|
1917
|
-
* Default: `false`
|
|
1918
|
-
*/
|
|
1919
|
-
allowDuplicates?: boolean;
|
|
1920
|
-
}
|
|
1921
|
-
interface MergeContactsOptions {
|
|
1922
|
-
/**
|
|
1923
|
-
* IDs of up to 5 contacts to merge into the target contact.
|
|
1924
|
-
* When you merge more than one source contact,
|
|
1925
|
-
* the first source is given precedence, then the second, and so on.
|
|
1926
|
-
* @minSize 1
|
|
1927
|
-
* @maxSize 5
|
|
1928
|
-
*/
|
|
1929
|
-
sourceContactIds?: string[];
|
|
1930
|
-
}
|
|
1931
|
-
interface QueryContactsOptions {
|
|
1932
|
-
}
|
|
1933
|
-
interface QueryOffsetResult {
|
|
1934
|
-
currentPage: number | undefined;
|
|
1935
|
-
totalPages: number | undefined;
|
|
1936
|
-
totalCount: number | undefined;
|
|
1937
|
-
hasNext: () => boolean;
|
|
1938
|
-
hasPrev: () => boolean;
|
|
1939
|
-
length: number;
|
|
1940
|
-
pageSize: number;
|
|
1941
|
-
}
|
|
1942
|
-
interface ContactsQueryResult extends QueryOffsetResult {
|
|
1943
|
-
items: Contact[];
|
|
1944
|
-
query: ContactsQueryBuilder;
|
|
1945
|
-
next: () => Promise<ContactsQueryResult>;
|
|
1946
|
-
prev: () => Promise<ContactsQueryResult>;
|
|
1947
|
-
}
|
|
1948
|
-
interface ContactsQueryBuilder {
|
|
1949
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
1950
|
-
* @param value - Value to compare against.
|
|
1951
|
-
*/
|
|
1952
|
-
eq: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'lastActivity.activityDate' | 'primaryInfo.email' | 'primaryInfo.phone' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle' | 'info.birthdate' | 'info.locale', value: any) => ContactsQueryBuilder;
|
|
1953
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
1954
|
-
* @param value - Value to compare against.
|
|
1955
|
-
*/
|
|
1956
|
-
ne: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'lastActivity.activityDate' | 'primaryInfo.email' | 'primaryInfo.phone' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle' | 'info.birthdate' | 'info.locale', value: any) => ContactsQueryBuilder;
|
|
1957
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
1958
|
-
* @param value - Value to compare against.
|
|
1959
|
-
*/
|
|
1960
|
-
ge: (propertyName: '_createdDate' | '_updatedDate' | 'lastActivity.activityDate', value: any) => ContactsQueryBuilder;
|
|
1961
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
1962
|
-
* @param value - Value to compare against.
|
|
1963
|
-
*/
|
|
1964
|
-
gt: (propertyName: '_createdDate' | '_updatedDate' | 'lastActivity.activityDate', value: any) => ContactsQueryBuilder;
|
|
1965
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
1966
|
-
* @param value - Value to compare against.
|
|
1967
|
-
*/
|
|
1968
|
-
le: (propertyName: '_createdDate' | '_updatedDate' | 'lastActivity.activityDate', value: any) => ContactsQueryBuilder;
|
|
1969
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
1970
|
-
* @param value - Value to compare against.
|
|
1971
|
-
*/
|
|
1972
|
-
lt: (propertyName: '_createdDate' | '_updatedDate' | 'lastActivity.activityDate', value: any) => ContactsQueryBuilder;
|
|
1973
|
-
/** @param propertyName - Property whose value is compared with `string`.
|
|
1974
|
-
* @param string - String to compare against. Case-insensitive.
|
|
1975
|
-
*/
|
|
1976
|
-
startsWith: (propertyName: 'primaryInfo.email' | 'primaryInfo.phone' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle', value: string) => ContactsQueryBuilder;
|
|
1977
|
-
/** @param propertyName - Property whose value is compared with `values`.
|
|
1978
|
-
* @param values - List of values to compare against.
|
|
1979
|
-
*/
|
|
1980
|
-
hasSome: (propertyName: 'info.labelKeys', value: any[]) => ContactsQueryBuilder;
|
|
1981
|
-
in: (propertyName: '_id' | 'primaryInfo.email' | 'primaryInfo.phone' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle' | 'info.locale', value: any) => ContactsQueryBuilder;
|
|
1982
|
-
exists: (propertyName: '_id' | 'primaryInfo.email' | 'primaryInfo.phone' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle' | 'info.locale', value: boolean) => ContactsQueryBuilder;
|
|
1983
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
1984
|
-
ascending: (...propertyNames: Array<'_createdDate' | 'lastActivity.activityDate' | 'primaryInfo.email' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle' | 'info.birthdate'>) => ContactsQueryBuilder;
|
|
1985
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
1986
|
-
descending: (...propertyNames: Array<'_createdDate' | 'lastActivity.activityDate' | 'primaryInfo.email' | 'info.name.first' | 'info.name.last' | 'info.company' | 'info.jobTitle' | 'info.birthdate'>) => ContactsQueryBuilder;
|
|
1987
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
1988
|
-
limit: (limit: number) => ContactsQueryBuilder;
|
|
1989
|
-
/** @param skip - Number of items to skip in the query results before returning the results. */
|
|
1990
|
-
skip: (skip: number) => ContactsQueryBuilder;
|
|
1991
|
-
find: () => Promise<ContactsQueryResult>;
|
|
1992
|
-
}
|
|
1993
|
-
interface GetContactOptions {
|
|
1994
|
-
/**
|
|
1995
|
-
* List of projected fields to return.
|
|
1996
|
-
* If both `fields` and `fieldsets` are sent in the request,
|
|
1997
|
-
* the union of both lists is returned.
|
|
1998
|
-
* `id` and `revision` are always returned.
|
|
1999
|
-
*
|
|
2000
|
-
* Supported properties:
|
|
2001
|
-
* `source`, `createdDate`, `updatedDate`, `lastActivity`, `primaryInfo`,
|
|
2002
|
-
* `info.name`, `info.emails`, `info.phones`, `info.addresses`, `info.company`,
|
|
2003
|
-
* `info.jobTitle`, `info.picture`, `info.birthdate`, `info.locale`,
|
|
2004
|
-
* `info.labelKeys`, `info.locations`, `info.extendedFields`
|
|
2005
|
-
* @maxLength 100
|
|
2006
|
-
* @maxSize 100
|
|
2007
|
-
*/
|
|
2008
|
-
fields?: string[];
|
|
2009
|
-
/**
|
|
2010
|
-
* Predefined sets of fields to return.
|
|
2011
|
-
* If both `fields` and `fieldsets` are sent in the request,
|
|
2012
|
-
* the union of both lists is returned.
|
|
2013
|
-
*
|
|
2014
|
-
* - `BASIC`: Returns `id`, `revision`, `primaryInfo`, `info.name`.
|
|
2015
|
-
* - `COMMUNICATION_DETAILS`: Returns `id`, `revision`, `primaryInfo`, `info.name`, `info.emails`, `info.phones`, `info.addresses`.
|
|
2016
|
-
* - `EXTENDED`: Returns `id`, `revision`, `primaryInfo`, `info.name`, `info.extendedFields`.
|
|
2017
|
-
* - `FULL`: Returns all fields.
|
|
2018
|
-
*
|
|
2019
|
-
* Default: If `fields` is omitted from the request, `FULL`.
|
|
2020
|
-
* @maxSize 10
|
|
2021
|
-
*/
|
|
2022
|
-
fieldsets?: ContactFieldSet[];
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
export { type ExtendedFieldsWrapper as $, AddressTag as A, type ContactName as B, type ContactInfo as C, type ContactEmailsWrapper as D, EmailTag as E, type ContactEmail as F, type GetContactOptions as G, type ContactPhonesWrapper as H, ImageProvider as I, type ContactPhone as J, type ContactAddressesWrapper as K, type LabelContactResponse as L, type MergeContactsOptions as M, type ContactAddress as N, type Address as O, PhoneTag as P, type QueryContactsOptions as Q, Role as R, SubdivisionType as S, type AddressStreetOneOf as T, type UpdateContactOptions as U, type StreetAddress as V, WebhookIdentityType as W, type AddressLocation as X, type Subdivision as Y, type AssigneesWrapper as Z, type LabelsWrapper as _, type CreateContactOptions as a, type CountContactsRequest as a$, type LocationsWrapper as a0, type ContactPicture as a1, type SegmentsWrapper as a2, type PrimaryEmail as a3, type PrimaryPhone as a4, type MemberInfo as a5, type ProfileInfo as a6, type UserInfo as a7, type SessionInfo as a8, type GroupInfo as a9, type Query as aA, type QueryContactsResponse as aB, type ListFacetsRequest as aC, type ListFacetsResponse as aD, type ContactsFacet as aE, type QueryFacetsRequest as aF, type QueryFacetsResponse as aG, type BulkDeleteContactsRequest as aH, type BulkDeleteContactsResponse as aI, type BulkUpdateContactsRequest as aJ, type BulkUpdateContactsResponse as aK, type BulkLabelAndUnlabelContactsRequest as aL, type BulkLabelAndUnlabelContactsResponse as aM, type BulkUpsertContactsRequest as aN, type BulkUpsertContactsResponse as aO, type Error as aP, type Metadata as aQ, type Item as aR, type BulkUpsertContactsResponseMetadata as aS, type UpsertContactRequest as aT, type UpsertContactResponse as aU, type GeneratePictureUploadUrlRequest as aV, type GeneratePictureUploadUrlResponse as aW, type GetContactRequest as aX, type GetContactResponse as aY, type SyncSubmitContactRequest as aZ, type SyncSubmitContactResponse as a_, type ContactSubmitted as aa, type ContactChanged as ab, type ContactEmailSubscriptionUpdated as ac, type ContactPhoneSubscriptionUpdated as ad, type ContactPrimaryInfoUpdated as ae, type PrimarySubscriptionStatus as af, type LastActivityUpdate as ag, type CreateContactRequest as ah, type DuplicateContactExists as ai, type UpdateContactRequest as aj, type MergeContactsRequest as ak, type ContactMerged as al, type PreviewMergeContactsRequest as am, type PreviewMergeContactsResponse as an, type DeleteContactRequest as ao, type DeleteContactResponse as ap, type LabelContactRequest as aq, type UnlabelContactRequest as ar, type LabelAndUnlabelContactRequest as as, type LabelAndUnlabelContactResponse as at, type ListContactsRequest as au, type Sorting as av, type Paging as aw, type ListContactsResponse as ax, type PagingMetadata as ay, type QueryContactsRequest as az, type CreateContactResponse as b, type CountContactsResponse as b0, type SearchContactsRequest as b1, type Search as b2, type SearchPagingMethodOneOf as b3, type SearchDetails as b4, type CursorPaging as b5, type SearchContactsResponse as b6, type CursorPagingMetadata as b7, type Cursors as b8, type BulkAddSegmentToContactsRequest as b9, type ContactsQueryResult as bA, type BulkAddSegmentToContactsResponse as ba, type ItemMetadata as bb, type ApplicationError as bc, type BulkActionMetadata as bd, type ContactAddedToSegment as be, type BulkRemoveSegmentFromContactsRequest as bf, type BulkRemoveSegmentFromContactsResponse as bg, type ContactRemovedFromSegment as bh, type ListContactIdsBySegmentRequest as bi, type ListContactIdsBySegmentResponse as bj, type DomainEvent as bk, type DomainEventBodyOneOf as bl, type EntityCreatedEvent as bm, type RestoreInfo as bn, type EntityUpdatedEvent as bo, type EntityDeletedEvent as bp, type ActionEvent as bq, type MessageEnvelope as br, type IdentificationData as bs, type IdentificationDataIdOneOf as bt, type BaseEventMetadata as bu, type EventMetadata as bv, type ContactCreatedEnvelope as bw, type ContactDeletedEnvelope as bx, type ContactMergedEnvelope as by, type ContactUpdatedEnvelope as bz, type UpdateContactResponse as c, type MergeContactsResponse as d, type UnlabelContactResponse as e, type ContactsQueryBuilder as f, type Contact as g, ContactSourceType as h, ContactActivityType as i, SubscriptionStatus as j, EmailDeliverabilityStatus as k, PhoneDeliverabilityStatus as l, MemberStatus as m, PrivacyStatus as n, SortOrder as o, ContactFieldSet as p, ContactsFacetType as q, Action as r, UpsertContactResponseAction as s, GetContactResponseType as t, SubmitOperation as u, Mode as v, type ContactSource as w, type ContactActivity as x, type ActivityIcon as y, type PrimaryContactInfo as z };
|