@wix/auto_sdk_crm_contacts 1.0.388 → 1.0.389
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 +23 -9
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{contacts-v4-contact-contacts.universal-B8Y8hXy8.d.ts → index.typings.d.ts} +470 -1
- package/build/cjs/index.typings.js +1126 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +23 -9
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/{contacts-v4-contact-contacts.universal-B8Y8hXy8.d.mts → index.typings.d.mts} +470 -1
- package/build/es/index.typings.mjs +1073 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +23 -9
- package/build/internal/cjs/index.js +1 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{contacts-v4-contact-contacts.universal-GFgRnaQp.d.ts → index.typings.d.ts} +470 -1
- package/build/internal/cjs/index.typings.js +1126 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +23 -9
- package/build/internal/es/index.mjs +1 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{contacts-v4-contact-contacts.universal-GFgRnaQp.d.mts → index.typings.d.mts} +470 -1
- package/build/internal/es/index.typings.mjs +1073 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
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
|
+
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
5
|
declare function createContact$1(httpClient: HttpClient): CreateContactSignature;
|
|
6
6
|
interface CreateContactSignature {
|
|
@@ -18,7 +18,9 @@ interface CreateContactSignature {
|
|
|
18
18
|
* @param - Create contact options.
|
|
19
19
|
* @returns Contact.
|
|
20
20
|
*/
|
|
21
|
-
(info: ContactInfo, options?: CreateContactOptions | undefined): Promise<CreateContactResponse
|
|
21
|
+
(info: ContactInfo, options?: CreateContactOptions | undefined): Promise<CreateContactResponse & {
|
|
22
|
+
__applicationErrorsType?: CreateContactApplicationErrors | undefined;
|
|
23
|
+
}>;
|
|
22
24
|
}
|
|
23
25
|
declare function updateContact$1(httpClient: HttpClient): UpdateContactSignature;
|
|
24
26
|
interface UpdateContactSignature {
|
|
@@ -43,7 +45,9 @@ interface UpdateContactSignature {
|
|
|
43
45
|
* @param - Contact update options.
|
|
44
46
|
* @returns Updated contact.
|
|
45
47
|
*/
|
|
46
|
-
(contactId: string, info: ContactInfo, revision: number, options?: UpdateContactOptions | undefined): Promise<UpdateContactResponse
|
|
48
|
+
(contactId: string, info: ContactInfo, revision: number, options?: UpdateContactOptions | undefined): Promise<UpdateContactResponse & {
|
|
49
|
+
__applicationErrorsType?: UpdateContactApplicationErrors | undefined;
|
|
50
|
+
}>;
|
|
47
51
|
}
|
|
48
52
|
declare function mergeContacts$1(httpClient: HttpClient): MergeContactsSignature;
|
|
49
53
|
interface MergeContactsSignature {
|
|
@@ -84,7 +88,9 @@ interface MergeContactsSignature {
|
|
|
84
88
|
* the target contact's current `revision` must be specified.
|
|
85
89
|
* @param - Merge contacts options.
|
|
86
90
|
*/
|
|
87
|
-
(targetContactId: string, targetContactRevision: number, options?: MergeContactsOptions | undefined): Promise<MergeContactsResponse
|
|
91
|
+
(targetContactId: string, targetContactRevision: number, options?: MergeContactsOptions | undefined): Promise<MergeContactsResponse & {
|
|
92
|
+
__applicationErrorsType?: MergeContactsApplicationErrors | undefined;
|
|
93
|
+
}>;
|
|
88
94
|
}
|
|
89
95
|
declare function deleteContact$1(httpClient: HttpClient): DeleteContactSignature;
|
|
90
96
|
interface DeleteContactSignature {
|
|
@@ -100,7 +106,9 @@ interface DeleteContactSignature {
|
|
|
100
106
|
* Make sure to specify the contact ID when calling Delete Contact.
|
|
101
107
|
* @param - ID of the contact to delete.
|
|
102
108
|
*/
|
|
103
|
-
(contactId: string): Promise<void
|
|
109
|
+
(contactId: string): Promise<void & {
|
|
110
|
+
__applicationErrorsType?: DeleteContactApplicationErrors | undefined;
|
|
111
|
+
}>;
|
|
104
112
|
}
|
|
105
113
|
declare function labelContact$1(httpClient: HttpClient): LabelContactSignature;
|
|
106
114
|
interface LabelContactSignature {
|
|
@@ -118,7 +126,9 @@ interface LabelContactSignature {
|
|
|
118
126
|
* Use the Labels API to create or retrieve labels.
|
|
119
127
|
* @returns Updated contact.
|
|
120
128
|
*/
|
|
121
|
-
(contactId: string, labelKeys: string[]): Promise<LabelContactResponse
|
|
129
|
+
(contactId: string, labelKeys: string[]): Promise<LabelContactResponse & {
|
|
130
|
+
__applicationErrorsType?: LabelContactApplicationErrors | undefined;
|
|
131
|
+
}>;
|
|
122
132
|
}
|
|
123
133
|
declare function unlabelContact$1(httpClient: HttpClient): UnlabelContactSignature;
|
|
124
134
|
interface UnlabelContactSignature {
|
|
@@ -135,7 +145,9 @@ interface UnlabelContactSignature {
|
|
|
135
145
|
* @param - List of label keys to remove from the contact.
|
|
136
146
|
* @returns Updated contact.
|
|
137
147
|
*/
|
|
138
|
-
(contactId: string, labelKeys: string[]): Promise<UnlabelContactResponse
|
|
148
|
+
(contactId: string, labelKeys: string[]): Promise<UnlabelContactResponse & {
|
|
149
|
+
__applicationErrorsType?: UnlabelContactApplicationErrors | undefined;
|
|
150
|
+
}>;
|
|
139
151
|
}
|
|
140
152
|
declare function queryContacts$1(httpClient: HttpClient): QueryContactsSignature;
|
|
141
153
|
interface QueryContactsSignature {
|
|
@@ -178,7 +190,9 @@ interface GetContactSignature {
|
|
|
178
190
|
* @param - Get contact options.
|
|
179
191
|
* @returns The requested contact.
|
|
180
192
|
*/
|
|
181
|
-
(_id: string, options?: GetContactOptions | undefined): Promise<Contact
|
|
193
|
+
(_id: string, options?: GetContactOptions | undefined): Promise<Contact & {
|
|
194
|
+
__applicationErrorsType?: GetContactApplicationErrors | undefined;
|
|
195
|
+
}>;
|
|
182
196
|
}
|
|
183
197
|
declare const onContactCreated$1: EventDefinition<ContactCreatedEnvelope, "wix.contacts.v4.contact_created">;
|
|
184
198
|
declare const onContactDeleted$1: EventDefinition<ContactDeletedEnvelope, "wix.contacts.v4.contact_deleted">;
|
package/build/cjs/index.js
CHANGED
|
@@ -900,6 +900,7 @@ async function deleteContact2(contactId) {
|
|
|
900
900
|
try {
|
|
901
901
|
const result = await httpClient.request(reqOpts);
|
|
902
902
|
sideEffects?.onSuccess?.(result);
|
|
903
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
903
904
|
} catch (err) {
|
|
904
905
|
const transformedError = (0, import_transform_error.transformError)(
|
|
905
906
|
err,
|