@wix/auto_sdk_crm_contacts 1.0.3 → 1.0.4
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/src/contacts-v4-contact-contacts.types.d.ts +332 -66
- package/build/cjs/src/contacts-v4-contact-contacts.types.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact-contacts.universal.d.ts +344 -68
- package/build/cjs/src/contacts-v4-contact-contacts.universal.js.map +1 -1
- package/build/es/src/contacts-v4-contact-contacts.types.d.ts +332 -66
- package/build/es/src/contacts-v4-contact-contacts.types.js.map +1 -1
- package/build/es/src/contacts-v4-contact-contacts.universal.d.ts +344 -68
- package/build/es/src/contacts-v4-contact-contacts.universal.js.map +1 -1
- package/build/internal/cjs/src/contacts-v4-contact-contacts.types.d.ts +332 -66
- package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js.map +1 -1
- package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.d.ts +351 -70
- package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js.map +1 -1
- package/build/internal/es/src/contacts-v4-contact-contacts.types.d.ts +332 -66
- package/build/internal/es/src/contacts-v4-contact-contacts.types.js.map +1 -1
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.d.ts +351 -70
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface Contact {
|
|
2
2
|
/**
|
|
3
3
|
* Contact ID.
|
|
4
|
+
* @format GUID
|
|
4
5
|
* @readonly
|
|
5
6
|
*/
|
|
6
7
|
id?: string;
|
|
@@ -57,6 +58,7 @@ export interface ContactSource {
|
|
|
57
58
|
sourceType?: ContactSourceType;
|
|
58
59
|
/**
|
|
59
60
|
* App ID, if the contact was created by an app.
|
|
61
|
+
* @format GUID
|
|
60
62
|
* @readonly
|
|
61
63
|
*/
|
|
62
64
|
appId?: string | null;
|
|
@@ -173,9 +175,15 @@ export declare enum ContactActivityType {
|
|
|
173
175
|
PHONE_SUBSCRIPTION_UNSUBSCRIBE = "PHONE_SUBSCRIPTION_UNSUBSCRIBE"
|
|
174
176
|
}
|
|
175
177
|
export interface ActivityIcon {
|
|
176
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* Icon name
|
|
180
|
+
* @maxLength 50
|
|
181
|
+
*/
|
|
177
182
|
name?: string | null;
|
|
178
|
-
/**
|
|
183
|
+
/**
|
|
184
|
+
* Icon url
|
|
185
|
+
* @format WEB_URL
|
|
186
|
+
*/
|
|
179
187
|
url?: string | null;
|
|
180
188
|
}
|
|
181
189
|
export interface PrimaryContactInfo {
|
|
@@ -184,6 +192,7 @@ export interface PrimaryContactInfo {
|
|
|
184
192
|
*
|
|
185
193
|
* This property reflects the email address in `info.emails`
|
|
186
194
|
* where `primary` is `true`.
|
|
195
|
+
* @format EMAIL
|
|
187
196
|
* @readonly
|
|
188
197
|
*/
|
|
189
198
|
email?: string | null;
|
|
@@ -225,11 +234,20 @@ export interface ContactInfo {
|
|
|
225
234
|
phones?: ContactPhonesWrapper;
|
|
226
235
|
/** Contact's street addresses. */
|
|
227
236
|
addresses?: ContactAddressesWrapper;
|
|
228
|
-
/**
|
|
237
|
+
/**
|
|
238
|
+
* Contact's company name.
|
|
239
|
+
* @maxLength 1000
|
|
240
|
+
*/
|
|
229
241
|
company?: string | null;
|
|
230
|
-
/**
|
|
242
|
+
/**
|
|
243
|
+
* Contact's job title.
|
|
244
|
+
* @maxLength 1000
|
|
245
|
+
*/
|
|
231
246
|
jobTitle?: string | null;
|
|
232
|
-
/**
|
|
247
|
+
/**
|
|
248
|
+
* Birth date in `YYYY-MM-DD` format. For example, `2020-03-15`.
|
|
249
|
+
* @format LOCAL_DATE
|
|
250
|
+
*/
|
|
233
251
|
birthdate?: string | null;
|
|
234
252
|
/**
|
|
235
253
|
* Locale in
|
|
@@ -237,6 +255,7 @@ export interface ContactInfo {
|
|
|
237
255
|
* Typically, this is a lowercase 2-letter language code,
|
|
238
256
|
* followed by a hyphen, followed by an uppercase 2-letter country code.
|
|
239
257
|
* For example, `en-US` for U.S. English, and `de-DE` for Germany German.
|
|
258
|
+
* @format LANGUAGE_TAG
|
|
240
259
|
*/
|
|
241
260
|
locale?: string | null;
|
|
242
261
|
/**
|
|
@@ -258,18 +277,28 @@ export interface ContactInfo {
|
|
|
258
277
|
picture?: ContactPicture;
|
|
259
278
|
}
|
|
260
279
|
export interface ContactName {
|
|
261
|
-
/**
|
|
280
|
+
/**
|
|
281
|
+
* Contact's first name.
|
|
282
|
+
* @maxLength 1000
|
|
283
|
+
*/
|
|
262
284
|
first?: string | null;
|
|
263
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* Contact's last name.
|
|
287
|
+
* @maxLength 1000
|
|
288
|
+
*/
|
|
264
289
|
last?: string | null;
|
|
265
290
|
}
|
|
266
291
|
export interface ContactEmailsWrapper {
|
|
267
|
-
/**
|
|
292
|
+
/**
|
|
293
|
+
* List of up to 50 email addresses.
|
|
294
|
+
* @maxSize 50
|
|
295
|
+
*/
|
|
268
296
|
items?: ContactEmail[];
|
|
269
297
|
}
|
|
270
298
|
export interface ContactEmail {
|
|
271
299
|
/**
|
|
272
300
|
* Email ID.
|
|
301
|
+
* @format GUID
|
|
273
302
|
* @readonly
|
|
274
303
|
*/
|
|
275
304
|
id?: string | null;
|
|
@@ -279,7 +308,11 @@ export interface ContactEmail {
|
|
|
279
308
|
* `UNTAGGED` is shown as "Other" in the Contact List.
|
|
280
309
|
*/
|
|
281
310
|
tag?: EmailTag;
|
|
282
|
-
/**
|
|
311
|
+
/**
|
|
312
|
+
* Email address.
|
|
313
|
+
* @minLength 1
|
|
314
|
+
* @maxLength 320
|
|
315
|
+
*/
|
|
283
316
|
email?: string;
|
|
284
317
|
/**
|
|
285
318
|
* Indicates whether this is the contact's primary email address.
|
|
@@ -296,12 +329,16 @@ export declare enum EmailTag {
|
|
|
296
329
|
WORK = "WORK"
|
|
297
330
|
}
|
|
298
331
|
export interface ContactPhonesWrapper {
|
|
299
|
-
/**
|
|
332
|
+
/**
|
|
333
|
+
* List of up to 50 phone numbers.
|
|
334
|
+
* @maxSize 50
|
|
335
|
+
*/
|
|
300
336
|
items?: ContactPhone[];
|
|
301
337
|
}
|
|
302
338
|
export interface ContactPhone {
|
|
303
339
|
/**
|
|
304
340
|
* Phone ID.
|
|
341
|
+
* @format GUID
|
|
305
342
|
* @readonly
|
|
306
343
|
*/
|
|
307
344
|
id?: string | null;
|
|
@@ -311,9 +348,16 @@ export interface ContactPhone {
|
|
|
311
348
|
* `UNTAGGED` is shown as "Other" in the Contact List.
|
|
312
349
|
*/
|
|
313
350
|
tag?: PhoneTag;
|
|
314
|
-
/**
|
|
351
|
+
/**
|
|
352
|
+
* [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
|
|
353
|
+
* @format COUNTRY
|
|
354
|
+
*/
|
|
315
355
|
countryCode?: string | null;
|
|
316
|
-
/**
|
|
356
|
+
/**
|
|
357
|
+
* Phone number.
|
|
358
|
+
* @minLength 1
|
|
359
|
+
* @maxLength 50
|
|
360
|
+
*/
|
|
317
361
|
phone?: string;
|
|
318
362
|
/**
|
|
319
363
|
* [ITU E.164-formatted](https://www.itu.int/rec/T-REC-E.164/)
|
|
@@ -339,12 +383,16 @@ export declare enum PhoneTag {
|
|
|
339
383
|
FAX = "FAX"
|
|
340
384
|
}
|
|
341
385
|
export interface ContactAddressesWrapper {
|
|
342
|
-
/**
|
|
386
|
+
/**
|
|
387
|
+
* List of up to 50 addresses.
|
|
388
|
+
* @maxSize 50
|
|
389
|
+
*/
|
|
343
390
|
items?: ContactAddress[];
|
|
344
391
|
}
|
|
345
392
|
export interface ContactAddress {
|
|
346
393
|
/**
|
|
347
394
|
* Street address ID.
|
|
395
|
+
* @format GUID
|
|
348
396
|
* @readonly
|
|
349
397
|
*/
|
|
350
398
|
id?: string | null;
|
|
@@ -367,25 +415,37 @@ export declare enum AddressTag {
|
|
|
367
415
|
export interface Address extends AddressStreetOneOf {
|
|
368
416
|
/** Street address object, with number and name in separate fields. */
|
|
369
417
|
streetAddress?: StreetAddress;
|
|
370
|
-
/**
|
|
418
|
+
/**
|
|
419
|
+
* Main address line, usually street and number, as free text.
|
|
420
|
+
* @maxLength 1000
|
|
421
|
+
*/
|
|
371
422
|
addressLine?: string | null;
|
|
372
423
|
/**
|
|
373
424
|
* 2-letter country code in an
|
|
374
425
|
* [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
|
|
426
|
+
* @format COUNTRY
|
|
375
427
|
*/
|
|
376
428
|
country?: string | null;
|
|
377
429
|
/**
|
|
378
430
|
* Code for a subdivision (such as state, prefecture, or province) in an
|
|
379
431
|
* [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
|
|
432
|
+
* @maxLength 100
|
|
380
433
|
*/
|
|
381
434
|
subdivision?: string | null;
|
|
382
|
-
/**
|
|
435
|
+
/**
|
|
436
|
+
* City name.
|
|
437
|
+
* @maxLength 1000
|
|
438
|
+
*/
|
|
383
439
|
city?: string | null;
|
|
384
|
-
/**
|
|
440
|
+
/**
|
|
441
|
+
* Postal or zip code.
|
|
442
|
+
* @maxLength 100
|
|
443
|
+
*/
|
|
385
444
|
postalCode?: string | null;
|
|
386
445
|
/**
|
|
387
446
|
* Free text providing more detailed address information,
|
|
388
447
|
* such as apartment, suite, or floor.
|
|
448
|
+
* @maxLength 1000
|
|
389
449
|
*/
|
|
390
450
|
addressLine2?: string | null;
|
|
391
451
|
}
|
|
@@ -393,13 +453,22 @@ export interface Address extends AddressStreetOneOf {
|
|
|
393
453
|
export interface AddressStreetOneOf {
|
|
394
454
|
/** Street address object, with number and name in separate fields. */
|
|
395
455
|
streetAddress?: StreetAddress;
|
|
396
|
-
/**
|
|
456
|
+
/**
|
|
457
|
+
* Main address line, usually street and number, as free text.
|
|
458
|
+
* @maxLength 1000
|
|
459
|
+
*/
|
|
397
460
|
addressLine?: string | null;
|
|
398
461
|
}
|
|
399
462
|
export interface StreetAddress {
|
|
400
|
-
/**
|
|
463
|
+
/**
|
|
464
|
+
* Street number.
|
|
465
|
+
* @maxLength 100
|
|
466
|
+
*/
|
|
401
467
|
number?: string;
|
|
402
|
-
/**
|
|
468
|
+
/**
|
|
469
|
+
* Street name.
|
|
470
|
+
* @maxLength 1000
|
|
471
|
+
*/
|
|
403
472
|
name?: string;
|
|
404
473
|
}
|
|
405
474
|
export interface AddressLocation {
|
|
@@ -430,7 +499,11 @@ export declare enum SubdivisionType {
|
|
|
430
499
|
COUNTRY = "COUNTRY"
|
|
431
500
|
}
|
|
432
501
|
export interface AssigneesWrapper {
|
|
433
|
-
/**
|
|
502
|
+
/**
|
|
503
|
+
* List of site contributor user IDs.
|
|
504
|
+
* @format GUID
|
|
505
|
+
* @maxSize 50
|
|
506
|
+
*/
|
|
434
507
|
items?: string[];
|
|
435
508
|
}
|
|
436
509
|
export interface LabelsWrapper {
|
|
@@ -439,6 +512,7 @@ export interface LabelsWrapper {
|
|
|
439
512
|
*
|
|
440
513
|
* Contact labels help categorize contacts. Label keys must exist to be added to the contact.
|
|
441
514
|
* Contact labels can be created or retrieved with Find or Create Label or List Labels.
|
|
515
|
+
* @maxSize 2000
|
|
442
516
|
*/
|
|
443
517
|
items?: string[];
|
|
444
518
|
}
|
|
@@ -453,7 +527,11 @@ export interface ExtendedFieldsWrapper {
|
|
|
453
527
|
items?: Record<string, any>;
|
|
454
528
|
}
|
|
455
529
|
export interface LocationsWrapper {
|
|
456
|
-
/**
|
|
530
|
+
/**
|
|
531
|
+
* List of location ids.
|
|
532
|
+
* @format GUID
|
|
533
|
+
* @maxSize 50
|
|
534
|
+
*/
|
|
457
535
|
items?: string[];
|
|
458
536
|
}
|
|
459
537
|
/** TEST contact picture description */
|
|
@@ -472,7 +550,11 @@ export declare enum ImageProvider {
|
|
|
472
550
|
WIX_MEDIA = "WIX_MEDIA"
|
|
473
551
|
}
|
|
474
552
|
export interface SegmentsWrapper {
|
|
475
|
-
/**
|
|
553
|
+
/**
|
|
554
|
+
* List of Contact segment IDs
|
|
555
|
+
* @maxSize 60
|
|
556
|
+
* @format GUID
|
|
557
|
+
*/
|
|
476
558
|
items?: string[];
|
|
477
559
|
}
|
|
478
560
|
export interface PrimaryEmail {
|
|
@@ -481,6 +563,7 @@ export interface PrimaryEmail {
|
|
|
481
563
|
*
|
|
482
564
|
* This property reflects the email address in `info.emails`
|
|
483
565
|
* where `primary` is `true`.
|
|
566
|
+
* @format EMAIL
|
|
484
567
|
* @readonly
|
|
485
568
|
*/
|
|
486
569
|
email?: string | null;
|
|
@@ -523,7 +606,10 @@ export declare enum EmailDeliverabilityStatus {
|
|
|
523
606
|
INACTIVE = "INACTIVE"
|
|
524
607
|
}
|
|
525
608
|
export interface PrimaryPhone {
|
|
526
|
-
/**
|
|
609
|
+
/**
|
|
610
|
+
* [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the primary phone.
|
|
611
|
+
* @format COUNTRY
|
|
612
|
+
*/
|
|
527
613
|
countryCode?: string | null;
|
|
528
614
|
/**
|
|
529
615
|
* [ITU E.164-formatted](https://www.itu.int/rec/T-REC-E.164/)
|
|
@@ -564,11 +650,17 @@ export declare enum PhoneDeliverabilityStatus {
|
|
|
564
650
|
NOT_SET = "NOT_SET"
|
|
565
651
|
}
|
|
566
652
|
export interface MemberInfo {
|
|
567
|
-
/**
|
|
653
|
+
/**
|
|
654
|
+
* Member ID
|
|
655
|
+
* @format GUID
|
|
656
|
+
*/
|
|
568
657
|
memberId?: string | null;
|
|
569
658
|
/** Signup date */
|
|
570
659
|
signupDate?: Date | null;
|
|
571
|
-
/**
|
|
660
|
+
/**
|
|
661
|
+
* Login email
|
|
662
|
+
* @format EMAIL
|
|
663
|
+
*/
|
|
572
664
|
email?: string | null;
|
|
573
665
|
/** Indicate whether the email is verified */
|
|
574
666
|
emailVerified?: boolean | null;
|
|
@@ -599,7 +691,10 @@ export declare enum MemberStatus {
|
|
|
599
691
|
OFFLINE = "OFFLINE"
|
|
600
692
|
}
|
|
601
693
|
export interface ProfileInfo {
|
|
602
|
-
/**
|
|
694
|
+
/**
|
|
695
|
+
* Nickname
|
|
696
|
+
* @maxLength 255
|
|
697
|
+
*/
|
|
603
698
|
nickname?: string | null;
|
|
604
699
|
/** Privacy status */
|
|
605
700
|
privacyStatus?: PrivacyStatus;
|
|
@@ -615,7 +710,10 @@ export declare enum PrivacyStatus {
|
|
|
615
710
|
PUBLIC = "PUBLIC"
|
|
616
711
|
}
|
|
617
712
|
export interface UserInfo {
|
|
618
|
-
/**
|
|
713
|
+
/**
|
|
714
|
+
* User ID
|
|
715
|
+
* @format GUID
|
|
716
|
+
*/
|
|
619
717
|
userId?: string;
|
|
620
718
|
/** The user's role on the website */
|
|
621
719
|
role?: Role;
|
|
@@ -630,11 +728,19 @@ export interface SessionInfo {
|
|
|
630
728
|
lastWebLogin?: Date | null;
|
|
631
729
|
/** Last time the member logged in to one of the mobile apps */
|
|
632
730
|
lastMobileLogin?: Date | null;
|
|
633
|
-
/**
|
|
731
|
+
/**
|
|
732
|
+
* List of mobile apps that the member has ever logged in to
|
|
733
|
+
* @maxSize 50
|
|
734
|
+
* @maxLength 50
|
|
735
|
+
*/
|
|
634
736
|
mobileAppNames?: string[];
|
|
635
737
|
}
|
|
636
738
|
export interface GroupInfo {
|
|
637
|
-
/**
|
|
739
|
+
/**
|
|
740
|
+
* Group IDs
|
|
741
|
+
* @format GUID
|
|
742
|
+
* @maxSize 1000
|
|
743
|
+
*/
|
|
638
744
|
groupIds?: string[];
|
|
639
745
|
}
|
|
640
746
|
export interface ContactSubmitted {
|
|
@@ -697,13 +803,22 @@ export interface PrimarySubscriptionStatus {
|
|
|
697
803
|
* the update of the contact's last activity is done asynchronously.
|
|
698
804
|
*/
|
|
699
805
|
export interface LastActivityUpdate {
|
|
700
|
-
/**
|
|
806
|
+
/**
|
|
807
|
+
* The contact ID.
|
|
808
|
+
* @format GUID
|
|
809
|
+
*/
|
|
701
810
|
contactId?: string;
|
|
702
811
|
/** Activity date. */
|
|
703
812
|
activityDate?: Date | null;
|
|
704
|
-
/**
|
|
813
|
+
/**
|
|
814
|
+
* Activity translation key.
|
|
815
|
+
* @maxLength 100
|
|
816
|
+
*/
|
|
705
817
|
activityTranslationKey?: string;
|
|
706
|
-
/**
|
|
818
|
+
/**
|
|
819
|
+
* Activity icon.
|
|
820
|
+
* @maxLength 100
|
|
821
|
+
*/
|
|
707
822
|
icon?: string | null;
|
|
708
823
|
}
|
|
709
824
|
/** Contact creation options. */
|
|
@@ -730,12 +845,18 @@ export interface CreateContactResponse {
|
|
|
730
845
|
contact?: Contact;
|
|
731
846
|
}
|
|
732
847
|
export interface DuplicateContactExists {
|
|
848
|
+
/** @format GUID */
|
|
733
849
|
duplicateContactId?: string | null;
|
|
850
|
+
/** @format EMAIL */
|
|
734
851
|
duplicateEmail?: string | null;
|
|
852
|
+
/** @format PHONE */
|
|
735
853
|
duplicatePhone?: string | null;
|
|
736
854
|
}
|
|
737
855
|
export interface UpdateContactRequest {
|
|
738
|
-
/**
|
|
856
|
+
/**
|
|
857
|
+
* ID of the contact to update.
|
|
858
|
+
* @format GUID
|
|
859
|
+
*/
|
|
739
860
|
contactId: string;
|
|
740
861
|
/**
|
|
741
862
|
* Revision number.
|
|
@@ -765,7 +886,10 @@ export interface UpdateContactResponse {
|
|
|
765
886
|
contact?: Contact;
|
|
766
887
|
}
|
|
767
888
|
export interface MergeContactsRequest {
|
|
768
|
-
/**
|
|
889
|
+
/**
|
|
890
|
+
* Target contact ID.
|
|
891
|
+
* @format GUID
|
|
892
|
+
*/
|
|
769
893
|
targetContactId: string;
|
|
770
894
|
/**
|
|
771
895
|
* Target contact revision number, which increments by 1 each time the contact is updated.
|
|
@@ -777,6 +901,8 @@ export interface MergeContactsRequest {
|
|
|
777
901
|
* IDs of up to 5 contacts to merge into the target contact.
|
|
778
902
|
* When you merge more than one source contact,
|
|
779
903
|
* the first source is given precedence, then the second, and so on.
|
|
904
|
+
* @minSize 1
|
|
905
|
+
* @maxSize 5
|
|
780
906
|
*/
|
|
781
907
|
sourceContactIds?: string[];
|
|
782
908
|
}
|
|
@@ -793,12 +919,17 @@ export interface ContactMerged {
|
|
|
793
919
|
targetContact?: Contact;
|
|
794
920
|
}
|
|
795
921
|
export interface PreviewMergeContactsRequest {
|
|
796
|
-
/**
|
|
922
|
+
/**
|
|
923
|
+
* Target contact ID.
|
|
924
|
+
* @format GUID
|
|
925
|
+
*/
|
|
797
926
|
targetContactId?: string;
|
|
798
927
|
/**
|
|
799
928
|
* IDs of up to 5 contacts to merge into the target contact.
|
|
800
929
|
* When you merge more than one source contact,
|
|
801
930
|
* the first source is given precedence, then the second, and so on.
|
|
931
|
+
* @minSize 1
|
|
932
|
+
* @maxSize 5
|
|
802
933
|
*/
|
|
803
934
|
sourceContactIds?: string[];
|
|
804
935
|
}
|
|
@@ -807,19 +938,27 @@ export interface PreviewMergeContactsResponse {
|
|
|
807
938
|
contact?: Contact;
|
|
808
939
|
}
|
|
809
940
|
export interface DeleteContactRequest {
|
|
810
|
-
/**
|
|
941
|
+
/**
|
|
942
|
+
* ID of the contact to delete.
|
|
943
|
+
* @format GUID
|
|
944
|
+
*/
|
|
811
945
|
contactId: string;
|
|
812
946
|
}
|
|
813
947
|
export interface DeleteContactResponse {
|
|
814
948
|
}
|
|
815
949
|
export interface LabelContactRequest {
|
|
816
|
-
/**
|
|
950
|
+
/**
|
|
951
|
+
* ID of the contact to add labels to.
|
|
952
|
+
* @format GUID
|
|
953
|
+
*/
|
|
817
954
|
contactId: string;
|
|
818
955
|
/**
|
|
819
956
|
* List of label keys to add to the contact.
|
|
820
957
|
*
|
|
821
958
|
* Label keys must exist to be added to the contact.
|
|
822
959
|
* Use the Labels API to create or retrieve labels.
|
|
960
|
+
* @minSize 1
|
|
961
|
+
* @maxSize 100
|
|
823
962
|
*/
|
|
824
963
|
labelKeys: string[];
|
|
825
964
|
}
|
|
@@ -829,9 +968,16 @@ export interface LabelContactResponse {
|
|
|
829
968
|
contact?: Contact;
|
|
830
969
|
}
|
|
831
970
|
export interface UnlabelContactRequest {
|
|
832
|
-
/**
|
|
971
|
+
/**
|
|
972
|
+
* ID of the contact to remove labels from.
|
|
973
|
+
* @format GUID
|
|
974
|
+
*/
|
|
833
975
|
contactId: string;
|
|
834
|
-
/**
|
|
976
|
+
/**
|
|
977
|
+
* List of label keys to remove from the contact.
|
|
978
|
+
* @minSize 1
|
|
979
|
+
* @maxSize 100
|
|
980
|
+
*/
|
|
835
981
|
labelKeys: string[];
|
|
836
982
|
}
|
|
837
983
|
/** Updated contact. */
|
|
@@ -840,7 +986,10 @@ export interface UnlabelContactResponse {
|
|
|
840
986
|
contact?: Contact;
|
|
841
987
|
}
|
|
842
988
|
export interface LabelAndUnlabelContactRequest {
|
|
843
|
-
/**
|
|
989
|
+
/**
|
|
990
|
+
* Contact ID.
|
|
991
|
+
* @format GUID
|
|
992
|
+
*/
|
|
844
993
|
contactId?: string;
|
|
845
994
|
/**
|
|
846
995
|
* List of label keys to add to the contact.
|
|
@@ -850,9 +999,15 @@ export interface LabelAndUnlabelContactRequest {
|
|
|
850
999
|
* [Find or Create Label](https://dev.wix.com/api/rest/contacts/labels/find-or-create-label)
|
|
851
1000
|
* or
|
|
852
1001
|
* [List Labels](https://dev.wix.com/api/rest/contacts/labels/list-labels).
|
|
1002
|
+
* @minSize 1
|
|
1003
|
+
* @maxSize 100
|
|
853
1004
|
*/
|
|
854
1005
|
labelKeysToAdd?: string[];
|
|
855
|
-
/**
|
|
1006
|
+
/**
|
|
1007
|
+
* List of label keys to remove from the contact.
|
|
1008
|
+
* @minSize 1
|
|
1009
|
+
* @maxSize 100
|
|
1010
|
+
*/
|
|
856
1011
|
labelKeysToRemove?: string[];
|
|
857
1012
|
}
|
|
858
1013
|
export interface LabelAndUnlabelContactResponse {
|
|
@@ -875,8 +1030,11 @@ export interface ListContactsRequest {
|
|
|
875
1030
|
* `info.name`, `info.emails`, `info.phones`, `info.addresses`, `info.company`,
|
|
876
1031
|
* `info.jobTitle`, `info.picture`, `info.birthdate`, `info.locale`,
|
|
877
1032
|
* `info.labelKeys`, `info.locations`, `info.extendedFields`
|
|
1033
|
+
* @maxLength 100
|
|
1034
|
+
* @maxSize 100
|
|
878
1035
|
*/
|
|
879
1036
|
fields?: string[];
|
|
1037
|
+
/** @maxSize 10 */
|
|
880
1038
|
fieldsets?: ContactFieldSet[];
|
|
881
1039
|
}
|
|
882
1040
|
export interface Sorting {
|
|
@@ -886,6 +1044,7 @@ export interface Sorting {
|
|
|
886
1044
|
* Supported properties:
|
|
887
1045
|
* `createdDate`, `lastActivity.activityDate`, `primaryInfo.email`, `info.name.first`, `info.name.last`, `info.company`,
|
|
888
1046
|
* `info.jobTitle`, `info.birthdate`
|
|
1047
|
+
* @maxLength 100
|
|
889
1048
|
*/
|
|
890
1049
|
fieldName?: string;
|
|
891
1050
|
/**
|
|
@@ -906,6 +1065,7 @@ export interface Paging {
|
|
|
906
1065
|
*
|
|
907
1066
|
* Default: `50`. <br>
|
|
908
1067
|
* Maximum: `1000`.
|
|
1068
|
+
* @max 1000
|
|
909
1069
|
*/
|
|
910
1070
|
limit?: number | null;
|
|
911
1071
|
/** Number of items to skip in the current sort order. */
|
|
@@ -946,6 +1106,7 @@ export interface QueryContactsRequest {
|
|
|
946
1106
|
* `info.name.first`, `info.name.last`, `info.emails.email`, `info.phones.phone`
|
|
947
1107
|
*
|
|
948
1108
|
* Max: 100 characters
|
|
1109
|
+
* @maxLength 100
|
|
949
1110
|
*/
|
|
950
1111
|
search?: string | null;
|
|
951
1112
|
/** Query options. */
|
|
@@ -967,6 +1128,7 @@ export interface Query {
|
|
|
967
1128
|
* for more information.
|
|
968
1129
|
*
|
|
969
1130
|
* Max: 1 sort object
|
|
1131
|
+
* @maxSize 1
|
|
970
1132
|
*/
|
|
971
1133
|
sort?: Sorting[];
|
|
972
1134
|
/** Pagination options. */
|
|
@@ -982,6 +1144,8 @@ export interface Query {
|
|
|
982
1144
|
* `info.name`, `info.emails`, `info.phones`, `info.addresses`, `info.company`,
|
|
983
1145
|
* `info.jobTitle`, `info.picture`, `info.birthdate`, `info.locale`,
|
|
984
1146
|
* `info.labelKeys`, `info.locations`, `info.extendedFields`
|
|
1147
|
+
* @maxLength 100
|
|
1148
|
+
* @maxSize 100
|
|
985
1149
|
*/
|
|
986
1150
|
fields?: string[];
|
|
987
1151
|
/**
|
|
@@ -995,6 +1159,7 @@ export interface Query {
|
|
|
995
1159
|
* - `FULL`: Returns all fields.
|
|
996
1160
|
*
|
|
997
1161
|
* Default: If `fields` is omitted from the request, `FULL`.
|
|
1162
|
+
* @maxSize 10
|
|
998
1163
|
*/
|
|
999
1164
|
fieldsets?: ContactFieldSet[];
|
|
1000
1165
|
}
|
|
@@ -1008,7 +1173,10 @@ export interface QueryContactsResponse {
|
|
|
1008
1173
|
export interface ListFacetsRequest {
|
|
1009
1174
|
/** Pagination options. */
|
|
1010
1175
|
paging?: Paging;
|
|
1011
|
-
/**
|
|
1176
|
+
/**
|
|
1177
|
+
* Language for localization.
|
|
1178
|
+
* @format LANGUAGE
|
|
1179
|
+
*/
|
|
1012
1180
|
language?: string | null;
|
|
1013
1181
|
}
|
|
1014
1182
|
export interface ListFacetsResponse {
|
|
@@ -1050,7 +1218,10 @@ export declare enum ContactsFacetType {
|
|
|
1050
1218
|
export interface QueryFacetsRequest {
|
|
1051
1219
|
/** Pagination options. */
|
|
1052
1220
|
paging?: Paging;
|
|
1053
|
-
/**
|
|
1221
|
+
/**
|
|
1222
|
+
* Language for localization.
|
|
1223
|
+
* @format LANGUAGE
|
|
1224
|
+
*/
|
|
1054
1225
|
language?: string | null;
|
|
1055
1226
|
/**
|
|
1056
1227
|
* Filterable fields:
|
|
@@ -1090,6 +1261,7 @@ export interface BulkDeleteContactsRequest {
|
|
|
1090
1261
|
* - `info.name.last`
|
|
1091
1262
|
* - `info.emails.email`
|
|
1092
1263
|
* - `info.phones.phone`
|
|
1264
|
+
* @maxLength 100
|
|
1093
1265
|
*/
|
|
1094
1266
|
search?: string | null;
|
|
1095
1267
|
}
|
|
@@ -1097,6 +1269,7 @@ export interface BulkDeleteContactsResponse {
|
|
|
1097
1269
|
/**
|
|
1098
1270
|
* Bulk job ID.
|
|
1099
1271
|
* The job's status can be retrieved with Get Bulk Job.
|
|
1272
|
+
* @format GUID
|
|
1100
1273
|
*/
|
|
1101
1274
|
jobId?: string;
|
|
1102
1275
|
}
|
|
@@ -1124,6 +1297,7 @@ export interface BulkUpdateContactsRequest {
|
|
|
1124
1297
|
* - `info.name.last`
|
|
1125
1298
|
* - `info.emails.email`
|
|
1126
1299
|
* - `info.phones.phone`
|
|
1300
|
+
* @maxLength 100
|
|
1127
1301
|
*/
|
|
1128
1302
|
search?: string | null;
|
|
1129
1303
|
/** Contact info. */
|
|
@@ -1133,6 +1307,7 @@ export interface BulkUpdateContactsResponse {
|
|
|
1133
1307
|
/**
|
|
1134
1308
|
* Bulk job ID.
|
|
1135
1309
|
* The job's status can be retrieved with Get Bulk Job.
|
|
1310
|
+
* @format GUID
|
|
1136
1311
|
*/
|
|
1137
1312
|
jobId?: string;
|
|
1138
1313
|
}
|
|
@@ -1153,6 +1328,7 @@ export interface BulkLabelAndUnlabelContactsRequest {
|
|
|
1153
1328
|
* See
|
|
1154
1329
|
* [Field Support for Filtering, Sorting, and Searching](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/sort-filter-and-search)
|
|
1155
1330
|
* for a list of searchable fields.
|
|
1331
|
+
* @maxLength 100
|
|
1156
1332
|
*/
|
|
1157
1333
|
search?: string | null;
|
|
1158
1334
|
/**
|
|
@@ -1163,19 +1339,28 @@ export interface BulkLabelAndUnlabelContactsRequest {
|
|
|
1163
1339
|
* [Find or Create Label](https://dev.wix.com/api/rest/contacts/labels/find-or-create-label)
|
|
1164
1340
|
* or
|
|
1165
1341
|
* [List Labels](https://dev.wix.com/api/rest/contacts/labels/list-labels)
|
|
1342
|
+
* @maxSize 100
|
|
1166
1343
|
*/
|
|
1167
1344
|
labelKeysToAdd?: string[];
|
|
1168
|
-
/**
|
|
1345
|
+
/**
|
|
1346
|
+
* List of label keys to remove from the contacts.
|
|
1347
|
+
* @maxSize 100
|
|
1348
|
+
*/
|
|
1169
1349
|
labelKeysToRemove?: string[];
|
|
1170
1350
|
}
|
|
1171
1351
|
export interface BulkLabelAndUnlabelContactsResponse {
|
|
1172
1352
|
/**
|
|
1173
1353
|
* Bulk job ID.
|
|
1174
1354
|
* The job's status can be retrieved with Get Bulk Job.
|
|
1355
|
+
* @format GUID
|
|
1175
1356
|
*/
|
|
1176
1357
|
jobId?: string;
|
|
1177
1358
|
}
|
|
1178
1359
|
export interface BulkUpsertContactsRequest {
|
|
1360
|
+
/**
|
|
1361
|
+
* @minSize 1
|
|
1362
|
+
* @maxSize 100
|
|
1363
|
+
*/
|
|
1179
1364
|
info?: ContactInfo[];
|
|
1180
1365
|
returnFullEntity?: boolean;
|
|
1181
1366
|
}
|
|
@@ -1225,7 +1410,10 @@ export declare enum UpsertContactResponseAction {
|
|
|
1225
1410
|
CREATED = "CREATED"
|
|
1226
1411
|
}
|
|
1227
1412
|
export interface GeneratePictureUploadUrlRequest {
|
|
1228
|
-
/**
|
|
1413
|
+
/**
|
|
1414
|
+
* ID of the contact whose picture is being updated.
|
|
1415
|
+
* @format GUID
|
|
1416
|
+
*/
|
|
1229
1417
|
contactId?: string;
|
|
1230
1418
|
/**
|
|
1231
1419
|
* Mime Type. Must be one of:
|
|
@@ -1235,11 +1423,17 @@ export interface GeneratePictureUploadUrlRequest {
|
|
|
1235
1423
|
mimeType?: string | null;
|
|
1236
1424
|
}
|
|
1237
1425
|
export interface GeneratePictureUploadUrlResponse {
|
|
1238
|
-
/**
|
|
1426
|
+
/**
|
|
1427
|
+
* URL to upload the image
|
|
1428
|
+
* @format WEB_URL
|
|
1429
|
+
*/
|
|
1239
1430
|
uploadUrl?: string;
|
|
1240
1431
|
}
|
|
1241
1432
|
export interface GetContactRequest {
|
|
1242
|
-
/**
|
|
1433
|
+
/**
|
|
1434
|
+
* ID of the contact to retrieve.
|
|
1435
|
+
* @format GUID
|
|
1436
|
+
*/
|
|
1243
1437
|
id: string;
|
|
1244
1438
|
/**
|
|
1245
1439
|
* List of projected fields to return.
|
|
@@ -1252,6 +1446,8 @@ export interface GetContactRequest {
|
|
|
1252
1446
|
* `info.name`, `info.emails`, `info.phones`, `info.addresses`, `info.company`,
|
|
1253
1447
|
* `info.jobTitle`, `info.picture`, `info.birthdate`, `info.locale`,
|
|
1254
1448
|
* `info.labelKeys`, `info.locations`, `info.extendedFields`
|
|
1449
|
+
* @maxLength 100
|
|
1450
|
+
* @maxSize 100
|
|
1255
1451
|
*/
|
|
1256
1452
|
fields?: string[];
|
|
1257
1453
|
/**
|
|
@@ -1265,6 +1461,7 @@ export interface GetContactRequest {
|
|
|
1265
1461
|
* - `FULL`: Returns all fields.
|
|
1266
1462
|
*
|
|
1267
1463
|
* Default: If `fields` is omitted from the request, `FULL`.
|
|
1464
|
+
* @maxSize 10
|
|
1268
1465
|
*/
|
|
1269
1466
|
fieldsets?: ContactFieldSet[];
|
|
1270
1467
|
}
|
|
@@ -1287,6 +1484,7 @@ export interface SyncSubmitContactRequest {
|
|
|
1287
1484
|
contactInfo?: ContactInfo;
|
|
1288
1485
|
activity?: ContactActivity;
|
|
1289
1486
|
passThroughData?: string | null;
|
|
1487
|
+
/** @format GUID */
|
|
1290
1488
|
contactId?: string;
|
|
1291
1489
|
submitOperation?: SubmitOperation;
|
|
1292
1490
|
/** Need to resolve source in allocator, because of server sign */
|
|
@@ -1326,6 +1524,8 @@ export interface Search extends SearchPagingMethodOneOf {
|
|
|
1326
1524
|
*
|
|
1327
1525
|
* For a list of valid projected fields, see
|
|
1328
1526
|
* [Valid Contact Projection Fields](https://dev.wix.com/api/rest/contacts/contacts/fieldsets-and-projected-fields#contacts_contacts_fieldsets-and-projected-fields_valid-contact-projection-fields).
|
|
1527
|
+
* @maxLength 100
|
|
1528
|
+
* @maxSize 100
|
|
1329
1529
|
*/
|
|
1330
1530
|
fields?: string[];
|
|
1331
1531
|
/**
|
|
@@ -1336,6 +1536,7 @@ export interface Search extends SearchPagingMethodOneOf {
|
|
|
1336
1536
|
*
|
|
1337
1537
|
* For more information,
|
|
1338
1538
|
* see [Contact Fieldsets](https://dev.wix.com/api/rest/contacts/contacts/fieldsets-and-projected-fields#contacts_contacts_fieldsets-and-projected-fields_contact-fieldsets).
|
|
1539
|
+
* @maxSize 10
|
|
1339
1540
|
*/
|
|
1340
1541
|
fieldsets?: string[];
|
|
1341
1542
|
/** free text to match in searchable fields */
|
|
@@ -1349,7 +1550,10 @@ export interface SearchPagingMethodOneOf {
|
|
|
1349
1550
|
export interface SearchDetails {
|
|
1350
1551
|
/** boolean search mode. Default is `OR` */
|
|
1351
1552
|
mode?: Mode;
|
|
1352
|
-
/**
|
|
1553
|
+
/**
|
|
1554
|
+
* search term or expression
|
|
1555
|
+
* @maxLength 100
|
|
1556
|
+
*/
|
|
1353
1557
|
expression?: string | null;
|
|
1354
1558
|
/**
|
|
1355
1559
|
* fields to search in. if empty - server will search in own default fieldsDefault searchable fields:
|
|
@@ -1358,6 +1562,8 @@ export interface SearchDetails {
|
|
|
1358
1562
|
* - `info.name.last`
|
|
1359
1563
|
* - `info.emails.email`
|
|
1360
1564
|
* - `info.phones.phone`
|
|
1565
|
+
* @maxLength 100
|
|
1566
|
+
* @maxSize 100
|
|
1361
1567
|
*/
|
|
1362
1568
|
fields?: string[];
|
|
1363
1569
|
/** flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
|
|
@@ -1370,7 +1576,10 @@ export declare enum Mode {
|
|
|
1370
1576
|
AND = "AND"
|
|
1371
1577
|
}
|
|
1372
1578
|
export interface CursorPaging {
|
|
1373
|
-
/**
|
|
1579
|
+
/**
|
|
1580
|
+
* The number of contacts to load (default = 50, max = 1000)
|
|
1581
|
+
* @max 1000
|
|
1582
|
+
*/
|
|
1374
1583
|
limit?: number | null;
|
|
1375
1584
|
/** Cursor returned in last query response. Should not be provided on first page request */
|
|
1376
1585
|
cursor?: string | null;
|
|
@@ -1402,11 +1611,23 @@ export interface Cursors {
|
|
|
1402
1611
|
prev?: string | null;
|
|
1403
1612
|
}
|
|
1404
1613
|
export interface BulkAddSegmentToContactsRequest {
|
|
1405
|
-
/**
|
|
1614
|
+
/**
|
|
1615
|
+
* Segment id
|
|
1616
|
+
* @format GUID
|
|
1617
|
+
*/
|
|
1406
1618
|
segmentId?: string;
|
|
1407
|
-
/**
|
|
1619
|
+
/**
|
|
1620
|
+
* List of Contact ids
|
|
1621
|
+
* @format GUID
|
|
1622
|
+
* @minSize 1
|
|
1623
|
+
* @maxSize 1000
|
|
1624
|
+
*/
|
|
1408
1625
|
contactIds?: string[];
|
|
1409
|
-
/**
|
|
1626
|
+
/**
|
|
1627
|
+
* List of existing segment ids
|
|
1628
|
+
* @format GUID
|
|
1629
|
+
* @maxSize 100
|
|
1630
|
+
*/
|
|
1410
1631
|
existsSegmentIds?: string[];
|
|
1411
1632
|
}
|
|
1412
1633
|
export interface BulkAddSegmentToContactsResponse {
|
|
@@ -1448,9 +1669,17 @@ export interface ContactAddedToSegment {
|
|
|
1448
1669
|
contact?: Contact;
|
|
1449
1670
|
}
|
|
1450
1671
|
export interface BulkRemoveSegmentFromContactsRequest {
|
|
1451
|
-
/**
|
|
1672
|
+
/**
|
|
1673
|
+
* Segment id
|
|
1674
|
+
* @format GUID
|
|
1675
|
+
*/
|
|
1452
1676
|
segmentId?: string;
|
|
1453
|
-
/**
|
|
1677
|
+
/**
|
|
1678
|
+
* List of Contact ids
|
|
1679
|
+
* @format GUID
|
|
1680
|
+
* @minSize 1
|
|
1681
|
+
* @maxSize 1000
|
|
1682
|
+
*/
|
|
1454
1683
|
contactIds?: string[];
|
|
1455
1684
|
}
|
|
1456
1685
|
export interface BulkRemoveSegmentFromContactsResponse {
|
|
@@ -1466,13 +1695,20 @@ export interface ContactRemovedFromSegment {
|
|
|
1466
1695
|
contact?: Contact;
|
|
1467
1696
|
}
|
|
1468
1697
|
export interface ListContactIdsBySegmentRequest {
|
|
1469
|
-
/**
|
|
1698
|
+
/**
|
|
1699
|
+
* Segment id
|
|
1700
|
+
* @format GUID
|
|
1701
|
+
*/
|
|
1470
1702
|
segmentId?: string;
|
|
1471
1703
|
/** Cursor paging. */
|
|
1472
1704
|
cursorPaging?: CursorPaging;
|
|
1473
1705
|
}
|
|
1474
1706
|
export interface ListContactIdsBySegmentResponse {
|
|
1475
|
-
/**
|
|
1707
|
+
/**
|
|
1708
|
+
* List of contact IDs
|
|
1709
|
+
* @format GUID
|
|
1710
|
+
* @maxSize 1000
|
|
1711
|
+
*/
|
|
1476
1712
|
contactIds?: string[];
|
|
1477
1713
|
/** Paging metadata */
|
|
1478
1714
|
cursorPagingMetadata?: CursorPagingMetadata;
|
|
@@ -1550,9 +1786,15 @@ export interface ActionEvent {
|
|
|
1550
1786
|
bodyAsJson?: string;
|
|
1551
1787
|
}
|
|
1552
1788
|
export interface MessageEnvelope {
|
|
1553
|
-
/**
|
|
1789
|
+
/**
|
|
1790
|
+
* App instance ID.
|
|
1791
|
+
* @format GUID
|
|
1792
|
+
*/
|
|
1554
1793
|
instanceId?: string | null;
|
|
1555
|
-
/**
|
|
1794
|
+
/**
|
|
1795
|
+
* Event type.
|
|
1796
|
+
* @maxLength 150
|
|
1797
|
+
*/
|
|
1556
1798
|
eventType?: string;
|
|
1557
1799
|
/** The identification type and identity data. */
|
|
1558
1800
|
identity?: IdentificationData;
|
|
@@ -1560,26 +1802,50 @@ export interface MessageEnvelope {
|
|
|
1560
1802
|
data?: string;
|
|
1561
1803
|
}
|
|
1562
1804
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1563
|
-
/**
|
|
1805
|
+
/**
|
|
1806
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1807
|
+
* @format GUID
|
|
1808
|
+
*/
|
|
1564
1809
|
anonymousVisitorId?: string;
|
|
1565
|
-
/**
|
|
1810
|
+
/**
|
|
1811
|
+
* ID of a site visitor that has logged in to the site.
|
|
1812
|
+
* @format GUID
|
|
1813
|
+
*/
|
|
1566
1814
|
memberId?: string;
|
|
1567
|
-
/**
|
|
1815
|
+
/**
|
|
1816
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1817
|
+
* @format GUID
|
|
1818
|
+
*/
|
|
1568
1819
|
wixUserId?: string;
|
|
1569
|
-
/**
|
|
1820
|
+
/**
|
|
1821
|
+
* ID of an app.
|
|
1822
|
+
* @format GUID
|
|
1823
|
+
*/
|
|
1570
1824
|
appId?: string;
|
|
1571
1825
|
/** @readonly */
|
|
1572
1826
|
identityType?: WebhookIdentityType;
|
|
1573
1827
|
}
|
|
1574
1828
|
/** @oneof */
|
|
1575
1829
|
export interface IdentificationDataIdOneOf {
|
|
1576
|
-
/**
|
|
1830
|
+
/**
|
|
1831
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1832
|
+
* @format GUID
|
|
1833
|
+
*/
|
|
1577
1834
|
anonymousVisitorId?: string;
|
|
1578
|
-
/**
|
|
1835
|
+
/**
|
|
1836
|
+
* ID of a site visitor that has logged in to the site.
|
|
1837
|
+
* @format GUID
|
|
1838
|
+
*/
|
|
1579
1839
|
memberId?: string;
|
|
1580
|
-
/**
|
|
1840
|
+
/**
|
|
1841
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1842
|
+
* @format GUID
|
|
1843
|
+
*/
|
|
1581
1844
|
wixUserId?: string;
|
|
1582
|
-
/**
|
|
1845
|
+
/**
|
|
1846
|
+
* ID of an app.
|
|
1847
|
+
* @format GUID
|
|
1848
|
+
*/
|
|
1583
1849
|
appId?: string;
|
|
1584
1850
|
}
|
|
1585
1851
|
export declare enum WebhookIdentityType {
|