@wix/auto_sdk_crm_contacts 1.0.559 → 1.0.560
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 +6 -17
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +6 -25
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +6 -17
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +6 -25
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +6 -17
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +6 -25
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +6 -17
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +6 -25
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTF
|
|
|
2
2
|
import { ContactInfo, CreateContactOptions, CreateContactResponse, CreateContactApplicationErrors, UpdateContactOptions, UpdateContactResponse, UpdateContactApplicationErrors, MergeContactsOptions, MergeContactsResponse, MergeContactsApplicationErrors, DeleteContactApplicationErrors, LabelContactResponse, LabelContactApplicationErrors, UnlabelContactResponse, UnlabelContactApplicationErrors, QueryContactsOptions, ContactsQueryBuilder, GetContactOptions, Contact, GetContactApplicationErrors, ContactCreatedEnvelope, ContactDeletedEnvelope, ContactMergedEnvelope, ContactUpdatedEnvelope } from './index.typings.js';
|
|
3
3
|
export { Action, ActionEvent, ActivityIcon, Address, AddressLocation, AddressStreetOneOf, AddressTag, ApplicationError, AssigneesWrapper, BaseEventMetadata, BulkActionMetadata, BulkAddSegmentToContactsRequest, BulkAddSegmentToContactsResponse, BulkDeleteContactsRequest, BulkDeleteContactsResponse, BulkLabelAndUnlabelContactsRequest, BulkLabelAndUnlabelContactsResponse, BulkRemoveSegmentFromContactsRequest, BulkRemoveSegmentFromContactsResponse, BulkUpdateContactsRequest, BulkUpdateContactsResponse, BulkUpsertContactsRequest, BulkUpsertContactsResponse, BulkUpsertContactsResponseMetadata, ContactActivity, ContactActivityType, ContactAddedToSegment, ContactAddress, ContactAddressesWrapper, ContactChanged, ContactEmail, ContactEmailSubscriptionUpdated, ContactEmailsWrapper, ContactFieldSet, ContactMerged, ContactName, ContactPhone, ContactPhoneSubscriptionUpdated, ContactPhonesWrapper, ContactPicture, ContactPrimaryInfoUpdated, ContactRemovedFromSegment, ContactSource, ContactSourceType, ContactSubmitted, ContactsFacet, ContactsFacetType, ContactsQueryResult, CountContactsRequest, CountContactsResponse, CreateContactRequest, CursorPaging, CursorPagingMetadata, Cursors, DeleteContactRequest, DeleteContactResponse, DomainEvent, DomainEventBodyOneOf, DuplicateContactExists, EmailDeliverabilityStatus, EmailTag, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Error, EventMetadata, ExtendedFieldsWrapper, GeneratePictureUploadUrlRequest, GeneratePictureUploadUrlResponse, GetContactRequest, GetContactResponse, GetContactResponseType, GroupInfo, IdentificationData, IdentificationDataIdOneOf, ImageProvider, Item, ItemMetadata, LabelAndUnlabelContactRequest, LabelAndUnlabelContactResponse, LabelContactRequest, LabelsWrapper, LastActivityUpdate, ListContactIdsBySegmentRequest, ListContactIdsBySegmentResponse, ListContactsRequest, ListContactsResponse, ListFacetsRequest, ListFacetsResponse, LocationsWrapper, MemberInfo, MemberStatus, MergeContactsRequest, MessageEnvelope, Metadata, Mode, Paging, PagingMetadata, PhoneDeliverabilityStatus, PhoneTag, PreviewMergeContactsRequest, PreviewMergeContactsResponse, PrimaryContactInfo, PrimaryEmail, PrimaryPhone, PrimarySubscriptionStatus, PrivacyStatus, ProfileInfo, Query, QueryContactsRequest, QueryContactsResponse, QueryFacetsRequest, QueryFacetsResponse, RestoreInfo, Role, Search, SearchContactsRequest, SearchContactsResponse, SearchDetails, SearchPagingMethodOneOf, SegmentsWrapper, SessionInfo, SortOrder, Sorting, StreetAddress, Subdivision, SubdivisionType, SubmitOperation, SubscriptionStatus, SyncSubmitContactRequest, SyncSubmitContactResponse, UnlabelContactRequest, UpdateContactRequest, UpsertContactRequest, UpsertContactResponse, UpsertContactResponseAction, UserInfo, WebhookIdentityType } from './index.typings.js';
|
|
4
4
|
|
|
5
|
-
type ContactNonNullablePaths = `_id` | `revision` | `source.sourceType` | `lastActivity.activityType` | `info.emails.items` | `info.emails.items.${number}.tag` | `info.emails.items.${number}.email` | `info.phones.items` | `info.phones.items.${number}.tag` | `info.phones.items.${number}.phone` | `info.addresses.items` | `info.addresses.items.${number}.tag` | `info.addresses.items.${number}.address.streetAddress.number` | `info.addresses.items.${number}.address.streetAddress.name` | `info.labelKeys.items` | `primaryEmail.subscriptionStatus` | `primaryEmail.deliverabilityStatus` | `primaryPhone.subscriptionStatus`;
|
|
6
5
|
declare function createContact$1(httpClient: HttpClient): CreateContactSignature;
|
|
7
6
|
interface CreateContactSignature {
|
|
8
7
|
/**
|
|
@@ -19,9 +18,7 @@ interface CreateContactSignature {
|
|
|
19
18
|
* @param - Create contact options.
|
|
20
19
|
* @returns Contact.
|
|
21
20
|
*/
|
|
22
|
-
(info: ContactInfo, options?: CreateContactOptions): Promise<NonNullablePaths<CreateContactResponse, {
|
|
23
|
-
[P in ContactNonNullablePaths]: `contact.${P}`;
|
|
24
|
-
}[ContactNonNullablePaths]> & {
|
|
21
|
+
(info: ContactInfo, options?: CreateContactOptions): Promise<NonNullablePaths<CreateContactResponse, `contact._id` | `contact.revision` | `contact.source.sourceType` | `contact.lastActivity.activityType` | `contact.info.emails.items` | `contact.info.emails.items.${number}.tag` | `contact.info.emails.items.${number}.email` | `contact.info.phones.items` | `contact.info.phones.items.${number}.tag` | `contact.info.phones.items.${number}.phone` | `contact.info.addresses.items` | `contact.info.addresses.items.${number}.tag` | `contact.info.addresses.items.${number}.address.streetAddress.number` | `contact.info.addresses.items.${number}.address.streetAddress.name` | `contact.info.labelKeys.items` | `contact.primaryEmail.subscriptionStatus` | `contact.primaryEmail.deliverabilityStatus` | `contact.primaryPhone.subscriptionStatus`> & {
|
|
25
22
|
__applicationErrorsType?: CreateContactApplicationErrors;
|
|
26
23
|
}>;
|
|
27
24
|
}
|
|
@@ -48,9 +45,7 @@ interface UpdateContactSignature {
|
|
|
48
45
|
* @param - Contact update options.
|
|
49
46
|
* @returns Updated contact.
|
|
50
47
|
*/
|
|
51
|
-
(contactId: string, info: ContactInfo, revision: number, options?: UpdateContactOptions): Promise<NonNullablePaths<UpdateContactResponse, {
|
|
52
|
-
[P in ContactNonNullablePaths]: `contact.${P}`;
|
|
53
|
-
}[ContactNonNullablePaths]> & {
|
|
48
|
+
(contactId: string, info: ContactInfo, revision: number, options?: UpdateContactOptions): Promise<NonNullablePaths<UpdateContactResponse, `contact._id` | `contact.revision` | `contact.source.sourceType` | `contact.lastActivity.activityType` | `contact.info.emails.items` | `contact.info.emails.items.${number}.tag` | `contact.info.emails.items.${number}.email` | `contact.info.phones.items` | `contact.info.phones.items.${number}.tag` | `contact.info.phones.items.${number}.phone` | `contact.info.addresses.items` | `contact.info.addresses.items.${number}.tag` | `contact.info.addresses.items.${number}.address.streetAddress.number` | `contact.info.addresses.items.${number}.address.streetAddress.name` | `contact.info.labelKeys.items` | `contact.primaryEmail.subscriptionStatus` | `contact.primaryEmail.deliverabilityStatus` | `contact.primaryPhone.subscriptionStatus`> & {
|
|
54
49
|
__applicationErrorsType?: UpdateContactApplicationErrors;
|
|
55
50
|
}>;
|
|
56
51
|
}
|
|
@@ -93,9 +88,7 @@ interface MergeContactsSignature {
|
|
|
93
88
|
* the target contact's current `revision` must be specified.
|
|
94
89
|
* @param - Merge contacts options.
|
|
95
90
|
*/
|
|
96
|
-
(targetContactId: string, targetContactRevision: number, options?: MergeContactsOptions): Promise<NonNullablePaths<MergeContactsResponse, {
|
|
97
|
-
[P in ContactNonNullablePaths]: `contact.${P}`;
|
|
98
|
-
}[ContactNonNullablePaths]> & {
|
|
91
|
+
(targetContactId: string, targetContactRevision: number, options?: MergeContactsOptions): Promise<NonNullablePaths<MergeContactsResponse, `contact._id` | `contact.revision` | `contact.source.sourceType` | `contact.lastActivity.activityType` | `contact.info.emails.items` | `contact.info.emails.items.${number}.tag` | `contact.info.emails.items.${number}.email` | `contact.info.phones.items` | `contact.info.phones.items.${number}.tag` | `contact.info.phones.items.${number}.phone` | `contact.info.addresses.items` | `contact.info.addresses.items.${number}.tag` | `contact.info.addresses.items.${number}.address.streetAddress.number` | `contact.info.addresses.items.${number}.address.streetAddress.name` | `contact.info.labelKeys.items` | `contact.primaryEmail.subscriptionStatus` | `contact.primaryEmail.deliverabilityStatus` | `contact.primaryPhone.subscriptionStatus`> & {
|
|
99
92
|
__applicationErrorsType?: MergeContactsApplicationErrors;
|
|
100
93
|
}>;
|
|
101
94
|
}
|
|
@@ -133,9 +126,7 @@ interface LabelContactSignature {
|
|
|
133
126
|
* Use the Labels API to create or retrieve labels.
|
|
134
127
|
* @returns Updated contact.
|
|
135
128
|
*/
|
|
136
|
-
(contactId: string, labelKeys: string[]): Promise<NonNullablePaths<LabelContactResponse, {
|
|
137
|
-
[P in ContactNonNullablePaths]: `contact.${P}`;
|
|
138
|
-
}[ContactNonNullablePaths]> & {
|
|
129
|
+
(contactId: string, labelKeys: string[]): Promise<NonNullablePaths<LabelContactResponse, `contact._id` | `contact.revision` | `contact.source.sourceType` | `contact.lastActivity.activityType` | `contact.info.emails.items` | `contact.info.emails.items.${number}.tag` | `contact.info.emails.items.${number}.email` | `contact.info.phones.items` | `contact.info.phones.items.${number}.tag` | `contact.info.phones.items.${number}.phone` | `contact.info.addresses.items` | `contact.info.addresses.items.${number}.tag` | `contact.info.addresses.items.${number}.address.streetAddress.number` | `contact.info.addresses.items.${number}.address.streetAddress.name` | `contact.info.labelKeys.items` | `contact.primaryEmail.subscriptionStatus` | `contact.primaryEmail.deliverabilityStatus` | `contact.primaryPhone.subscriptionStatus`> & {
|
|
139
130
|
__applicationErrorsType?: LabelContactApplicationErrors;
|
|
140
131
|
}>;
|
|
141
132
|
}
|
|
@@ -154,9 +145,7 @@ interface UnlabelContactSignature {
|
|
|
154
145
|
* @param - List of label keys to remove from the contact.
|
|
155
146
|
* @returns Updated contact.
|
|
156
147
|
*/
|
|
157
|
-
(contactId: string, labelKeys: string[]): Promise<NonNullablePaths<UnlabelContactResponse, {
|
|
158
|
-
[P in ContactNonNullablePaths]: `contact.${P}`;
|
|
159
|
-
}[ContactNonNullablePaths]> & {
|
|
148
|
+
(contactId: string, labelKeys: string[]): Promise<NonNullablePaths<UnlabelContactResponse, `contact._id` | `contact.revision` | `contact.source.sourceType` | `contact.lastActivity.activityType` | `contact.info.emails.items` | `contact.info.emails.items.${number}.tag` | `contact.info.emails.items.${number}.email` | `contact.info.phones.items` | `contact.info.phones.items.${number}.tag` | `contact.info.phones.items.${number}.phone` | `contact.info.addresses.items` | `contact.info.addresses.items.${number}.tag` | `contact.info.addresses.items.${number}.address.streetAddress.number` | `contact.info.addresses.items.${number}.address.streetAddress.name` | `contact.info.labelKeys.items` | `contact.primaryEmail.subscriptionStatus` | `contact.primaryEmail.deliverabilityStatus` | `contact.primaryPhone.subscriptionStatus`> & {
|
|
160
149
|
__applicationErrorsType?: UnlabelContactApplicationErrors;
|
|
161
150
|
}>;
|
|
162
151
|
}
|
|
@@ -201,7 +190,7 @@ interface GetContactSignature {
|
|
|
201
190
|
* @param - Get contact options.
|
|
202
191
|
* @returns The requested contact.
|
|
203
192
|
*/
|
|
204
|
-
(_id: string, options?: GetContactOptions): Promise<NonNullablePaths<Contact,
|
|
193
|
+
(_id: string, options?: GetContactOptions): Promise<NonNullablePaths<Contact, `_id` | `revision` | `source.sourceType` | `lastActivity.activityType` | `info.emails.items` | `info.emails.items.${number}.tag` | `info.emails.items.${number}.email` | `info.phones.items` | `info.phones.items.${number}.tag` | `info.phones.items.${number}.phone` | `info.addresses.items` | `info.addresses.items.${number}.tag` | `info.addresses.items.${number}.address.streetAddress.number` | `info.addresses.items.${number}.address.streetAddress.name` | `info.labelKeys.items` | `primaryEmail.subscriptionStatus` | `primaryEmail.deliverabilityStatus` | `primaryPhone.subscriptionStatus`> & {
|
|
205
194
|
__applicationErrorsType?: GetContactApplicationErrors;
|
|
206
195
|
}>;
|
|
207
196
|
}
|