@wix/auto_sdk_crm_contacts 1.0.353 → 1.0.355
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 → contacts-v4-contact-contacts.universal-B8Y8hXy8.d.mts} +378 -218
- package/build/{internal/cjs/src/contacts-v4-contact-contacts.types.d.ts → contacts-v4-contact-contacts.universal-B8Y8hXy8.d.ts} +378 -218
- package/build/{cjs/src/contacts-v4-contact-contacts.public.d.ts → index.d.mts} +46 -18
- package/build/{es/src/contacts-v4-contact-contacts.public.d.ts → index.d.ts} +46 -18
- package/build/index.js +1338 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1281 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/contacts-v4-contact-contacts.types.d.ts → contacts-v4-contact-contacts.universal-GFgRnaQp.d.mts} +385 -214
- package/build/{es/src/contacts-v4-contact-contacts.types.d.ts → internal/contacts-v4-contact-contacts.universal-GFgRnaQp.d.ts} +385 -214
- package/build/internal/{cjs/src/contacts-v4-contact-contacts.public.d.ts → index.d.mts} +46 -18
- package/build/internal/{es/src/contacts-v4-contact-contacts.public.d.ts → index.d.ts} +46 -18
- package/build/internal/index.js +1338 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1281 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +934 -0
- package/build/internal/meta.d.ts +934 -0
- package/build/internal/meta.js +618 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +584 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +934 -0
- package/build/meta.d.ts +934 -0
- package/build/meta.js +618 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +584 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/contacts-v4-contact-contacts.context.d.ts +0 -36
- package/build/cjs/src/contacts-v4-contact-contacts.context.js +0 -61
- package/build/cjs/src/contacts-v4-contact-contacts.context.js.map +0 -1
- package/build/cjs/src/contacts-v4-contact-contacts.http.d.ts +0 -126
- package/build/cjs/src/contacts-v4-contact-contacts.http.js +0 -555
- package/build/cjs/src/contacts-v4-contact-contacts.http.js.map +0 -1
- package/build/cjs/src/contacts-v4-contact-contacts.meta.d.ts +0 -32
- package/build/cjs/src/contacts-v4-contact-contacts.meta.js +0 -180
- package/build/cjs/src/contacts-v4-contact-contacts.meta.js.map +0 -1
- package/build/cjs/src/contacts-v4-contact-contacts.public.js +0 -193
- package/build/cjs/src/contacts-v4-contact-contacts.public.js.map +0 -1
- package/build/cjs/src/contacts-v4-contact-contacts.types.js +0 -278
- package/build/cjs/src/contacts-v4-contact-contacts.types.js.map +0 -1
- package/build/cjs/src/contacts-v4-contact-contacts.universal.d.ts +0 -2434
- package/build/cjs/src/contacts-v4-contact-contacts.universal.js +0 -923
- package/build/cjs/src/contacts-v4-contact-contacts.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/contacts-v4-contact-contacts.context.d.ts +0 -36
- package/build/es/src/contacts-v4-contact-contacts.context.js +0 -36
- package/build/es/src/contacts-v4-contact-contacts.context.js.map +0 -1
- package/build/es/src/contacts-v4-contact-contacts.http.d.ts +0 -126
- package/build/es/src/contacts-v4-contact-contacts.http.js +0 -544
- package/build/es/src/contacts-v4-contact-contacts.http.js.map +0 -1
- package/build/es/src/contacts-v4-contact-contacts.meta.d.ts +0 -32
- package/build/es/src/contacts-v4-contact-contacts.meta.js +0 -146
- package/build/es/src/contacts-v4-contact-contacts.meta.js.map +0 -1
- package/build/es/src/contacts-v4-contact-contacts.public.js +0 -160
- package/build/es/src/contacts-v4-contact-contacts.public.js.map +0 -1
- package/build/es/src/contacts-v4-contact-contacts.types.js +0 -275
- package/build/es/src/contacts-v4-contact-contacts.types.js.map +0 -1
- package/build/es/src/contacts-v4-contact-contacts.universal.d.ts +0 -2434
- package/build/es/src/contacts-v4-contact-contacts.universal.js +0 -889
- package/build/es/src/contacts-v4-contact-contacts.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/contacts-v4-contact-contacts.context.d.ts +0 -36
- package/build/internal/cjs/src/contacts-v4-contact-contacts.context.js +0 -61
- package/build/internal/cjs/src/contacts-v4-contact-contacts.context.js.map +0 -1
- package/build/internal/cjs/src/contacts-v4-contact-contacts.http.d.ts +0 -126
- package/build/internal/cjs/src/contacts-v4-contact-contacts.http.js +0 -555
- package/build/internal/cjs/src/contacts-v4-contact-contacts.http.js.map +0 -1
- package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.d.ts +0 -32
- package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.js +0 -180
- package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.js.map +0 -1
- package/build/internal/cjs/src/contacts-v4-contact-contacts.public.js +0 -193
- package/build/internal/cjs/src/contacts-v4-contact-contacts.public.js.map +0 -1
- package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js +0 -278
- package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js.map +0 -1
- package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.d.ts +0 -2445
- package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js +0 -923
- package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/contacts-v4-contact-contacts.context.d.ts +0 -36
- package/build/internal/es/src/contacts-v4-contact-contacts.context.js +0 -36
- package/build/internal/es/src/contacts-v4-contact-contacts.context.js.map +0 -1
- package/build/internal/es/src/contacts-v4-contact-contacts.http.d.ts +0 -126
- package/build/internal/es/src/contacts-v4-contact-contacts.http.js +0 -544
- package/build/internal/es/src/contacts-v4-contact-contacts.http.js.map +0 -1
- package/build/internal/es/src/contacts-v4-contact-contacts.meta.d.ts +0 -32
- package/build/internal/es/src/contacts-v4-contact-contacts.meta.js +0 -146
- package/build/internal/es/src/contacts-v4-contact-contacts.meta.js.map +0 -1
- package/build/internal/es/src/contacts-v4-contact-contacts.public.js +0 -160
- package/build/internal/es/src/contacts-v4-contact-contacts.public.js.map +0 -1
- package/build/internal/es/src/contacts-v4-contact-contacts.types.js +0 -275
- package/build/internal/es/src/contacts-v4-contact-contacts.types.js.map +0 -1
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.d.ts +0 -2445
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.js +0 -889
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.js.map +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { EventDefinition,
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function createContact(httpClient: HttpClient): CreateContactSignature;
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { C as ContactInfo, a as CreateContactOptions, b as CreateContactResponse, U as UpdateContactOptions, c as UpdateContactResponse, M as MergeContactsOptions, d as MergeContactsResponse, L as LabelContactResponse, e as UnlabelContactResponse, Q as QueryContactsOptions, f as ContactsQueryBuilder, G as GetContactOptions, g as Contact, h as ContactCreatedEnvelope, i as ContactDeletedEnvelope, j as ContactMergedEnvelope, k as ContactUpdatedEnvelope } from './contacts-v4-contact-contacts.universal-B8Y8hXy8.mjs';
|
|
3
|
+
export { v as Action, bu as ActionEvent, F as ActivityIcon, Y as Address, $ as AddressLocation, Z as AddressStreetOneOf, A as AddressTag, bg as ApplicationError, a1 as AssigneesWrapper, by as BaseEventMetadata, bh as BulkActionMetadata, bd as BulkAddSegmentToContactsRequest, be as BulkAddSegmentToContactsResponse, aL as BulkDeleteContactsRequest, aM as BulkDeleteContactsResponse, aP as BulkLabelAndUnlabelContactsRequest, aQ as BulkLabelAndUnlabelContactsResponse, bj as BulkRemoveSegmentFromContactsRequest, bk as BulkRemoveSegmentFromContactsResponse, aN as BulkUpdateContactsRequest, aO as BulkUpdateContactsResponse, aR as BulkUpsertContactsRequest, aS as BulkUpsertContactsResponse, aW as BulkUpsertContactsResponseMetadata, D as ContactActivity, m as ContactActivityType, bi as ContactAddedToSegment, X as ContactAddress, V as ContactAddressesWrapper, af as ContactChanged, N as ContactEmail, ag as ContactEmailSubscriptionUpdated, K as ContactEmailsWrapper, t as ContactFieldSet, ap as ContactMerged, J as ContactName, T as ContactPhone, ah as ContactPhoneSubscriptionUpdated, O as ContactPhonesWrapper, a5 as ContactPicture, ai as ContactPrimaryInfoUpdated, bl as ContactRemovedFromSegment, B as ContactSource, l as ContactSourceType, ae as ContactSubmitted, aI as ContactsFacet, u as ContactsFacetType, bA as ContactsQueryResult, b3 as CountContactsRequest, b4 as CountContactsResponse, al as CreateContactRequest, b9 as CursorPaging, bb as CursorPagingMetadata, bc as Cursors, as as DeleteContactRequest, at as DeleteContactResponse, bo as DomainEvent, bp as DomainEventBodyOneOf, am as DuplicateContactExists, o as EmailDeliverabilityStatus, E as EmailTag, bq as EntityCreatedEvent, bt as EntityDeletedEvent, bs as EntityUpdatedEvent, aT as Error, bz as EventMetadata, a3 as ExtendedFieldsWrapper, aZ as GeneratePictureUploadUrlRequest, a_ as GeneratePictureUploadUrlResponse, a$ as GetContactRequest, b0 as GetContactResponse, x as GetContactResponseType, ad as GroupInfo, bw as IdentificationData, bx as IdentificationDataIdOneOf, I as ImageProvider, aV as Item, bf as ItemMetadata, aw as LabelAndUnlabelContactRequest, ax as LabelAndUnlabelContactResponse, au as LabelContactRequest, a2 as LabelsWrapper, ak as LastActivityUpdate, bm as ListContactIdsBySegmentRequest, bn as ListContactIdsBySegmentResponse, ay as ListContactsRequest, aB as ListContactsResponse, aG as ListFacetsRequest, aH as ListFacetsResponse, a4 as LocationsWrapper, a9 as MemberInfo, q as MemberStatus, ao as MergeContactsRequest, bv as MessageEnvelope, aU as Metadata, z as Mode, aA as Paging, aC as PagingMetadata, p as PhoneDeliverabilityStatus, P as PhoneTag, aq as PreviewMergeContactsRequest, ar as PreviewMergeContactsResponse, H as PrimaryContactInfo, a7 as PrimaryEmail, a8 as PrimaryPhone, aj as PrimarySubscriptionStatus, r as PrivacyStatus, aa as ProfileInfo, aE as Query, aD as QueryContactsRequest, aF as QueryContactsResponse, aJ as QueryFacetsRequest, aK as QueryFacetsResponse, br as RestoreInfo, R as Role, b6 as Search, b5 as SearchContactsRequest, ba as SearchContactsResponse, b8 as SearchDetails, b7 as SearchPagingMethodOneOf, a6 as SegmentsWrapper, ac as SessionInfo, s as SortOrder, az as Sorting, _ as StreetAddress, a0 as Subdivision, S as SubdivisionType, y as SubmitOperation, n as SubscriptionStatus, b1 as SyncSubmitContactRequest, b2 as SyncSubmitContactResponse, av as UnlabelContactRequest, an as UpdateContactRequest, aX as UpsertContactRequest, aY as UpsertContactResponse, w as UpsertContactResponseAction, ab as UserInfo, W as WebhookIdentityType } from './contacts-v4-contact-contacts.universal-B8Y8hXy8.mjs';
|
|
4
|
+
|
|
5
|
+
declare function createContact$1(httpClient: HttpClient): CreateContactSignature;
|
|
7
6
|
interface CreateContactSignature {
|
|
8
7
|
/**
|
|
9
8
|
* Creates a new contact.
|
|
@@ -21,7 +20,7 @@ interface CreateContactSignature {
|
|
|
21
20
|
*/
|
|
22
21
|
(info: ContactInfo, options?: CreateContactOptions | undefined): Promise<CreateContactResponse>;
|
|
23
22
|
}
|
|
24
|
-
|
|
23
|
+
declare function updateContact$1(httpClient: HttpClient): UpdateContactSignature;
|
|
25
24
|
interface UpdateContactSignature {
|
|
26
25
|
/**
|
|
27
26
|
* Updates a contact.
|
|
@@ -46,7 +45,7 @@ interface UpdateContactSignature {
|
|
|
46
45
|
*/
|
|
47
46
|
(contactId: string, info: ContactInfo, revision: number, options?: UpdateContactOptions | undefined): Promise<UpdateContactResponse>;
|
|
48
47
|
}
|
|
49
|
-
|
|
48
|
+
declare function mergeContacts$1(httpClient: HttpClient): MergeContactsSignature;
|
|
50
49
|
interface MergeContactsSignature {
|
|
51
50
|
/**
|
|
52
51
|
* Merges source contacts into a target contact.
|
|
@@ -87,7 +86,7 @@ interface MergeContactsSignature {
|
|
|
87
86
|
*/
|
|
88
87
|
(targetContactId: string, targetContactRevision: number, options?: MergeContactsOptions | undefined): Promise<MergeContactsResponse>;
|
|
89
88
|
}
|
|
90
|
-
|
|
89
|
+
declare function deleteContact$1(httpClient: HttpClient): DeleteContactSignature;
|
|
91
90
|
interface DeleteContactSignature {
|
|
92
91
|
/**
|
|
93
92
|
* Deletes a contact.
|
|
@@ -103,7 +102,7 @@ interface DeleteContactSignature {
|
|
|
103
102
|
*/
|
|
104
103
|
(contactId: string): Promise<void>;
|
|
105
104
|
}
|
|
106
|
-
|
|
105
|
+
declare function labelContact$1(httpClient: HttpClient): LabelContactSignature;
|
|
107
106
|
interface LabelContactSignature {
|
|
108
107
|
/**
|
|
109
108
|
* Adds labels to a contact.
|
|
@@ -121,7 +120,7 @@ interface LabelContactSignature {
|
|
|
121
120
|
*/
|
|
122
121
|
(contactId: string, labelKeys: string[]): Promise<LabelContactResponse>;
|
|
123
122
|
}
|
|
124
|
-
|
|
123
|
+
declare function unlabelContact$1(httpClient: HttpClient): UnlabelContactSignature;
|
|
125
124
|
interface UnlabelContactSignature {
|
|
126
125
|
/**
|
|
127
126
|
* Removes labels from a contact.
|
|
@@ -138,7 +137,7 @@ interface UnlabelContactSignature {
|
|
|
138
137
|
*/
|
|
139
138
|
(contactId: string, labelKeys: string[]): Promise<UnlabelContactResponse>;
|
|
140
139
|
}
|
|
141
|
-
|
|
140
|
+
declare function queryContacts$1(httpClient: HttpClient): QueryContactsSignature;
|
|
142
141
|
interface QueryContactsSignature {
|
|
143
142
|
/**
|
|
144
143
|
* Creates a query to retrieve a list of contacts.
|
|
@@ -160,7 +159,7 @@ interface QueryContactsSignature {
|
|
|
160
159
|
*/
|
|
161
160
|
(options?: QueryContactsOptions | undefined): ContactsQueryBuilder;
|
|
162
161
|
}
|
|
163
|
-
|
|
162
|
+
declare function getContact$1(httpClient: HttpClient): GetContactSignature;
|
|
164
163
|
interface GetContactSignature {
|
|
165
164
|
/**
|
|
166
165
|
* Retrieves a contact.
|
|
@@ -181,8 +180,37 @@ interface GetContactSignature {
|
|
|
181
180
|
*/
|
|
182
181
|
(_id: string, options?: GetContactOptions | undefined): Promise<Contact>;
|
|
183
182
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
183
|
+
declare const onContactCreated$1: EventDefinition<ContactCreatedEnvelope, "wix.contacts.v4.contact_created">;
|
|
184
|
+
declare const onContactDeleted$1: EventDefinition<ContactDeletedEnvelope, "wix.contacts.v4.contact_deleted">;
|
|
185
|
+
declare const onContactMerged$1: EventDefinition<ContactMergedEnvelope, "wix.contacts.v4.contact_merged">;
|
|
186
|
+
declare const onContactUpdated$1: EventDefinition<ContactUpdatedEnvelope, "wix.contacts.v4.contact_updated">;
|
|
187
|
+
|
|
188
|
+
declare const createContact: MaybeContext<BuildRESTFunction<typeof createContact$1> & typeof createContact$1>;
|
|
189
|
+
declare const updateContact: MaybeContext<BuildRESTFunction<typeof updateContact$1> & typeof updateContact$1>;
|
|
190
|
+
declare const mergeContacts: MaybeContext<BuildRESTFunction<typeof mergeContacts$1> & typeof mergeContacts$1>;
|
|
191
|
+
declare const deleteContact: MaybeContext<BuildRESTFunction<typeof deleteContact$1> & typeof deleteContact$1>;
|
|
192
|
+
declare const labelContact: MaybeContext<BuildRESTFunction<typeof labelContact$1> & typeof labelContact$1>;
|
|
193
|
+
declare const unlabelContact: MaybeContext<BuildRESTFunction<typeof unlabelContact$1> & typeof unlabelContact$1>;
|
|
194
|
+
declare const queryContacts: MaybeContext<BuildRESTFunction<typeof queryContacts$1> & typeof queryContacts$1>;
|
|
195
|
+
declare const getContact: MaybeContext<BuildRESTFunction<typeof getContact$1> & typeof getContact$1>;
|
|
196
|
+
/**
|
|
197
|
+
* Triggered when a contact is created.
|
|
198
|
+
*/
|
|
199
|
+
declare const onContactCreated: BuildEventDefinition<typeof onContactCreated$1>;
|
|
200
|
+
/**
|
|
201
|
+
* Triggered when a contact is deleted.
|
|
202
|
+
*
|
|
203
|
+
* If a contact is deleted as part of a merge, the `originatedFrom` property is sent as `merge`.
|
|
204
|
+
* Otherwise, `originatedFrom` isn't returned.
|
|
205
|
+
*/
|
|
206
|
+
declare const onContactDeleted: BuildEventDefinition<typeof onContactDeleted$1>;
|
|
207
|
+
/**
|
|
208
|
+
* Triggered when one or more source contacts are merged into a target contact.
|
|
209
|
+
*/
|
|
210
|
+
declare const onContactMerged: BuildEventDefinition<typeof onContactMerged$1>;
|
|
211
|
+
/**
|
|
212
|
+
* Triggered when a contact is updated.
|
|
213
|
+
*/
|
|
214
|
+
declare const onContactUpdated: BuildEventDefinition<typeof onContactUpdated$1>;
|
|
215
|
+
|
|
216
|
+
export { Contact, ContactCreatedEnvelope, ContactDeletedEnvelope, ContactInfo, ContactMergedEnvelope, ContactUpdatedEnvelope, ContactsQueryBuilder, CreateContactOptions, CreateContactResponse, GetContactOptions, LabelContactResponse, MergeContactsOptions, MergeContactsResponse, QueryContactsOptions, UnlabelContactResponse, UpdateContactOptions, UpdateContactResponse, createContact, deleteContact, getContact, labelContact, mergeContacts, onContactCreated, onContactDeleted, onContactMerged, onContactUpdated, queryContacts, unlabelContact, updateContact };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { EventDefinition,
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function createContact(httpClient: HttpClient): CreateContactSignature;
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { C as ContactInfo, a as CreateContactOptions, b as CreateContactResponse, U as UpdateContactOptions, c as UpdateContactResponse, M as MergeContactsOptions, d as MergeContactsResponse, L as LabelContactResponse, e as UnlabelContactResponse, Q as QueryContactsOptions, f as ContactsQueryBuilder, G as GetContactOptions, g as Contact, h as ContactCreatedEnvelope, i as ContactDeletedEnvelope, j as ContactMergedEnvelope, k as ContactUpdatedEnvelope } from './contacts-v4-contact-contacts.universal-B8Y8hXy8.js';
|
|
3
|
+
export { v as Action, bu as ActionEvent, F as ActivityIcon, Y as Address, $ as AddressLocation, Z as AddressStreetOneOf, A as AddressTag, bg as ApplicationError, a1 as AssigneesWrapper, by as BaseEventMetadata, bh as BulkActionMetadata, bd as BulkAddSegmentToContactsRequest, be as BulkAddSegmentToContactsResponse, aL as BulkDeleteContactsRequest, aM as BulkDeleteContactsResponse, aP as BulkLabelAndUnlabelContactsRequest, aQ as BulkLabelAndUnlabelContactsResponse, bj as BulkRemoveSegmentFromContactsRequest, bk as BulkRemoveSegmentFromContactsResponse, aN as BulkUpdateContactsRequest, aO as BulkUpdateContactsResponse, aR as BulkUpsertContactsRequest, aS as BulkUpsertContactsResponse, aW as BulkUpsertContactsResponseMetadata, D as ContactActivity, m as ContactActivityType, bi as ContactAddedToSegment, X as ContactAddress, V as ContactAddressesWrapper, af as ContactChanged, N as ContactEmail, ag as ContactEmailSubscriptionUpdated, K as ContactEmailsWrapper, t as ContactFieldSet, ap as ContactMerged, J as ContactName, T as ContactPhone, ah as ContactPhoneSubscriptionUpdated, O as ContactPhonesWrapper, a5 as ContactPicture, ai as ContactPrimaryInfoUpdated, bl as ContactRemovedFromSegment, B as ContactSource, l as ContactSourceType, ae as ContactSubmitted, aI as ContactsFacet, u as ContactsFacetType, bA as ContactsQueryResult, b3 as CountContactsRequest, b4 as CountContactsResponse, al as CreateContactRequest, b9 as CursorPaging, bb as CursorPagingMetadata, bc as Cursors, as as DeleteContactRequest, at as DeleteContactResponse, bo as DomainEvent, bp as DomainEventBodyOneOf, am as DuplicateContactExists, o as EmailDeliverabilityStatus, E as EmailTag, bq as EntityCreatedEvent, bt as EntityDeletedEvent, bs as EntityUpdatedEvent, aT as Error, bz as EventMetadata, a3 as ExtendedFieldsWrapper, aZ as GeneratePictureUploadUrlRequest, a_ as GeneratePictureUploadUrlResponse, a$ as GetContactRequest, b0 as GetContactResponse, x as GetContactResponseType, ad as GroupInfo, bw as IdentificationData, bx as IdentificationDataIdOneOf, I as ImageProvider, aV as Item, bf as ItemMetadata, aw as LabelAndUnlabelContactRequest, ax as LabelAndUnlabelContactResponse, au as LabelContactRequest, a2 as LabelsWrapper, ak as LastActivityUpdate, bm as ListContactIdsBySegmentRequest, bn as ListContactIdsBySegmentResponse, ay as ListContactsRequest, aB as ListContactsResponse, aG as ListFacetsRequest, aH as ListFacetsResponse, a4 as LocationsWrapper, a9 as MemberInfo, q as MemberStatus, ao as MergeContactsRequest, bv as MessageEnvelope, aU as Metadata, z as Mode, aA as Paging, aC as PagingMetadata, p as PhoneDeliverabilityStatus, P as PhoneTag, aq as PreviewMergeContactsRequest, ar as PreviewMergeContactsResponse, H as PrimaryContactInfo, a7 as PrimaryEmail, a8 as PrimaryPhone, aj as PrimarySubscriptionStatus, r as PrivacyStatus, aa as ProfileInfo, aE as Query, aD as QueryContactsRequest, aF as QueryContactsResponse, aJ as QueryFacetsRequest, aK as QueryFacetsResponse, br as RestoreInfo, R as Role, b6 as Search, b5 as SearchContactsRequest, ba as SearchContactsResponse, b8 as SearchDetails, b7 as SearchPagingMethodOneOf, a6 as SegmentsWrapper, ac as SessionInfo, s as SortOrder, az as Sorting, _ as StreetAddress, a0 as Subdivision, S as SubdivisionType, y as SubmitOperation, n as SubscriptionStatus, b1 as SyncSubmitContactRequest, b2 as SyncSubmitContactResponse, av as UnlabelContactRequest, an as UpdateContactRequest, aX as UpsertContactRequest, aY as UpsertContactResponse, w as UpsertContactResponseAction, ab as UserInfo, W as WebhookIdentityType } from './contacts-v4-contact-contacts.universal-B8Y8hXy8.js';
|
|
4
|
+
|
|
5
|
+
declare function createContact$1(httpClient: HttpClient): CreateContactSignature;
|
|
7
6
|
interface CreateContactSignature {
|
|
8
7
|
/**
|
|
9
8
|
* Creates a new contact.
|
|
@@ -21,7 +20,7 @@ interface CreateContactSignature {
|
|
|
21
20
|
*/
|
|
22
21
|
(info: ContactInfo, options?: CreateContactOptions | undefined): Promise<CreateContactResponse>;
|
|
23
22
|
}
|
|
24
|
-
|
|
23
|
+
declare function updateContact$1(httpClient: HttpClient): UpdateContactSignature;
|
|
25
24
|
interface UpdateContactSignature {
|
|
26
25
|
/**
|
|
27
26
|
* Updates a contact.
|
|
@@ -46,7 +45,7 @@ interface UpdateContactSignature {
|
|
|
46
45
|
*/
|
|
47
46
|
(contactId: string, info: ContactInfo, revision: number, options?: UpdateContactOptions | undefined): Promise<UpdateContactResponse>;
|
|
48
47
|
}
|
|
49
|
-
|
|
48
|
+
declare function mergeContacts$1(httpClient: HttpClient): MergeContactsSignature;
|
|
50
49
|
interface MergeContactsSignature {
|
|
51
50
|
/**
|
|
52
51
|
* Merges source contacts into a target contact.
|
|
@@ -87,7 +86,7 @@ interface MergeContactsSignature {
|
|
|
87
86
|
*/
|
|
88
87
|
(targetContactId: string, targetContactRevision: number, options?: MergeContactsOptions | undefined): Promise<MergeContactsResponse>;
|
|
89
88
|
}
|
|
90
|
-
|
|
89
|
+
declare function deleteContact$1(httpClient: HttpClient): DeleteContactSignature;
|
|
91
90
|
interface DeleteContactSignature {
|
|
92
91
|
/**
|
|
93
92
|
* Deletes a contact.
|
|
@@ -103,7 +102,7 @@ interface DeleteContactSignature {
|
|
|
103
102
|
*/
|
|
104
103
|
(contactId: string): Promise<void>;
|
|
105
104
|
}
|
|
106
|
-
|
|
105
|
+
declare function labelContact$1(httpClient: HttpClient): LabelContactSignature;
|
|
107
106
|
interface LabelContactSignature {
|
|
108
107
|
/**
|
|
109
108
|
* Adds labels to a contact.
|
|
@@ -121,7 +120,7 @@ interface LabelContactSignature {
|
|
|
121
120
|
*/
|
|
122
121
|
(contactId: string, labelKeys: string[]): Promise<LabelContactResponse>;
|
|
123
122
|
}
|
|
124
|
-
|
|
123
|
+
declare function unlabelContact$1(httpClient: HttpClient): UnlabelContactSignature;
|
|
125
124
|
interface UnlabelContactSignature {
|
|
126
125
|
/**
|
|
127
126
|
* Removes labels from a contact.
|
|
@@ -138,7 +137,7 @@ interface UnlabelContactSignature {
|
|
|
138
137
|
*/
|
|
139
138
|
(contactId: string, labelKeys: string[]): Promise<UnlabelContactResponse>;
|
|
140
139
|
}
|
|
141
|
-
|
|
140
|
+
declare function queryContacts$1(httpClient: HttpClient): QueryContactsSignature;
|
|
142
141
|
interface QueryContactsSignature {
|
|
143
142
|
/**
|
|
144
143
|
* Creates a query to retrieve a list of contacts.
|
|
@@ -160,7 +159,7 @@ interface QueryContactsSignature {
|
|
|
160
159
|
*/
|
|
161
160
|
(options?: QueryContactsOptions | undefined): ContactsQueryBuilder;
|
|
162
161
|
}
|
|
163
|
-
|
|
162
|
+
declare function getContact$1(httpClient: HttpClient): GetContactSignature;
|
|
164
163
|
interface GetContactSignature {
|
|
165
164
|
/**
|
|
166
165
|
* Retrieves a contact.
|
|
@@ -181,8 +180,37 @@ interface GetContactSignature {
|
|
|
181
180
|
*/
|
|
182
181
|
(_id: string, options?: GetContactOptions | undefined): Promise<Contact>;
|
|
183
182
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
183
|
+
declare const onContactCreated$1: EventDefinition<ContactCreatedEnvelope, "wix.contacts.v4.contact_created">;
|
|
184
|
+
declare const onContactDeleted$1: EventDefinition<ContactDeletedEnvelope, "wix.contacts.v4.contact_deleted">;
|
|
185
|
+
declare const onContactMerged$1: EventDefinition<ContactMergedEnvelope, "wix.contacts.v4.contact_merged">;
|
|
186
|
+
declare const onContactUpdated$1: EventDefinition<ContactUpdatedEnvelope, "wix.contacts.v4.contact_updated">;
|
|
187
|
+
|
|
188
|
+
declare const createContact: MaybeContext<BuildRESTFunction<typeof createContact$1> & typeof createContact$1>;
|
|
189
|
+
declare const updateContact: MaybeContext<BuildRESTFunction<typeof updateContact$1> & typeof updateContact$1>;
|
|
190
|
+
declare const mergeContacts: MaybeContext<BuildRESTFunction<typeof mergeContacts$1> & typeof mergeContacts$1>;
|
|
191
|
+
declare const deleteContact: MaybeContext<BuildRESTFunction<typeof deleteContact$1> & typeof deleteContact$1>;
|
|
192
|
+
declare const labelContact: MaybeContext<BuildRESTFunction<typeof labelContact$1> & typeof labelContact$1>;
|
|
193
|
+
declare const unlabelContact: MaybeContext<BuildRESTFunction<typeof unlabelContact$1> & typeof unlabelContact$1>;
|
|
194
|
+
declare const queryContacts: MaybeContext<BuildRESTFunction<typeof queryContacts$1> & typeof queryContacts$1>;
|
|
195
|
+
declare const getContact: MaybeContext<BuildRESTFunction<typeof getContact$1> & typeof getContact$1>;
|
|
196
|
+
/**
|
|
197
|
+
* Triggered when a contact is created.
|
|
198
|
+
*/
|
|
199
|
+
declare const onContactCreated: BuildEventDefinition<typeof onContactCreated$1>;
|
|
200
|
+
/**
|
|
201
|
+
* Triggered when a contact is deleted.
|
|
202
|
+
*
|
|
203
|
+
* If a contact is deleted as part of a merge, the `originatedFrom` property is sent as `merge`.
|
|
204
|
+
* Otherwise, `originatedFrom` isn't returned.
|
|
205
|
+
*/
|
|
206
|
+
declare const onContactDeleted: BuildEventDefinition<typeof onContactDeleted$1>;
|
|
207
|
+
/**
|
|
208
|
+
* Triggered when one or more source contacts are merged into a target contact.
|
|
209
|
+
*/
|
|
210
|
+
declare const onContactMerged: BuildEventDefinition<typeof onContactMerged$1>;
|
|
211
|
+
/**
|
|
212
|
+
* Triggered when a contact is updated.
|
|
213
|
+
*/
|
|
214
|
+
declare const onContactUpdated: BuildEventDefinition<typeof onContactUpdated$1>;
|
|
215
|
+
|
|
216
|
+
export { Contact, ContactCreatedEnvelope, ContactDeletedEnvelope, ContactInfo, ContactMergedEnvelope, ContactUpdatedEnvelope, ContactsQueryBuilder, CreateContactOptions, CreateContactResponse, GetContactOptions, LabelContactResponse, MergeContactsOptions, MergeContactsResponse, QueryContactsOptions, UnlabelContactResponse, UpdateContactOptions, UpdateContactResponse, createContact, deleteContact, getContact, labelContact, mergeContacts, onContactCreated, onContactDeleted, onContactMerged, onContactUpdated, queryContacts, unlabelContact, updateContact };
|