@wix/crm 1.0.59 → 1.0.61
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.public.d.ts +2 -2
- package/build/cjs/src/contacts-v4-contact.public.js +4 -1
- package/build/cjs/src/contacts-v4-contact.public.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact.types.d.ts +172 -3
- package/build/cjs/src/contacts-v4-contact.types.js +42 -2
- package/build/cjs/src/contacts-v4-contact.types.js.map +1 -1
- package/build/cjs/src/contacts-v4-contact.universal.d.ts +124 -3
- package/build/cjs/src/contacts-v4-contact.universal.js +42 -2
- package/build/cjs/src/contacts-v4-contact.universal.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field.universal.d.ts +5 -0
- package/build/cjs/src/contacts-v4-label.universal.d.ts +5 -0
- package/build/cjs/src/contacts-v4-submit-contact.types.d.ts +9 -1
- package/build/cjs/src/contacts-v4-submit-contact.types.js +8 -0
- package/build/cjs/src/contacts-v4-submit-contact.types.js.map +1 -1
- package/build/cjs/src/contacts-v4-submit-contact.universal.d.ts +9 -1
- package/build/cjs/src/contacts-v4-submit-contact.universal.js +8 -0
- package/build/cjs/src/contacts-v4-submit-contact.universal.js.map +1 -1
- package/build/es/src/contacts-v4-contact.public.d.ts +2 -2
- package/build/es/src/contacts-v4-contact.public.js +1 -1
- package/build/es/src/contacts-v4-contact.public.js.map +1 -1
- package/build/es/src/contacts-v4-contact.types.d.ts +172 -3
- package/build/es/src/contacts-v4-contact.types.js +41 -1
- package/build/es/src/contacts-v4-contact.types.js.map +1 -1
- package/build/es/src/contacts-v4-contact.universal.d.ts +124 -3
- package/build/es/src/contacts-v4-contact.universal.js +41 -1
- package/build/es/src/contacts-v4-contact.universal.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field.universal.d.ts +5 -0
- package/build/es/src/contacts-v4-label.universal.d.ts +5 -0
- package/build/es/src/contacts-v4-submit-contact.types.d.ts +9 -1
- package/build/es/src/contacts-v4-submit-contact.types.js +8 -0
- package/build/es/src/contacts-v4-submit-contact.types.js.map +1 -1
- package/build/es/src/contacts-v4-submit-contact.universal.d.ts +9 -1
- package/build/es/src/contacts-v4-submit-contact.universal.js +8 -0
- package/build/es/src/contacts-v4-submit-contact.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -45,5 +45,5 @@ export declare function getContact(httpClient: HttpClient): (_id: string, option
|
|
|
45
45
|
} | undefined;
|
|
46
46
|
} | undefined;
|
|
47
47
|
}>;
|
|
48
|
-
export { ContactSourceType, ContactActivityType, EmailTag, PhoneTag, AddressTag, SubdivisionType, ImageProvider, SortOrder, ContactFieldSet, ContactsFacetType, Action, UpsertContactResponseAction, GetContactResponseType, SubmitOperation, Mode, } from './contacts-v4-contact.universal';
|
|
49
|
-
export { Contact, ContactSource, ContactActivity, PrimaryContactInfo, ContactInfo, ContactName, ContactEmailsWrapper, ContactEmail, ContactPhonesWrapper, ContactPhone, ContactAddressesWrapper, ContactAddress, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, AssigneesWrapper, LabelsWrapper, ExtendedFieldsWrapper, LocationsWrapper, ContactPicture, SegmentsWrapper, EstimateFilterSizeRequest, EstimateFilterSizeResponse, EstimateAudienceSizeRequest, EstimateAudienceSizeResponse, ContactSubmitted, ContactChanged, CreateContactRequest, CreateContactResponse, DuplicateContactExists, UpdateContactRequest, UpdateContactResponse, MergeContactsRequest, MergeContactsResponse, ContactMerged, PreviewMergeContactsRequest, PreviewMergeContactsResponse, DeleteContactRequest, DeleteContactResponse, LabelContactRequest, LabelContactResponse, UnlabelContactRequest, UnlabelContactResponse, LabelAndUnlabelContactRequest, LabelAndUnlabelContactResponse, ListContactsRequest, Sorting, Paging, ListContactsResponse, PagingMetadata, QueryContactsRequest, Query, QueryContactsResponse, ListFacetsRequest, ListFacetsResponse, ContactsFacet, QueryFacetsRequest, QueryFacetsResponse, BulkDeleteContactsRequest, BulkDeleteContactsResponse, BulkUpdateContactsRequest, BulkUpdateContactsResponse, BulkLabelAndUnlabelContactsRequest, BulkLabelAndUnlabelContactsResponse, BulkUpsertContactsRequest, BulkUpsertContactsResponse, Error, Metadata, Item, BulkUpsertContactsResponseMetadata, UpsertContactRequest, UpsertContactResponse, GeneratePictureUploadUrlRequest, GeneratePictureUploadUrlResponse, GetContactRequest, GetContactResponse, SyncSubmitContactRequest, SyncSubmitContactResponse, CountContactsRequest, CountContactsResponse, SearchContactsRequest, Search, SearchPagingMethodOneOf, SearchDetails, CursorPaging, SearchContactsResponse, PagingMetadataV2, Cursors, BulkAddSegmentToContactsRequest, BulkAddSegmentToContactsResponse, ItemMetadata, ApplicationError, BulkActionMetadata, ContactAddedToSegment, BulkRemoveSegmentFromContactsRequest, BulkRemoveSegmentFromContactsResponse, ContactRemovedFromSegment, CreateContactResponseNonNullableFields, UpdateContactResponseNonNullableFields, MergeContactsResponseNonNullableFields, LabelContactResponseNonNullableFields, UnlabelContactResponseNonNullableFields, GetContactResponseNonNullableFields, CreateContactOptions, UpdateContactOptions, MergeContactsOptions, GetContactOptions, } from './contacts-v4-contact.universal';
|
|
48
|
+
export { ContactSourceType, ContactActivityType, EmailTag, PhoneTag, AddressTag, SubdivisionType, ImageProvider, SubscriptionStatus, EmailDeliverabilityStatus, PhoneDeliverabilityStatus, SortOrder, ContactFieldSet, ContactsFacetType, Action, UpsertContactResponseAction, GetContactResponseType, SubmitOperation, Mode, } from './contacts-v4-contact.universal';
|
|
49
|
+
export { Contact, ContactSource, ContactActivity, PrimaryContactInfo, ContactInfo, ContactName, ContactEmailsWrapper, ContactEmail, ContactPhonesWrapper, ContactPhone, ContactAddressesWrapper, ContactAddress, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, AssigneesWrapper, LabelsWrapper, ExtendedFieldsWrapper, LocationsWrapper, ContactPicture, SegmentsWrapper, PrimaryEmail, PrimaryPhone, EstimateFilterSizeRequest, EstimateFilterSizeResponse, EstimateAudienceSizeRequest, EstimateAudienceSizeResponse, ContactSubmitted, ContactChanged, ContactEmailSubscriptionUpdated, ContactPhoneSubscriptionUpdated, ContactPrimaryInfoUpdated, CreateContactRequest, CreateContactResponse, DuplicateContactExists, UpdateContactRequest, UpdateContactResponse, MergeContactsRequest, MergeContactsResponse, ContactMerged, PreviewMergeContactsRequest, PreviewMergeContactsResponse, DeleteContactRequest, DeleteContactResponse, LabelContactRequest, LabelContactResponse, UnlabelContactRequest, UnlabelContactResponse, LabelAndUnlabelContactRequest, LabelAndUnlabelContactResponse, ListContactsRequest, Sorting, Paging, ListContactsResponse, PagingMetadata, QueryContactsRequest, Query, QueryContactsResponse, ListFacetsRequest, ListFacetsResponse, ContactsFacet, QueryFacetsRequest, QueryFacetsResponse, BulkDeleteContactsRequest, BulkDeleteContactsResponse, BulkUpdateContactsRequest, BulkUpdateContactsResponse, BulkLabelAndUnlabelContactsRequest, BulkLabelAndUnlabelContactsResponse, BulkUpsertContactsRequest, BulkUpsertContactsResponse, Error, Metadata, Item, BulkUpsertContactsResponseMetadata, UpsertContactRequest, UpsertContactResponse, GeneratePictureUploadUrlRequest, GeneratePictureUploadUrlResponse, GetContactRequest, GetContactResponse, SyncSubmitContactRequest, SyncSubmitContactResponse, CountContactsRequest, CountContactsResponse, SearchContactsRequest, Search, SearchPagingMethodOneOf, SearchDetails, CursorPaging, SearchContactsResponse, PagingMetadataV2, Cursors, BulkAddSegmentToContactsRequest, BulkAddSegmentToContactsResponse, ItemMetadata, ApplicationError, BulkActionMetadata, ContactAddedToSegment, BulkRemoveSegmentFromContactsRequest, BulkRemoveSegmentFromContactsResponse, ContactRemovedFromSegment, CreateContactResponseNonNullableFields, UpdateContactResponseNonNullableFields, MergeContactsResponseNonNullableFields, LabelContactResponseNonNullableFields, UnlabelContactResponseNonNullableFields, GetContactResponseNonNullableFields, CreateContactOptions, UpdateContactOptions, MergeContactsOptions, GetContactOptions, } from './contacts-v4-contact.universal';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Mode = exports.SubmitOperation = exports.GetContactResponseType = exports.UpsertContactResponseAction = exports.Action = exports.ContactsFacetType = exports.ContactFieldSet = exports.SortOrder = exports.ImageProvider = exports.SubdivisionType = exports.AddressTag = exports.PhoneTag = exports.EmailTag = exports.ContactActivityType = exports.ContactSourceType = exports.getContact = exports.unlabelContact = exports.labelContact = exports.deleteContact = exports.mergeContacts = exports.updateContact = exports.createContact = exports.__metadata = void 0;
|
|
3
|
+
exports.Mode = exports.SubmitOperation = exports.GetContactResponseType = exports.UpsertContactResponseAction = exports.Action = exports.ContactsFacetType = exports.ContactFieldSet = exports.SortOrder = exports.PhoneDeliverabilityStatus = exports.EmailDeliverabilityStatus = exports.SubscriptionStatus = exports.ImageProvider = exports.SubdivisionType = exports.AddressTag = exports.PhoneTag = exports.EmailTag = exports.ContactActivityType = exports.ContactSourceType = exports.getContact = exports.unlabelContact = exports.labelContact = exports.deleteContact = exports.mergeContacts = exports.updateContact = exports.createContact = exports.__metadata = void 0;
|
|
4
4
|
const contacts_v4_contact_universal_1 = require("./contacts-v4-contact.universal");
|
|
5
5
|
exports.__metadata = { PACKAGE_NAME: '@wix/crm' };
|
|
6
6
|
function createContact(httpClient) {
|
|
@@ -53,6 +53,9 @@ Object.defineProperty(exports, "PhoneTag", { enumerable: true, get: function ()
|
|
|
53
53
|
Object.defineProperty(exports, "AddressTag", { enumerable: true, get: function () { return contacts_v4_contact_universal_2.AddressTag; } });
|
|
54
54
|
Object.defineProperty(exports, "SubdivisionType", { enumerable: true, get: function () { return contacts_v4_contact_universal_2.SubdivisionType; } });
|
|
55
55
|
Object.defineProperty(exports, "ImageProvider", { enumerable: true, get: function () { return contacts_v4_contact_universal_2.ImageProvider; } });
|
|
56
|
+
Object.defineProperty(exports, "SubscriptionStatus", { enumerable: true, get: function () { return contacts_v4_contact_universal_2.SubscriptionStatus; } });
|
|
57
|
+
Object.defineProperty(exports, "EmailDeliverabilityStatus", { enumerable: true, get: function () { return contacts_v4_contact_universal_2.EmailDeliverabilityStatus; } });
|
|
58
|
+
Object.defineProperty(exports, "PhoneDeliverabilityStatus", { enumerable: true, get: function () { return contacts_v4_contact_universal_2.PhoneDeliverabilityStatus; } });
|
|
56
59
|
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return contacts_v4_contact_universal_2.SortOrder; } });
|
|
57
60
|
Object.defineProperty(exports, "ContactFieldSet", { enumerable: true, get: function () { return contacts_v4_contact_universal_2.ContactFieldSet; } });
|
|
58
61
|
Object.defineProperty(exports, "ContactsFacetType", { enumerable: true, get: function () { return contacts_v4_contact_universal_2.ContactsFacetType; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-contact.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-contact.public.ts"],"names":[],"mappings":";;;AACA,mFAayC;AAE5B,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,IAAiB,EAAE,OAA8B,EAAE,EAAE,CAC3D,IAAA,6CAAsB,EACpB,IAAI,EACJ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,sCAQC;AAED,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CACL,SAAiB,EACjB,IAAiB,EACjB,OAA8B,EAC9B,EAAE,CACF,IAAA,6CAAsB,EACpB,SAAS,EACT,IAAI,EACJ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,sCAaC;AAED,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CACL,eAAuB,EACvB,qBAAoC,EACpC,OAA8B,EAC9B,EAAE,CACF,IAAA,6CAAsB,EACpB,eAAe,EACf,qBAAqB,EACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,sCAaC;AAED,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,6CAAsB,EACpB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sCAOC;AAED,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,SAAiB,EAAE,SAAmB,EAAE,EAAE,CAChD,IAAA,4CAAqB,EACnB,SAAS,EACT,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,oCAQC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,SAAiB,EAAE,SAAmB,EAAE,EAAE,CAChD,IAAA,8CAAuB,EACrB,SAAS,EACT,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wCAQC;AAED,SAAgB,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,GAAW,EAAE,OAA2B,EAAE,EAAE,CAClD,IAAA,0CAAmB,EACjB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,gCAQC;AAED,
|
|
1
|
+
{"version":3,"file":"contacts-v4-contact.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-contact.public.ts"],"names":[],"mappings":";;;AACA,mFAayC;AAE5B,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,IAAiB,EAAE,OAA8B,EAAE,EAAE,CAC3D,IAAA,6CAAsB,EACpB,IAAI,EACJ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,sCAQC;AAED,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CACL,SAAiB,EACjB,IAAiB,EACjB,OAA8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ACR,2HAAA,UAAU,OAAA;AACV,gIAAA,eAAe,OAAA;AACf,8HAAA,aAAa,OAAA;AACb,mIAAA,kBAAkB,OAAA;AAClB,0IAAA,yBAAyB,OAAA;AACzB,0IAAA,yBAAyB,OAAA;AACzB,0HAAA,SAAS,OAAA;AACT,gIAAA,eAAe,OAAA;AACf,kIAAA,iBAAiB,OAAA;AACjB,uHAAA,MAAM,OAAA;AACN,4IAAA,2BAA2B,OAAA;AAC3B,uIAAA,sBAAsB,OAAA;AACtB,gIAAA,eAAe,OAAA;AACf,qHAAA,IAAI,OAAA"}
|
|
@@ -179,7 +179,15 @@ export declare enum ContactActivityType {
|
|
|
179
179
|
/** "contact/subscription-pending" */
|
|
180
180
|
NEWSLETTER_SUBSCRIPTION_PENDING = "NEWSLETTER_SUBSCRIPTION_PENDING",
|
|
181
181
|
/** "contact/subscription-not-set" */
|
|
182
|
-
NEWSLETTER_SUBSCRIPTION_NOT_SET = "NEWSLETTER_SUBSCRIPTION_NOT_SET"
|
|
182
|
+
NEWSLETTER_SUBSCRIPTION_NOT_SET = "NEWSLETTER_SUBSCRIPTION_NOT_SET",
|
|
183
|
+
/** "contact/phone-subscription-subscribe" */
|
|
184
|
+
PHONE_SUBSCRIPTION_SUBSCRIBE = "PHONE_SUBSCRIPTION_SUBSCRIBE",
|
|
185
|
+
/** "contact/phone-subscription-pending" */
|
|
186
|
+
PHONE_SUBSCRIPTION_PENDING = "PHONE_SUBSCRIPTION_PENDING",
|
|
187
|
+
/** "contact/phone-subscription-not-set" */
|
|
188
|
+
PHONE_SUBSCRIPTION_NOT_SET = "PHONE_SUBSCRIPTION_NOT_SET",
|
|
189
|
+
/** "contact/phone-subscription-unsubscribe" */
|
|
190
|
+
PHONE_SUBSCRIPTION_UNSUBSCRIBE = "PHONE_SUBSCRIPTION_UNSUBSCRIBE"
|
|
183
191
|
}
|
|
184
192
|
export interface PrimaryContactInfo {
|
|
185
193
|
/**
|
|
@@ -492,6 +500,86 @@ export interface SegmentsWrapper {
|
|
|
492
500
|
/** List of Contact segment IDs */
|
|
493
501
|
items?: string[];
|
|
494
502
|
}
|
|
503
|
+
export interface PrimaryEmail {
|
|
504
|
+
/**
|
|
505
|
+
* Primary email address.
|
|
506
|
+
*
|
|
507
|
+
* This property reflects the email address in `info.emails`
|
|
508
|
+
* where `primary` is `true`.
|
|
509
|
+
* @readonly
|
|
510
|
+
*/
|
|
511
|
+
email?: string | null;
|
|
512
|
+
/**
|
|
513
|
+
* Email subscription status.
|
|
514
|
+
* Holds the consent status of the contact to accept promotional communication by email.
|
|
515
|
+
* @readonly
|
|
516
|
+
*/
|
|
517
|
+
subscriptionStatus?: SubscriptionStatus;
|
|
518
|
+
/**
|
|
519
|
+
* Email deliverability status - the email's reachability by SMS.
|
|
520
|
+
* @readonly
|
|
521
|
+
*/
|
|
522
|
+
deliverabilityStatus?: EmailDeliverabilityStatus;
|
|
523
|
+
}
|
|
524
|
+
export declare enum SubscriptionStatus {
|
|
525
|
+
UNKNOWN_SUBSCRIPTION_STATUS = "UNKNOWN_SUBSCRIPTION_STATUS",
|
|
526
|
+
/** Subscription status is not set. */
|
|
527
|
+
NOT_SET = "NOT_SET",
|
|
528
|
+
/** Pending Subscription. */
|
|
529
|
+
PENDING = "PENDING",
|
|
530
|
+
/** Subscribed. */
|
|
531
|
+
SUBSCRIBED = "SUBSCRIBED",
|
|
532
|
+
/** UnSubscribed. */
|
|
533
|
+
UNSUBSCRIBED = "UNSUBSCRIBED"
|
|
534
|
+
}
|
|
535
|
+
export declare enum EmailDeliverabilityStatus {
|
|
536
|
+
UNKNOWN_EMAIL_DELIVERABILITY_STATUS = "UNKNOWN_EMAIL_DELIVERABILITY_STATUS",
|
|
537
|
+
/** Deliverability status is not set. */
|
|
538
|
+
NOT_SET = "NOT_SET",
|
|
539
|
+
/** Valid/Deferral. */
|
|
540
|
+
VALID = "VALID",
|
|
541
|
+
/** Bounced/Rejected/Invalid. */
|
|
542
|
+
BOUNCED = "BOUNCED",
|
|
543
|
+
/** Spam/Complaint. */
|
|
544
|
+
SPAM_COMPLAINT = "SPAM_COMPLAINT",
|
|
545
|
+
/** Valid, but no activity reported. */
|
|
546
|
+
INACTIVE = "INACTIVE"
|
|
547
|
+
}
|
|
548
|
+
export interface PrimaryPhone {
|
|
549
|
+
/** [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the primary phone. */
|
|
550
|
+
countryCode?: string | null;
|
|
551
|
+
/**
|
|
552
|
+
* [ITU E.164-formatted](https://www.itu.int/rec/T-REC-E.164/)
|
|
553
|
+
* phone number.
|
|
554
|
+
* Automatically generated using `phone` and `countryCode`,
|
|
555
|
+
* as long as both of those values are valid.
|
|
556
|
+
* @readonly
|
|
557
|
+
*/
|
|
558
|
+
e164Phone?: string | null;
|
|
559
|
+
/**
|
|
560
|
+
* Human-readable phone number.
|
|
561
|
+
* Automatically generated using `phone` and `countryCode`,
|
|
562
|
+
* as long as both of those values are valid.
|
|
563
|
+
* @readonly
|
|
564
|
+
*/
|
|
565
|
+
formattedPhone?: string | null;
|
|
566
|
+
/**
|
|
567
|
+
* Phone subscription status.
|
|
568
|
+
* Holds the consent status of the contact to accept promotional communication by SMS.
|
|
569
|
+
* @readonly
|
|
570
|
+
*/
|
|
571
|
+
subscriptionStatus?: SubscriptionStatus;
|
|
572
|
+
/**
|
|
573
|
+
* Phone deliverability status - the phone's reachability by SMS.
|
|
574
|
+
* @readonly
|
|
575
|
+
*/
|
|
576
|
+
deliverabilityStatus?: PhoneDeliverabilityStatus;
|
|
577
|
+
}
|
|
578
|
+
export declare enum PhoneDeliverabilityStatus {
|
|
579
|
+
UNKNOWN_PHONE_DELIVERABILITY_STATUS = "UNKNOWN_PHONE_DELIVERABILITY_STATUS",
|
|
580
|
+
/** Deliverability status is not set. */
|
|
581
|
+
NOT_SET = "NOT_SET"
|
|
582
|
+
}
|
|
495
583
|
export interface EstimateFilterSizeRequest {
|
|
496
584
|
/** Contacts filter expression. */
|
|
497
585
|
filter?: Record<string, any> | null;
|
|
@@ -538,6 +626,39 @@ export interface ContactChanged {
|
|
|
538
626
|
/** The Contact after the changes */
|
|
539
627
|
currentContact?: Contact;
|
|
540
628
|
}
|
|
629
|
+
export interface ContactEmailSubscriptionUpdated {
|
|
630
|
+
/** The updated contact ID. */
|
|
631
|
+
contactId?: string;
|
|
632
|
+
/** The revision of the contact. */
|
|
633
|
+
revision?: number;
|
|
634
|
+
/** The primary email of the contact with the updated subscription and deliverability status. */
|
|
635
|
+
primaryEmail?: PrimaryEmail;
|
|
636
|
+
/** Date and time the contact's email subscription status was updated. */
|
|
637
|
+
updatedDate?: Date;
|
|
638
|
+
}
|
|
639
|
+
export interface ContactPhoneSubscriptionUpdated {
|
|
640
|
+
/** The updated contact ID. */
|
|
641
|
+
contactId?: string;
|
|
642
|
+
/** The revision of the contact. */
|
|
643
|
+
revision?: number;
|
|
644
|
+
/** The primary phone of the contact with the updated subscription status. */
|
|
645
|
+
primaryPhone?: PrimaryPhone;
|
|
646
|
+
/** Date and time the contact's phone subscription status was updated. */
|
|
647
|
+
updatedDate?: Date;
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* This message is an internal message used by this app and it is used to trigger
|
|
651
|
+
* the update of the subscription status of the contact asynchronously.
|
|
652
|
+
* It is published after a contact is created/updated/merged.
|
|
653
|
+
*/
|
|
654
|
+
export interface ContactPrimaryInfoUpdated {
|
|
655
|
+
/** The updated contact ID. */
|
|
656
|
+
contactId?: string;
|
|
657
|
+
/** Indication whether the primary email was updated. */
|
|
658
|
+
primaryEmailUpdated?: boolean;
|
|
659
|
+
/** Indication whether primary phone was updated. */
|
|
660
|
+
primaryPhoneUpdated?: boolean;
|
|
661
|
+
}
|
|
541
662
|
/** Contact creation options. */
|
|
542
663
|
export interface CreateContactRequest {
|
|
543
664
|
/** Contact info. */
|
|
@@ -750,7 +871,7 @@ export interface Paging {
|
|
|
750
871
|
export declare enum ContactFieldSet {
|
|
751
872
|
/** name, primaryEmail, primaryPhone */
|
|
752
873
|
BASIC = "BASIC",
|
|
753
|
-
/** name, phones, emails,
|
|
874
|
+
/** name, phones, emails, addresses */
|
|
754
875
|
COMMUNICATION_DETAILS = "COMMUNICATION_DETAILS",
|
|
755
876
|
/** name, primaryInfo(email, phone), extendedFields */
|
|
756
877
|
EXTENDED = "EXTENDED",
|
|
@@ -891,8 +1012,8 @@ export interface QueryFacetsRequest {
|
|
|
891
1012
|
/**
|
|
892
1013
|
* Only allowed fields:
|
|
893
1014
|
* #info.extendedFields.emailSubscriptions.effectiveEmail ($exists)
|
|
1015
|
+
* #info.extendedFields.emailSubscriptions.subscriptionStatus ($eq, $ne, $in, $nin)
|
|
894
1016
|
* #info.extendedFields.emailSubscriptions.deliverabilityStatus ($eq, $ne, $in, $nin)
|
|
895
|
-
* #info.extendedFields.emailSubscriptions.subscriptionStatus ($eq, $ne, $in)
|
|
896
1017
|
*/
|
|
897
1018
|
filter?: Record<string, any> | null;
|
|
898
1019
|
}
|
|
@@ -1383,6 +1504,14 @@ export interface CreateContactResponseNonNullableFields {
|
|
|
1383
1504
|
segments?: {
|
|
1384
1505
|
items: string[];
|
|
1385
1506
|
};
|
|
1507
|
+
primaryEmail?: {
|
|
1508
|
+
subscriptionStatus: SubscriptionStatus;
|
|
1509
|
+
deliverabilityStatus: EmailDeliverabilityStatus;
|
|
1510
|
+
};
|
|
1511
|
+
primaryPhone?: {
|
|
1512
|
+
subscriptionStatus: SubscriptionStatus;
|
|
1513
|
+
deliverabilityStatus: PhoneDeliverabilityStatus;
|
|
1514
|
+
};
|
|
1386
1515
|
};
|
|
1387
1516
|
}
|
|
1388
1517
|
export interface UpdateContactResponseNonNullableFields {
|
|
@@ -1453,6 +1582,14 @@ export interface UpdateContactResponseNonNullableFields {
|
|
|
1453
1582
|
segments?: {
|
|
1454
1583
|
items: string[];
|
|
1455
1584
|
};
|
|
1585
|
+
primaryEmail?: {
|
|
1586
|
+
subscriptionStatus: SubscriptionStatus;
|
|
1587
|
+
deliverabilityStatus: EmailDeliverabilityStatus;
|
|
1588
|
+
};
|
|
1589
|
+
primaryPhone?: {
|
|
1590
|
+
subscriptionStatus: SubscriptionStatus;
|
|
1591
|
+
deliverabilityStatus: PhoneDeliverabilityStatus;
|
|
1592
|
+
};
|
|
1456
1593
|
};
|
|
1457
1594
|
}
|
|
1458
1595
|
export interface MergeContactsResponseNonNullableFields {
|
|
@@ -1523,6 +1660,14 @@ export interface MergeContactsResponseNonNullableFields {
|
|
|
1523
1660
|
segments?: {
|
|
1524
1661
|
items: string[];
|
|
1525
1662
|
};
|
|
1663
|
+
primaryEmail?: {
|
|
1664
|
+
subscriptionStatus: SubscriptionStatus;
|
|
1665
|
+
deliverabilityStatus: EmailDeliverabilityStatus;
|
|
1666
|
+
};
|
|
1667
|
+
primaryPhone?: {
|
|
1668
|
+
subscriptionStatus: SubscriptionStatus;
|
|
1669
|
+
deliverabilityStatus: PhoneDeliverabilityStatus;
|
|
1670
|
+
};
|
|
1526
1671
|
};
|
|
1527
1672
|
}
|
|
1528
1673
|
export interface LabelContactResponseNonNullableFields {
|
|
@@ -1593,6 +1738,14 @@ export interface LabelContactResponseNonNullableFields {
|
|
|
1593
1738
|
segments?: {
|
|
1594
1739
|
items: string[];
|
|
1595
1740
|
};
|
|
1741
|
+
primaryEmail?: {
|
|
1742
|
+
subscriptionStatus: SubscriptionStatus;
|
|
1743
|
+
deliverabilityStatus: EmailDeliverabilityStatus;
|
|
1744
|
+
};
|
|
1745
|
+
primaryPhone?: {
|
|
1746
|
+
subscriptionStatus: SubscriptionStatus;
|
|
1747
|
+
deliverabilityStatus: PhoneDeliverabilityStatus;
|
|
1748
|
+
};
|
|
1596
1749
|
};
|
|
1597
1750
|
}
|
|
1598
1751
|
export interface UnlabelContactResponseNonNullableFields {
|
|
@@ -1663,6 +1816,14 @@ export interface UnlabelContactResponseNonNullableFields {
|
|
|
1663
1816
|
segments?: {
|
|
1664
1817
|
items: string[];
|
|
1665
1818
|
};
|
|
1819
|
+
primaryEmail?: {
|
|
1820
|
+
subscriptionStatus: SubscriptionStatus;
|
|
1821
|
+
deliverabilityStatus: EmailDeliverabilityStatus;
|
|
1822
|
+
};
|
|
1823
|
+
primaryPhone?: {
|
|
1824
|
+
subscriptionStatus: SubscriptionStatus;
|
|
1825
|
+
deliverabilityStatus: PhoneDeliverabilityStatus;
|
|
1826
|
+
};
|
|
1666
1827
|
};
|
|
1667
1828
|
}
|
|
1668
1829
|
export interface GetContactResponseNonNullableFields {
|
|
@@ -1733,6 +1894,14 @@ export interface GetContactResponseNonNullableFields {
|
|
|
1733
1894
|
segments?: {
|
|
1734
1895
|
items: string[];
|
|
1735
1896
|
};
|
|
1897
|
+
primaryEmail?: {
|
|
1898
|
+
subscriptionStatus: SubscriptionStatus;
|
|
1899
|
+
deliverabilityStatus: EmailDeliverabilityStatus;
|
|
1900
|
+
};
|
|
1901
|
+
primaryPhone?: {
|
|
1902
|
+
subscriptionStatus: SubscriptionStatus;
|
|
1903
|
+
deliverabilityStatus: PhoneDeliverabilityStatus;
|
|
1904
|
+
};
|
|
1736
1905
|
};
|
|
1737
1906
|
responseType: GetContactResponseType;
|
|
1738
1907
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Mode = exports.SubmitOperation = exports.GetContactResponseType = exports.UpsertContactResponseAction = exports.Action = exports.ContactsFacetType = exports.ContactFieldSet = exports.SortOrder = exports.ImageProvider = exports.SubdivisionType = exports.AddressTag = exports.PhoneTag = exports.EmailTag = exports.ContactActivityType = exports.ContactSourceType = void 0;
|
|
3
|
+
exports.Mode = exports.SubmitOperation = exports.GetContactResponseType = exports.UpsertContactResponseAction = exports.Action = exports.ContactsFacetType = exports.ContactFieldSet = exports.SortOrder = exports.PhoneDeliverabilityStatus = exports.EmailDeliverabilityStatus = exports.SubscriptionStatus = exports.ImageProvider = exports.SubdivisionType = exports.AddressTag = exports.PhoneTag = exports.EmailTag = exports.ContactActivityType = exports.ContactSourceType = void 0;
|
|
4
4
|
var ContactSourceType;
|
|
5
5
|
(function (ContactSourceType) {
|
|
6
6
|
ContactSourceType["OTHER"] = "OTHER";
|
|
@@ -98,6 +98,14 @@ var ContactActivityType;
|
|
|
98
98
|
ContactActivityType["NEWSLETTER_SUBSCRIPTION_PENDING"] = "NEWSLETTER_SUBSCRIPTION_PENDING";
|
|
99
99
|
/** "contact/subscription-not-set" */
|
|
100
100
|
ContactActivityType["NEWSLETTER_SUBSCRIPTION_NOT_SET"] = "NEWSLETTER_SUBSCRIPTION_NOT_SET";
|
|
101
|
+
/** "contact/phone-subscription-subscribe" */
|
|
102
|
+
ContactActivityType["PHONE_SUBSCRIPTION_SUBSCRIBE"] = "PHONE_SUBSCRIPTION_SUBSCRIBE";
|
|
103
|
+
/** "contact/phone-subscription-pending" */
|
|
104
|
+
ContactActivityType["PHONE_SUBSCRIPTION_PENDING"] = "PHONE_SUBSCRIPTION_PENDING";
|
|
105
|
+
/** "contact/phone-subscription-not-set" */
|
|
106
|
+
ContactActivityType["PHONE_SUBSCRIPTION_NOT_SET"] = "PHONE_SUBSCRIPTION_NOT_SET";
|
|
107
|
+
/** "contact/phone-subscription-unsubscribe" */
|
|
108
|
+
ContactActivityType["PHONE_SUBSCRIPTION_UNSUBSCRIBE"] = "PHONE_SUBSCRIPTION_UNSUBSCRIBE";
|
|
101
109
|
})(ContactActivityType = exports.ContactActivityType || (exports.ContactActivityType = {}));
|
|
102
110
|
var EmailTag;
|
|
103
111
|
(function (EmailTag) {
|
|
@@ -147,6 +155,38 @@ var ImageProvider;
|
|
|
147
155
|
/** Stored in wix media platform, Must be uploaded by using `GeneratePictureUploadUrl` */
|
|
148
156
|
ImageProvider["WIX_MEDIA"] = "WIX_MEDIA";
|
|
149
157
|
})(ImageProvider = exports.ImageProvider || (exports.ImageProvider = {}));
|
|
158
|
+
var SubscriptionStatus;
|
|
159
|
+
(function (SubscriptionStatus) {
|
|
160
|
+
SubscriptionStatus["UNKNOWN_SUBSCRIPTION_STATUS"] = "UNKNOWN_SUBSCRIPTION_STATUS";
|
|
161
|
+
/** Subscription status is not set. */
|
|
162
|
+
SubscriptionStatus["NOT_SET"] = "NOT_SET";
|
|
163
|
+
/** Pending Subscription. */
|
|
164
|
+
SubscriptionStatus["PENDING"] = "PENDING";
|
|
165
|
+
/** Subscribed. */
|
|
166
|
+
SubscriptionStatus["SUBSCRIBED"] = "SUBSCRIBED";
|
|
167
|
+
/** UnSubscribed. */
|
|
168
|
+
SubscriptionStatus["UNSUBSCRIBED"] = "UNSUBSCRIBED";
|
|
169
|
+
})(SubscriptionStatus = exports.SubscriptionStatus || (exports.SubscriptionStatus = {}));
|
|
170
|
+
var EmailDeliverabilityStatus;
|
|
171
|
+
(function (EmailDeliverabilityStatus) {
|
|
172
|
+
EmailDeliverabilityStatus["UNKNOWN_EMAIL_DELIVERABILITY_STATUS"] = "UNKNOWN_EMAIL_DELIVERABILITY_STATUS";
|
|
173
|
+
/** Deliverability status is not set. */
|
|
174
|
+
EmailDeliverabilityStatus["NOT_SET"] = "NOT_SET";
|
|
175
|
+
/** Valid/Deferral. */
|
|
176
|
+
EmailDeliverabilityStatus["VALID"] = "VALID";
|
|
177
|
+
/** Bounced/Rejected/Invalid. */
|
|
178
|
+
EmailDeliverabilityStatus["BOUNCED"] = "BOUNCED";
|
|
179
|
+
/** Spam/Complaint. */
|
|
180
|
+
EmailDeliverabilityStatus["SPAM_COMPLAINT"] = "SPAM_COMPLAINT";
|
|
181
|
+
/** Valid, but no activity reported. */
|
|
182
|
+
EmailDeliverabilityStatus["INACTIVE"] = "INACTIVE";
|
|
183
|
+
})(EmailDeliverabilityStatus = exports.EmailDeliverabilityStatus || (exports.EmailDeliverabilityStatus = {}));
|
|
184
|
+
var PhoneDeliverabilityStatus;
|
|
185
|
+
(function (PhoneDeliverabilityStatus) {
|
|
186
|
+
PhoneDeliverabilityStatus["UNKNOWN_PHONE_DELIVERABILITY_STATUS"] = "UNKNOWN_PHONE_DELIVERABILITY_STATUS";
|
|
187
|
+
/** Deliverability status is not set. */
|
|
188
|
+
PhoneDeliverabilityStatus["NOT_SET"] = "NOT_SET";
|
|
189
|
+
})(PhoneDeliverabilityStatus = exports.PhoneDeliverabilityStatus || (exports.PhoneDeliverabilityStatus = {}));
|
|
150
190
|
var SortOrder;
|
|
151
191
|
(function (SortOrder) {
|
|
152
192
|
SortOrder["ASC"] = "ASC";
|
|
@@ -156,7 +196,7 @@ var ContactFieldSet;
|
|
|
156
196
|
(function (ContactFieldSet) {
|
|
157
197
|
/** name, primaryEmail, primaryPhone */
|
|
158
198
|
ContactFieldSet["BASIC"] = "BASIC";
|
|
159
|
-
/** name, phones, emails,
|
|
199
|
+
/** name, phones, emails, addresses */
|
|
160
200
|
ContactFieldSet["COMMUNICATION_DETAILS"] = "COMMUNICATION_DETAILS";
|
|
161
201
|
/** name, primaryInfo(email, phone), extendedFields */
|
|
162
202
|
ContactFieldSet["EXTENDED"] = "EXTENDED";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-contact.types.js","sourceRoot":"","sources":["../../../src/contacts-v4-contact.types.ts"],"names":[],"mappings":";;;AA8EA,IAAY,iBAoBX;AApBD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,oCAAe,CAAA;IACf,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,gDAA2B,CAAA;IAC3B,kDAA6B,CAAA;IAC7B,0CAAqB,CAAA;IACrB,gEAA2C,CAAA;IAC3C,8CAAyB,CAAA;IACzB,4CAAuB,CAAA;IACvB,8CAAyB,CAAA;IACzB,8CAAyB,CAAA;IACzB,0DAAqC,CAAA;IACrC,4CAAuB,CAAA;IACvB,wDAAmC,CAAA;IACnC,0DAAqC,CAAA;IACrC,8CAAyB,CAAA;IACzB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;AACf,CAAC,EApBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAoB5B;AAcD,IAAY,
|
|
1
|
+
{"version":3,"file":"contacts-v4-contact.types.js","sourceRoot":"","sources":["../../../src/contacts-v4-contact.types.ts"],"names":[],"mappings":";;;AA8EA,IAAY,iBAoBX;AApBD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,oCAAe,CAAA;IACf,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,gDAA2B,CAAA;IAC3B,kDAA6B,CAAA;IAC7B,0CAAqB,CAAA;IACrB,gEAA2C,CAAA;IAC3C,8CAAyB,CAAA;IACzB,4CAAuB,CAAA;IACvB,8CAAyB,CAAA;IACzB,8CAAyB,CAAA;IACzB,0DAAqC,CAAA;IACrC,4CAAuB,CAAA;IACvB,wDAAmC,CAAA;IACnC,0DAAqC,CAAA;IACrC,8CAAyB,CAAA;IACzB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;AACf,CAAC,EApBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAoB5B;AAcD,IAAY,mBAkFX;AAlFD,WAAY,mBAAmB;IAC7B,qDAAqD;IACrD,0CAAmB,CAAA;IACnB,+EAA+E;IAC/E,0DAAmC,CAAA;IACnC,mBAAmB;IACnB,oDAA6B,CAAA;IAC7B,sBAAsB;IACtB,0DAAmC,CAAA;IACnC,2BAA2B;IAC3B,sEAA+C,CAAA;IAC/C,0EAA0E;IAC1E,wDAAiC,CAAA;IACjC,+BAA+B;IAC/B,oEAA6C,CAAA;IAC7C,kCAAkC;IAClC,gFAAyD,CAAA;IACzD,yDAAyD;IACzD,8EAAuD,CAAA;IACvD,yDAAyD;IACzD,kFAA2D,CAAA;IAC3D,sEAAsE;IACtE,wGAAiF,CAAA;IACjF,4BAA4B;IAC5B,kGAA2E,CAAA;IAC3E,4BAA4B;IAC5B,sDAA+B,CAAA;IAC/B,gCAAgC;IAChC,8DAAuC,CAAA;IACvC,kCAAkC;IAClC,kEAA2C,CAAA;IAC3C,8BAA8B;IAC9B,oEAA6C,CAAA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D,WAAY,sBAAsB;IAChC,qBAAqB;IACrB,6CAAmB,CAAA;IACnB,qFAAqF;IACrF,+CAAqB,CAAA;IACrB,8CAA8C;IAC9C,2CAAiB,CAAA;AACnB,CAAC,EAPW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAOjC;AAcD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;AACnB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAuED,IAAY,IAKX;AALD,WAAY,IAAI;IACd,UAAU;IACV,iBAAS,CAAA;IACT,UAAU;IACV,mBAAW,CAAA;AACb,CAAC,EALW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAKf"}
|
|
@@ -203,7 +203,15 @@ export declare enum ContactActivityType {
|
|
|
203
203
|
/** "contact/subscription-pending" */
|
|
204
204
|
NEWSLETTER_SUBSCRIPTION_PENDING = "NEWSLETTER_SUBSCRIPTION_PENDING",
|
|
205
205
|
/** "contact/subscription-not-set" */
|
|
206
|
-
NEWSLETTER_SUBSCRIPTION_NOT_SET = "NEWSLETTER_SUBSCRIPTION_NOT_SET"
|
|
206
|
+
NEWSLETTER_SUBSCRIPTION_NOT_SET = "NEWSLETTER_SUBSCRIPTION_NOT_SET",
|
|
207
|
+
/** "contact/phone-subscription-subscribe" */
|
|
208
|
+
PHONE_SUBSCRIPTION_SUBSCRIBE = "PHONE_SUBSCRIPTION_SUBSCRIBE",
|
|
209
|
+
/** "contact/phone-subscription-pending" */
|
|
210
|
+
PHONE_SUBSCRIPTION_PENDING = "PHONE_SUBSCRIPTION_PENDING",
|
|
211
|
+
/** "contact/phone-subscription-not-set" */
|
|
212
|
+
PHONE_SUBSCRIPTION_NOT_SET = "PHONE_SUBSCRIPTION_NOT_SET",
|
|
213
|
+
/** "contact/phone-subscription-unsubscribe" */
|
|
214
|
+
PHONE_SUBSCRIPTION_UNSUBSCRIBE = "PHONE_SUBSCRIPTION_UNSUBSCRIBE"
|
|
207
215
|
}
|
|
208
216
|
export interface PrimaryContactInfo {
|
|
209
217
|
/**
|
|
@@ -522,6 +530,86 @@ export interface SegmentsWrapper {
|
|
|
522
530
|
/** List of Contact segment IDs */
|
|
523
531
|
items?: string[];
|
|
524
532
|
}
|
|
533
|
+
export interface PrimaryEmail {
|
|
534
|
+
/**
|
|
535
|
+
* Primary email address.
|
|
536
|
+
*
|
|
537
|
+
* This property reflects the email address in `info.emails`
|
|
538
|
+
* where `primary` is `true`.
|
|
539
|
+
* @readonly
|
|
540
|
+
*/
|
|
541
|
+
email?: string | null;
|
|
542
|
+
/**
|
|
543
|
+
* Email subscription status.
|
|
544
|
+
* Holds the consent status of the contact to accept promotional communication by email.
|
|
545
|
+
* @readonly
|
|
546
|
+
*/
|
|
547
|
+
subscriptionStatus?: SubscriptionStatus;
|
|
548
|
+
/**
|
|
549
|
+
* Email deliverability status - the email's reachability by SMS.
|
|
550
|
+
* @readonly
|
|
551
|
+
*/
|
|
552
|
+
deliverabilityStatus?: EmailDeliverabilityStatus;
|
|
553
|
+
}
|
|
554
|
+
export declare enum SubscriptionStatus {
|
|
555
|
+
UNKNOWN_SUBSCRIPTION_STATUS = "UNKNOWN_SUBSCRIPTION_STATUS",
|
|
556
|
+
/** Subscription status is not set. */
|
|
557
|
+
NOT_SET = "NOT_SET",
|
|
558
|
+
/** Pending Subscription. */
|
|
559
|
+
PENDING = "PENDING",
|
|
560
|
+
/** Subscribed. */
|
|
561
|
+
SUBSCRIBED = "SUBSCRIBED",
|
|
562
|
+
/** UnSubscribed. */
|
|
563
|
+
UNSUBSCRIBED = "UNSUBSCRIBED"
|
|
564
|
+
}
|
|
565
|
+
export declare enum EmailDeliverabilityStatus {
|
|
566
|
+
UNKNOWN_EMAIL_DELIVERABILITY_STATUS = "UNKNOWN_EMAIL_DELIVERABILITY_STATUS",
|
|
567
|
+
/** Deliverability status is not set. */
|
|
568
|
+
NOT_SET = "NOT_SET",
|
|
569
|
+
/** Valid/Deferral. */
|
|
570
|
+
VALID = "VALID",
|
|
571
|
+
/** Bounced/Rejected/Invalid. */
|
|
572
|
+
BOUNCED = "BOUNCED",
|
|
573
|
+
/** Spam/Complaint. */
|
|
574
|
+
SPAM_COMPLAINT = "SPAM_COMPLAINT",
|
|
575
|
+
/** Valid, but no activity reported. */
|
|
576
|
+
INACTIVE = "INACTIVE"
|
|
577
|
+
}
|
|
578
|
+
export interface PrimaryPhone {
|
|
579
|
+
/** [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the primary phone. */
|
|
580
|
+
countryCode?: string | null;
|
|
581
|
+
/**
|
|
582
|
+
* [ITU E.164-formatted](https://www.itu.int/rec/T-REC-E.164/)
|
|
583
|
+
* phone number.
|
|
584
|
+
* Automatically generated using `phone` and `countryCode`,
|
|
585
|
+
* as long as both of those values are valid.
|
|
586
|
+
* @readonly
|
|
587
|
+
*/
|
|
588
|
+
e164Phone?: string | null;
|
|
589
|
+
/**
|
|
590
|
+
* Human-readable phone number.
|
|
591
|
+
* Automatically generated using `phone` and `countryCode`,
|
|
592
|
+
* as long as both of those values are valid.
|
|
593
|
+
* @readonly
|
|
594
|
+
*/
|
|
595
|
+
formattedPhone?: string | null;
|
|
596
|
+
/**
|
|
597
|
+
* Phone subscription status.
|
|
598
|
+
* Holds the consent status of the contact to accept promotional communication by SMS.
|
|
599
|
+
* @readonly
|
|
600
|
+
*/
|
|
601
|
+
subscriptionStatus?: SubscriptionStatus;
|
|
602
|
+
/**
|
|
603
|
+
* Phone deliverability status - the phone's reachability by SMS.
|
|
604
|
+
* @readonly
|
|
605
|
+
*/
|
|
606
|
+
deliverabilityStatus?: PhoneDeliverabilityStatus;
|
|
607
|
+
}
|
|
608
|
+
export declare enum PhoneDeliverabilityStatus {
|
|
609
|
+
UNKNOWN_PHONE_DELIVERABILITY_STATUS = "UNKNOWN_PHONE_DELIVERABILITY_STATUS",
|
|
610
|
+
/** Deliverability status is not set. */
|
|
611
|
+
NOT_SET = "NOT_SET"
|
|
612
|
+
}
|
|
525
613
|
export interface EstimateFilterSizeRequest {
|
|
526
614
|
/** Contacts filter expression. */
|
|
527
615
|
filter?: Record<string, any> | null;
|
|
@@ -568,6 +656,39 @@ export interface ContactChanged {
|
|
|
568
656
|
/** The Contact after the changes */
|
|
569
657
|
currentContact?: Contact;
|
|
570
658
|
}
|
|
659
|
+
export interface ContactEmailSubscriptionUpdated {
|
|
660
|
+
/** The updated contact ID. */
|
|
661
|
+
contactId?: string;
|
|
662
|
+
/** The revision of the contact. */
|
|
663
|
+
revision?: number;
|
|
664
|
+
/** The primary email of the contact with the updated subscription and deliverability status. */
|
|
665
|
+
primaryEmail?: PrimaryEmail;
|
|
666
|
+
/** Date and time the contact's email subscription status was updated. */
|
|
667
|
+
_updatedDate?: Date;
|
|
668
|
+
}
|
|
669
|
+
export interface ContactPhoneSubscriptionUpdated {
|
|
670
|
+
/** The updated contact ID. */
|
|
671
|
+
contactId?: string;
|
|
672
|
+
/** The revision of the contact. */
|
|
673
|
+
revision?: number;
|
|
674
|
+
/** The primary phone of the contact with the updated subscription status. */
|
|
675
|
+
primaryPhone?: PrimaryPhone;
|
|
676
|
+
/** Date and time the contact's phone subscription status was updated. */
|
|
677
|
+
_updatedDate?: Date;
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* This message is an internal message used by this app and it is used to trigger
|
|
681
|
+
* the update of the subscription status of the contact asynchronously.
|
|
682
|
+
* It is published after a contact is created/updated/merged.
|
|
683
|
+
*/
|
|
684
|
+
export interface ContactPrimaryInfoUpdated {
|
|
685
|
+
/** The updated contact ID. */
|
|
686
|
+
contactId?: string;
|
|
687
|
+
/** Indication whether the primary email was updated. */
|
|
688
|
+
primaryEmailUpdated?: boolean;
|
|
689
|
+
/** Indication whether primary phone was updated. */
|
|
690
|
+
primaryPhoneUpdated?: boolean;
|
|
691
|
+
}
|
|
571
692
|
/** Contact creation options. */
|
|
572
693
|
export interface CreateContactRequest {
|
|
573
694
|
/** Contact info. */
|
|
@@ -775,7 +896,7 @@ export interface Paging {
|
|
|
775
896
|
export declare enum ContactFieldSet {
|
|
776
897
|
/** name, primaryEmail, primaryPhone */
|
|
777
898
|
BASIC = "BASIC",
|
|
778
|
-
/** name, phones, emails,
|
|
899
|
+
/** name, phones, emails, addresses */
|
|
779
900
|
COMMUNICATION_DETAILS = "COMMUNICATION_DETAILS",
|
|
780
901
|
/** name, primaryInfo(email, phone), extendedFields */
|
|
781
902
|
EXTENDED = "EXTENDED",
|
|
@@ -916,8 +1037,8 @@ export interface QueryFacetsRequest {
|
|
|
916
1037
|
/**
|
|
917
1038
|
* Only allowed fields:
|
|
918
1039
|
* #info.extendedFields.emailSubscriptions.effectiveEmail ($exists)
|
|
1040
|
+
* #info.extendedFields.emailSubscriptions.subscriptionStatus ($eq, $ne, $in, $nin)
|
|
919
1041
|
* #info.extendedFields.emailSubscriptions.deliverabilityStatus ($eq, $ne, $in, $nin)
|
|
920
|
-
* #info.extendedFields.emailSubscriptions.subscriptionStatus ($eq, $ne, $in)
|
|
921
1042
|
*/
|
|
922
1043
|
filter?: Record<string, any> | null;
|
|
923
1044
|
}
|
|
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.getContact = exports.unlabelContact = exports.labelContact = exports.deleteContact = exports.mergeContacts = exports.updateContact = exports.createContact = exports.Mode = exports.SubmitOperation = exports.GetContactResponseType = exports.UpsertContactResponseAction = exports.Action = exports.ContactsFacetType = exports.ContactFieldSet = exports.SortOrder = exports.ImageProvider = exports.SubdivisionType = exports.AddressTag = exports.PhoneTag = exports.EmailTag = exports.ContactActivityType = exports.ContactSourceType = exports.__debug = void 0;
|
|
31
|
+
exports.getContact = exports.unlabelContact = exports.labelContact = exports.deleteContact = exports.mergeContacts = exports.updateContact = exports.createContact = exports.Mode = exports.SubmitOperation = exports.GetContactResponseType = exports.UpsertContactResponseAction = exports.Action = exports.ContactsFacetType = exports.ContactFieldSet = exports.SortOrder = exports.PhoneDeliverabilityStatus = exports.EmailDeliverabilityStatus = exports.SubscriptionStatus = exports.ImageProvider = exports.SubdivisionType = exports.AddressTag = exports.PhoneTag = exports.EmailTag = exports.ContactActivityType = exports.ContactSourceType = exports.__debug = void 0;
|
|
32
32
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
33
33
|
const ambassadorWixContactsV4Contact = __importStar(require("./contacts-v4-contact.http"));
|
|
34
34
|
let __verbose = false;
|
|
@@ -143,6 +143,14 @@ var ContactActivityType;
|
|
|
143
143
|
ContactActivityType["NEWSLETTER_SUBSCRIPTION_PENDING"] = "NEWSLETTER_SUBSCRIPTION_PENDING";
|
|
144
144
|
/** "contact/subscription-not-set" */
|
|
145
145
|
ContactActivityType["NEWSLETTER_SUBSCRIPTION_NOT_SET"] = "NEWSLETTER_SUBSCRIPTION_NOT_SET";
|
|
146
|
+
/** "contact/phone-subscription-subscribe" */
|
|
147
|
+
ContactActivityType["PHONE_SUBSCRIPTION_SUBSCRIBE"] = "PHONE_SUBSCRIPTION_SUBSCRIBE";
|
|
148
|
+
/** "contact/phone-subscription-pending" */
|
|
149
|
+
ContactActivityType["PHONE_SUBSCRIPTION_PENDING"] = "PHONE_SUBSCRIPTION_PENDING";
|
|
150
|
+
/** "contact/phone-subscription-not-set" */
|
|
151
|
+
ContactActivityType["PHONE_SUBSCRIPTION_NOT_SET"] = "PHONE_SUBSCRIPTION_NOT_SET";
|
|
152
|
+
/** "contact/phone-subscription-unsubscribe" */
|
|
153
|
+
ContactActivityType["PHONE_SUBSCRIPTION_UNSUBSCRIBE"] = "PHONE_SUBSCRIPTION_UNSUBSCRIBE";
|
|
146
154
|
})(ContactActivityType = exports.ContactActivityType || (exports.ContactActivityType = {}));
|
|
147
155
|
var EmailTag;
|
|
148
156
|
(function (EmailTag) {
|
|
@@ -192,6 +200,38 @@ var ImageProvider;
|
|
|
192
200
|
/** Stored in wix media platform, Must be uploaded by using `GeneratePictureUploadUrl` */
|
|
193
201
|
ImageProvider["WIX_MEDIA"] = "WIX_MEDIA";
|
|
194
202
|
})(ImageProvider = exports.ImageProvider || (exports.ImageProvider = {}));
|
|
203
|
+
var SubscriptionStatus;
|
|
204
|
+
(function (SubscriptionStatus) {
|
|
205
|
+
SubscriptionStatus["UNKNOWN_SUBSCRIPTION_STATUS"] = "UNKNOWN_SUBSCRIPTION_STATUS";
|
|
206
|
+
/** Subscription status is not set. */
|
|
207
|
+
SubscriptionStatus["NOT_SET"] = "NOT_SET";
|
|
208
|
+
/** Pending Subscription. */
|
|
209
|
+
SubscriptionStatus["PENDING"] = "PENDING";
|
|
210
|
+
/** Subscribed. */
|
|
211
|
+
SubscriptionStatus["SUBSCRIBED"] = "SUBSCRIBED";
|
|
212
|
+
/** UnSubscribed. */
|
|
213
|
+
SubscriptionStatus["UNSUBSCRIBED"] = "UNSUBSCRIBED";
|
|
214
|
+
})(SubscriptionStatus = exports.SubscriptionStatus || (exports.SubscriptionStatus = {}));
|
|
215
|
+
var EmailDeliverabilityStatus;
|
|
216
|
+
(function (EmailDeliverabilityStatus) {
|
|
217
|
+
EmailDeliverabilityStatus["UNKNOWN_EMAIL_DELIVERABILITY_STATUS"] = "UNKNOWN_EMAIL_DELIVERABILITY_STATUS";
|
|
218
|
+
/** Deliverability status is not set. */
|
|
219
|
+
EmailDeliverabilityStatus["NOT_SET"] = "NOT_SET";
|
|
220
|
+
/** Valid/Deferral. */
|
|
221
|
+
EmailDeliverabilityStatus["VALID"] = "VALID";
|
|
222
|
+
/** Bounced/Rejected/Invalid. */
|
|
223
|
+
EmailDeliverabilityStatus["BOUNCED"] = "BOUNCED";
|
|
224
|
+
/** Spam/Complaint. */
|
|
225
|
+
EmailDeliverabilityStatus["SPAM_COMPLAINT"] = "SPAM_COMPLAINT";
|
|
226
|
+
/** Valid, but no activity reported. */
|
|
227
|
+
EmailDeliverabilityStatus["INACTIVE"] = "INACTIVE";
|
|
228
|
+
})(EmailDeliverabilityStatus = exports.EmailDeliverabilityStatus || (exports.EmailDeliverabilityStatus = {}));
|
|
229
|
+
var PhoneDeliverabilityStatus;
|
|
230
|
+
(function (PhoneDeliverabilityStatus) {
|
|
231
|
+
PhoneDeliverabilityStatus["UNKNOWN_PHONE_DELIVERABILITY_STATUS"] = "UNKNOWN_PHONE_DELIVERABILITY_STATUS";
|
|
232
|
+
/** Deliverability status is not set. */
|
|
233
|
+
PhoneDeliverabilityStatus["NOT_SET"] = "NOT_SET";
|
|
234
|
+
})(PhoneDeliverabilityStatus = exports.PhoneDeliverabilityStatus || (exports.PhoneDeliverabilityStatus = {}));
|
|
195
235
|
var SortOrder;
|
|
196
236
|
(function (SortOrder) {
|
|
197
237
|
SortOrder["ASC"] = "ASC";
|
|
@@ -201,7 +241,7 @@ var ContactFieldSet;
|
|
|
201
241
|
(function (ContactFieldSet) {
|
|
202
242
|
/** name, primaryEmail, primaryPhone */
|
|
203
243
|
ContactFieldSet["BASIC"] = "BASIC";
|
|
204
|
-
/** name, phones, emails,
|
|
244
|
+
/** name, phones, emails, addresses */
|
|
205
245
|
ContactFieldSet["COMMUNICATION_DETAILS"] = "COMMUNICATION_DETAILS";
|
|
206
246
|
/** name, primaryInfo(email, phone), extendedFields */
|
|
207
247
|
ContactFieldSet["EXTENDED"] = "EXTENDED";
|