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