@wix/auto_sdk_crm_contacts 1.0.0
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 +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/contacts-v4-contact-contacts.context.d.ts +36 -0
- package/build/cjs/src/contacts-v4-contact-contacts.context.js +61 -0
- package/build/cjs/src/contacts-v4-contact-contacts.context.js.map +1 -0
- package/build/cjs/src/contacts-v4-contact-contacts.http.d.ts +126 -0
- package/build/cjs/src/contacts-v4-contact-contacts.http.js +555 -0
- package/build/cjs/src/contacts-v4-contact-contacts.http.js.map +1 -0
- package/build/cjs/src/contacts-v4-contact-contacts.meta.d.ts +32 -0
- package/build/cjs/src/contacts-v4-contact-contacts.meta.js +180 -0
- package/build/cjs/src/contacts-v4-contact-contacts.meta.js.map +1 -0
- package/build/cjs/src/contacts-v4-contact-contacts.public.d.ts +188 -0
- package/build/cjs/src/contacts-v4-contact-contacts.public.js +193 -0
- package/build/cjs/src/contacts-v4-contact-contacts.public.js.map +1 -0
- package/build/cjs/src/contacts-v4-contact-contacts.types.d.ts +1701 -0
- package/build/cjs/src/contacts-v4-contact-contacts.types.js +266 -0
- package/build/cjs/src/contacts-v4-contact-contacts.types.js.map +1 -0
- package/build/cjs/src/contacts-v4-contact-contacts.universal.d.ts +2153 -0
- package/build/cjs/src/contacts-v4-contact-contacts.universal.js +883 -0
- package/build/cjs/src/contacts-v4-contact-contacts.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/contacts-v4-contact-contacts.context.d.ts +36 -0
- package/build/es/src/contacts-v4-contact-contacts.context.js +36 -0
- package/build/es/src/contacts-v4-contact-contacts.context.js.map +1 -0
- package/build/es/src/contacts-v4-contact-contacts.http.d.ts +126 -0
- package/build/es/src/contacts-v4-contact-contacts.http.js +544 -0
- package/build/es/src/contacts-v4-contact-contacts.http.js.map +1 -0
- package/build/es/src/contacts-v4-contact-contacts.meta.d.ts +32 -0
- package/build/es/src/contacts-v4-contact-contacts.meta.js +146 -0
- package/build/es/src/contacts-v4-contact-contacts.meta.js.map +1 -0
- package/build/es/src/contacts-v4-contact-contacts.public.d.ts +188 -0
- package/build/es/src/contacts-v4-contact-contacts.public.js +160 -0
- package/build/es/src/contacts-v4-contact-contacts.public.js.map +1 -0
- package/build/es/src/contacts-v4-contact-contacts.types.d.ts +1701 -0
- package/build/es/src/contacts-v4-contact-contacts.types.js +263 -0
- package/build/es/src/contacts-v4-contact-contacts.types.js.map +1 -0
- package/build/es/src/contacts-v4-contact-contacts.universal.d.ts +2153 -0
- package/build/es/src/contacts-v4-contact-contacts.universal.js +849 -0
- package/build/es/src/contacts-v4-contact-contacts.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.context.d.ts +36 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.context.js +61 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.context.js.map +1 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.http.d.ts +126 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.http.js +555 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.http.js.map +1 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.d.ts +32 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.js +180 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.js.map +1 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.public.d.ts +188 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.public.js +193 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.public.js.map +1 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.types.d.ts +1729 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js +266 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js.map +1 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.d.ts +2187 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js +883 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.context.d.ts +36 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.context.js +36 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.context.js.map +1 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.http.d.ts +126 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.http.js +544 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.http.js.map +1 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.meta.d.ts +32 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.meta.js +146 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.meta.js.map +1 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.public.d.ts +188 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.public.js +160 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.public.js.map +1 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.types.d.ts +1729 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.types.js +263 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.types.js.map +1 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.d.ts +2187 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.js +849 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import * as ambassadorWixContactsV4Contact from './contacts-v4-contact-contacts.http.js';
|
|
2
|
+
export function createContact() {
|
|
3
|
+
const payload = {};
|
|
4
|
+
const getRequestOptions = ambassadorWixContactsV4Contact.createContact(payload);
|
|
5
|
+
const getUrl = (context) => {
|
|
6
|
+
const { url } = getRequestOptions(context);
|
|
7
|
+
return url;
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
getUrl,
|
|
11
|
+
httpMethod: 'POST',
|
|
12
|
+
path: '/v4/contacts',
|
|
13
|
+
pathParams: {},
|
|
14
|
+
__requestType: null,
|
|
15
|
+
__originalRequestType: null,
|
|
16
|
+
__responseType: null,
|
|
17
|
+
__originalResponseType: null,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function updateContact() {
|
|
21
|
+
const payload = { contactId: ':contactId' };
|
|
22
|
+
const getRequestOptions = ambassadorWixContactsV4Contact.updateContact(payload);
|
|
23
|
+
const getUrl = (context) => {
|
|
24
|
+
const { url } = getRequestOptions(context);
|
|
25
|
+
return url;
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
getUrl,
|
|
29
|
+
httpMethod: 'PATCH',
|
|
30
|
+
path: '/v4/contacts/{contactId}',
|
|
31
|
+
pathParams: { contactId: 'contactId' },
|
|
32
|
+
__requestType: null,
|
|
33
|
+
__originalRequestType: null,
|
|
34
|
+
__responseType: null,
|
|
35
|
+
__originalResponseType: null,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function mergeContacts() {
|
|
39
|
+
const payload = { targetContactId: ':targetContactId' };
|
|
40
|
+
const getRequestOptions = ambassadorWixContactsV4Contact.mergeContacts(payload);
|
|
41
|
+
const getUrl = (context) => {
|
|
42
|
+
const { url } = getRequestOptions(context);
|
|
43
|
+
return url;
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
getUrl,
|
|
47
|
+
httpMethod: 'POST',
|
|
48
|
+
path: '/v4/contacts/{targetContactId}/merge',
|
|
49
|
+
pathParams: { targetContactId: 'targetContactId' },
|
|
50
|
+
__requestType: null,
|
|
51
|
+
__originalRequestType: null,
|
|
52
|
+
__responseType: null,
|
|
53
|
+
__originalResponseType: null,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function deleteContact() {
|
|
57
|
+
const payload = { contactId: ':contactId' };
|
|
58
|
+
const getRequestOptions = ambassadorWixContactsV4Contact.deleteContact(payload);
|
|
59
|
+
const getUrl = (context) => {
|
|
60
|
+
const { url } = getRequestOptions(context);
|
|
61
|
+
return url;
|
|
62
|
+
};
|
|
63
|
+
return {
|
|
64
|
+
getUrl,
|
|
65
|
+
httpMethod: 'DELETE',
|
|
66
|
+
path: '/v4/contacts/{contactId}',
|
|
67
|
+
pathParams: { contactId: 'contactId' },
|
|
68
|
+
__requestType: null,
|
|
69
|
+
__originalRequestType: null,
|
|
70
|
+
__responseType: null,
|
|
71
|
+
__originalResponseType: null,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export function labelContact() {
|
|
75
|
+
const payload = { contactId: ':contactId' };
|
|
76
|
+
const getRequestOptions = ambassadorWixContactsV4Contact.labelContact(payload);
|
|
77
|
+
const getUrl = (context) => {
|
|
78
|
+
const { url } = getRequestOptions(context);
|
|
79
|
+
return url;
|
|
80
|
+
};
|
|
81
|
+
return {
|
|
82
|
+
getUrl,
|
|
83
|
+
httpMethod: 'POST',
|
|
84
|
+
path: '/v4/contacts/{contactId}/labels',
|
|
85
|
+
pathParams: { contactId: 'contactId' },
|
|
86
|
+
__requestType: null,
|
|
87
|
+
__originalRequestType: null,
|
|
88
|
+
__responseType: null,
|
|
89
|
+
__originalResponseType: null,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
export function unlabelContact() {
|
|
93
|
+
const payload = { contactId: ':contactId' };
|
|
94
|
+
const getRequestOptions = ambassadorWixContactsV4Contact.unlabelContact(payload);
|
|
95
|
+
const getUrl = (context) => {
|
|
96
|
+
const { url } = getRequestOptions(context);
|
|
97
|
+
return url;
|
|
98
|
+
};
|
|
99
|
+
return {
|
|
100
|
+
getUrl,
|
|
101
|
+
httpMethod: 'DELETE',
|
|
102
|
+
path: '/v4/contacts/{contactId}/labels',
|
|
103
|
+
pathParams: { contactId: 'contactId' },
|
|
104
|
+
__requestType: null,
|
|
105
|
+
__originalRequestType: null,
|
|
106
|
+
__responseType: null,
|
|
107
|
+
__originalResponseType: null,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export function queryContacts() {
|
|
111
|
+
const payload = {};
|
|
112
|
+
const getRequestOptions = ambassadorWixContactsV4Contact.queryContacts(payload);
|
|
113
|
+
const getUrl = (context) => {
|
|
114
|
+
const { url } = getRequestOptions(context);
|
|
115
|
+
return url;
|
|
116
|
+
};
|
|
117
|
+
return {
|
|
118
|
+
getUrl,
|
|
119
|
+
httpMethod: 'POST',
|
|
120
|
+
path: '/v4/contacts/query',
|
|
121
|
+
pathParams: {},
|
|
122
|
+
__requestType: null,
|
|
123
|
+
__originalRequestType: null,
|
|
124
|
+
__responseType: null,
|
|
125
|
+
__originalResponseType: null,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
export function getContact() {
|
|
129
|
+
const payload = { id: ':id' };
|
|
130
|
+
const getRequestOptions = ambassadorWixContactsV4Contact.getContact(payload);
|
|
131
|
+
const getUrl = (context) => {
|
|
132
|
+
const { url } = getRequestOptions(context);
|
|
133
|
+
return url;
|
|
134
|
+
};
|
|
135
|
+
return {
|
|
136
|
+
getUrl,
|
|
137
|
+
httpMethod: 'GET',
|
|
138
|
+
path: '/v4/contacts/{id}',
|
|
139
|
+
pathParams: { id: 'id' },
|
|
140
|
+
__requestType: null,
|
|
141
|
+
__originalRequestType: null,
|
|
142
|
+
__responseType: null,
|
|
143
|
+
__originalResponseType: null,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=contacts-v4-contact-contacts.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts-v4-contact-contacts.meta.js","sourceRoot":"","sources":["../../../src/contacts-v4-contact-contacts.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,8BAA8B,MAAM,wCAAwC,CAAC;AAsBzF,MAAM,UAAU,aAAa;IAU3B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,8BAA8B,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAExD,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,cAAc;QACpB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAA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QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,mBAAmB;QACzB,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;QACxB,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { Contact, ContactCreatedEnvelope, ContactDeletedEnvelope, ContactInfo, ContactMergedEnvelope, ContactNonNullableFields, ContactUpdatedEnvelope, ContactsQueryBuilder, CreateContactOptions, CreateContactResponse, CreateContactResponseNonNullableFields, GetContactOptions, LabelContactResponse, LabelContactResponseNonNullableFields, MergeContactsOptions, MergeContactsResponse, MergeContactsResponseNonNullableFields, QueryContactsOptions, UnlabelContactResponse, UnlabelContactResponseNonNullableFields, UpdateContactOptions, UpdateContactResponse, UpdateContactResponseNonNullableFields } from './contacts-v4-contact-contacts.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function createContact(httpClient: HttpClient): CreateContactSignature;
|
|
7
|
+
interface CreateContactSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new contact.
|
|
10
|
+
*
|
|
11
|
+
* The `info` object must include at least one of the following:
|
|
12
|
+
* - Name
|
|
13
|
+
* - Phone number
|
|
14
|
+
* - Email address
|
|
15
|
+
*
|
|
16
|
+
* By default, if the call contains an email already in use by another contact,
|
|
17
|
+
* the new contact won't be created. To override this behavior, set `allowDuplicates` to `true`.
|
|
18
|
+
* @param - Contact info.
|
|
19
|
+
* @param - Create contact options.
|
|
20
|
+
* @returns Contact.
|
|
21
|
+
*/
|
|
22
|
+
(info: ContactInfo, options?: CreateContactOptions | undefined): Promise<CreateContactResponse & CreateContactResponseNonNullableFields>;
|
|
23
|
+
}
|
|
24
|
+
export declare function updateContact(httpClient: HttpClient): UpdateContactSignature;
|
|
25
|
+
interface UpdateContactSignature {
|
|
26
|
+
/**
|
|
27
|
+
* Updates a contact.
|
|
28
|
+
*
|
|
29
|
+
* Each time the contact is updated,
|
|
30
|
+
* `revision` increments by 1.
|
|
31
|
+
* The existing `revision` must be included when updating the contact.
|
|
32
|
+
* This ensures you're working with the latest contact information,
|
|
33
|
+
* and it prevents unintended overwrites.
|
|
34
|
+
*
|
|
35
|
+
* You can't call Update Contact to update the `primaryEmail` of a contact who is also a member.
|
|
36
|
+
* Instead, use the Members API to update the member's login email, which will also update the contact's primary email.
|
|
37
|
+
*
|
|
38
|
+
* Members are typically linked to contacts, and while they share a relationship, the member ID and contact ID are distinct identifiers. Make sure to specifiy the contact ID when calling Update Contact.
|
|
39
|
+
* @param - ID of the contact to update.
|
|
40
|
+
* @param - Contact info.
|
|
41
|
+
* @param - Revision number.
|
|
42
|
+
* When updating, include the existing `revision`
|
|
43
|
+
* to prevent conflicting updates.
|
|
44
|
+
* @param - Contact update options.
|
|
45
|
+
* @returns Updated contact.
|
|
46
|
+
*/
|
|
47
|
+
(contactId: string, info: ContactInfo, revision: number | null, options?: UpdateContactOptions | undefined): Promise<UpdateContactResponse & UpdateContactResponseNonNullableFields>;
|
|
48
|
+
}
|
|
49
|
+
export declare function mergeContacts(httpClient: HttpClient): MergeContactsSignature;
|
|
50
|
+
interface MergeContactsSignature {
|
|
51
|
+
/**
|
|
52
|
+
* Merges source contacts into a target contact.
|
|
53
|
+
*
|
|
54
|
+
* Merging contacts has the following effects on the target contact:
|
|
55
|
+
*
|
|
56
|
+
* - No target contact data is overwritten or deleted.
|
|
57
|
+
* - Arrays (emails, phone numbers, addresses, and labels) from the source contacts are added to the target contact's arrays.
|
|
58
|
+
* - If you merge more than one source contact, the 1st source contact specified is added first, then the 2nd, and so on.
|
|
59
|
+
* - If there is duplicate information between the target contact and the source contact, the information isn't duplicated in the target contact's arrays.
|
|
60
|
+
*
|
|
61
|
+
* <blockquote class="important">
|
|
62
|
+
*
|
|
63
|
+
* __Important:__
|
|
64
|
+
* Merges cannot be undone.
|
|
65
|
+
* In REST, call Preview Merge Contacts to test before merging.
|
|
66
|
+
*
|
|
67
|
+
* </blockquote>
|
|
68
|
+
*
|
|
69
|
+
* When you merge contacts, source contacts are typically deleted.
|
|
70
|
+
* However, if a source contact is a site member or a Wix user,
|
|
71
|
+
* the merge will fail because site members and Wix users can't be deleted.
|
|
72
|
+
* This means that site members and Wix users can only be specified as target contacts in a merge.
|
|
73
|
+
*
|
|
74
|
+
* After merging, calling Get Contact with a deleted source contact ID returns the target contact ID.
|
|
75
|
+
* Specifying a deleted source contact ID is not supported on any other method.
|
|
76
|
+
*
|
|
77
|
+
* When contacts are merged:
|
|
78
|
+
*
|
|
79
|
+
* - The Contact Merged event is triggered.
|
|
80
|
+
* - The Contact Updated event is triggered for the target contact. `originatedFrom` is set to `merge`.
|
|
81
|
+
* - The Contact Deleted event is triggered for each source contact. `originatedFrom` is set to `merge`.
|
|
82
|
+
* @param - Target contact ID.
|
|
83
|
+
* @param - Target contact revision number, which increments by 1 each time the contact is updated.
|
|
84
|
+
* To prevent conflicting changes,
|
|
85
|
+
* the target contact's current `revision` must be specified.
|
|
86
|
+
* @param - Merge contacts options.
|
|
87
|
+
*/
|
|
88
|
+
(targetContactId: string, targetContactRevision: number | null, options?: MergeContactsOptions | undefined): Promise<MergeContactsResponse & MergeContactsResponseNonNullableFields>;
|
|
89
|
+
}
|
|
90
|
+
export declare function deleteContact(httpClient: HttpClient): DeleteContactSignature;
|
|
91
|
+
interface DeleteContactSignature {
|
|
92
|
+
/**
|
|
93
|
+
* Deletes a contact.
|
|
94
|
+
*
|
|
95
|
+
* Deleting a contact permanently removes it from the contact list.
|
|
96
|
+
* If a contact is also a site member or Wix user, or has a valid billing subscription,
|
|
97
|
+
* the contact can't be deleted. The related site member or Wix user must first be deleted
|
|
98
|
+
* and any valid billing subscriptions must be canceled, before the contact can be deleted.
|
|
99
|
+
*
|
|
100
|
+
* Members are typically linked to contacts, and while they share a relationship, the member ID and contact ID are distinct identifiers.
|
|
101
|
+
* Make sure to specify the contact ID when calling Delete Contact.
|
|
102
|
+
* @param - ID of the contact to delete.
|
|
103
|
+
*/
|
|
104
|
+
(contactId: string): Promise<void>;
|
|
105
|
+
}
|
|
106
|
+
export declare function labelContact(httpClient: HttpClient): LabelContactSignature;
|
|
107
|
+
interface LabelContactSignature {
|
|
108
|
+
/**
|
|
109
|
+
* Adds labels to a contact.
|
|
110
|
+
*
|
|
111
|
+
* Use the Labels API to create or retrieve labels.
|
|
112
|
+
*
|
|
113
|
+
* Members are typically linked to contacts, and while they share a relationship, the member ID and contact ID are distinct identifiers.
|
|
114
|
+
* Make sure to specify the contact ID when calling Label Contact.
|
|
115
|
+
* @param - ID of the contact to add labels to.
|
|
116
|
+
* @param - List of label keys to add to the contact.
|
|
117
|
+
*
|
|
118
|
+
* Label keys must exist to be added to the contact.
|
|
119
|
+
* Use the Labels API to create or retrieve labels.
|
|
120
|
+
* @returns Updated contact.
|
|
121
|
+
*/
|
|
122
|
+
(contactId: string, labelKeys: string[]): Promise<LabelContactResponse & LabelContactResponseNonNullableFields>;
|
|
123
|
+
}
|
|
124
|
+
export declare function unlabelContact(httpClient: HttpClient): UnlabelContactSignature;
|
|
125
|
+
interface UnlabelContactSignature {
|
|
126
|
+
/**
|
|
127
|
+
* Removes labels from a contact.
|
|
128
|
+
*
|
|
129
|
+
* If a label is no longer needed
|
|
130
|
+
* and you want to remove it from all contacts,
|
|
131
|
+
* you can delete by calling Delete Label from the Labels API.
|
|
132
|
+
*
|
|
133
|
+
* Members are typically linked to contacts, and while they share a relationship, the member ID and contact ID are distinct identifiers.
|
|
134
|
+
* Make sure to specify the contact ID when calling Unlabel Contact.
|
|
135
|
+
* @param - ID of the contact to remove labels from.
|
|
136
|
+
* @param - List of label keys to remove from the contact.
|
|
137
|
+
* @returns Updated contact.
|
|
138
|
+
*/
|
|
139
|
+
(contactId: string, labelKeys: string[]): Promise<UnlabelContactResponse & UnlabelContactResponseNonNullableFields>;
|
|
140
|
+
}
|
|
141
|
+
export declare function queryContacts(httpClient: HttpClient): QueryContactsSignature;
|
|
142
|
+
interface QueryContactsSignature {
|
|
143
|
+
/**
|
|
144
|
+
* Creates a query to retrieve a list of contacts.
|
|
145
|
+
*
|
|
146
|
+
* The `queryContacts()` function builds a query to retrieve a list of contacts and returns a `ContactsQueryBuilder` object.
|
|
147
|
+
*
|
|
148
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
149
|
+
*
|
|
150
|
+
* You can refine the query by chaining `ContactsQueryBuilder` functions onto the query. `ContactsQueryBuilder` functions enable you to sort, filter, and control the results `queryContacts()` returns.
|
|
151
|
+
*
|
|
152
|
+
* `queryContacts()` runs with these `ContactsQueryBuilder` defaults, which you can override:
|
|
153
|
+
*
|
|
154
|
+
* - `skip(0)`
|
|
155
|
+
* - `limit(50)`
|
|
156
|
+
* - `descending(\"_createdDate\")`
|
|
157
|
+
*
|
|
158
|
+
* The functions that are chained to `queryContacts()` are applied in the order they are called. For example, if you apply `ascending('info.company')` and then `descending('info.name.last')`, the results are sorted first by the company name, and then, if there are multiple results with the same company, the items are sorted by last name.
|
|
159
|
+
* @param - Query contact options.
|
|
160
|
+
*/
|
|
161
|
+
(options?: QueryContactsOptions | undefined): ContactsQueryBuilder;
|
|
162
|
+
}
|
|
163
|
+
export declare function getContact(httpClient: HttpClient): GetContactSignature;
|
|
164
|
+
interface GetContactSignature {
|
|
165
|
+
/**
|
|
166
|
+
* Retrieves a contact.
|
|
167
|
+
*
|
|
168
|
+
* #### Getting Merged Contacts
|
|
169
|
+
*
|
|
170
|
+
* When a source contact is merged
|
|
171
|
+
* with a target contact, the source contact is deleted.
|
|
172
|
+
* When calling Get Contact for a merged contact,
|
|
173
|
+
* you can use the source or target contact ID.
|
|
174
|
+
* In both bases, the target contact is returned.
|
|
175
|
+
*
|
|
176
|
+
* This is supported only when calling Get Contact on merged contacts.
|
|
177
|
+
* Previously deleted source contact IDs can't be used for any other method.
|
|
178
|
+
* @param - ID of the contact to retrieve.
|
|
179
|
+
* @param - Get contact options.
|
|
180
|
+
* @returns The requested contact.
|
|
181
|
+
*/
|
|
182
|
+
(_id: string, options?: GetContactOptions | undefined): Promise<Contact & ContactNonNullableFields>;
|
|
183
|
+
}
|
|
184
|
+
export declare const onContactCreated: EventDefinition<ContactCreatedEnvelope, "wix.contacts.v4.contact_created">;
|
|
185
|
+
export declare const onContactDeleted: EventDefinition<ContactDeletedEnvelope, "wix.contacts.v4.contact_deleted">;
|
|
186
|
+
export declare const onContactMerged: EventDefinition<ContactMergedEnvelope, "wix.contacts.v4.contact_merged">;
|
|
187
|
+
export declare const onContactUpdated: EventDefinition<ContactUpdatedEnvelope, "wix.contacts.v4.contact_updated">;
|
|
188
|
+
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, Contact, ContactActivity, ContactActivityType, ContactAddedToSegment, ContactAddress, ContactAddressesWrapper, ContactChanged, ContactCreatedEnvelope, ContactDeletedEnvelope, ContactEmail, ContactEmailSubscriptionUpdated, ContactEmailsWrapper, ContactFieldSet, ContactInfo, ContactMerged, ContactMergedEnvelope, ContactName, ContactNonNullableFields, ContactPhone, ContactPhoneSubscriptionUpdated, ContactPhonesWrapper, ContactPicture, ContactPrimaryInfoUpdated, ContactRemovedFromSegment, ContactSource, ContactSourceType, ContactSubmitted, ContactUpdatedEnvelope, ContactsFacet, ContactsFacetType, ContactsQueryBuilder, ContactsQueryResult, CountContactsRequest, CountContactsResponse, CreateContactOptions, CreateContactRequest, CreateContactResponse, CreateContactResponseNonNullableFields, CursorPaging, CursorPagingMetadata, Cursors, DeleteContactRequest, DeleteContactResponse, DomainEvent, DomainEventBodyOneOf, DuplicateContactExists, EmailDeliverabilityStatus, EmailTag, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Error, EventMetadata, ExtendedFieldsWrapper, GeneratePictureUploadUrlRequest, GeneratePictureUploadUrlResponse, GetContactOptions, GetContactRequest, GetContactResponse, GetContactResponseNonNullableFields, GetContactResponseType, GroupInfo, IdentificationData, IdentificationDataIdOneOf, ImageProvider, Item, ItemMetadata, LabelAndUnlabelContactRequest, LabelAndUnlabelContactResponse, LabelContactRequest, LabelContactResponse, LabelContactResponseNonNullableFields, LabelsWrapper, LastActivityUpdate, ListContactIdsBySegmentRequest, ListContactIdsBySegmentResponse, ListContactsRequest, ListContactsResponse, ListFacetsRequest, ListFacetsResponse, LocationsWrapper, MemberInfo, MemberStatus, MergeContactsOptions, MergeContactsRequest, MergeContactsResponse, MergeContactsResponseNonNullableFields, MessageEnvelope, Metadata, Mode, Paging, PagingMetadata, PhoneDeliverabilityStatus, PhoneTag, PreviewMergeContactsRequest, PreviewMergeContactsResponse, PrimaryContactInfo, PrimaryEmail, PrimaryPhone, PrimarySubscriptionStatus, PrivacyStatus, ProfileInfo, Query, QueryContactsOptions, QueryContactsRequest, QueryContactsResponse, QueryContactsResponseNonNullableFields, QueryFacetsRequest, QueryFacetsResponse, RestoreInfo, Role, Search, SearchContactsRequest, SearchContactsResponse, SearchDetails, SearchPagingMethodOneOf, SegmentsWrapper, SessionInfo, SortOrder, Sorting, StreetAddress, Subdivision, SubdivisionType, SubmitOperation, SubscriptionStatus, SyncSubmitContactRequest, SyncSubmitContactResponse, UnlabelContactRequest, UnlabelContactResponse, UnlabelContactResponseNonNullableFields, UpdateContactOptions, UpdateContactRequest, UpdateContactResponse, UpdateContactResponseNonNullableFields, UpsertContactRequest, UpsertContactResponse, UpsertContactResponseAction, UserInfo, WebhookIdentityType, } from './contacts-v4-contact-contacts.universal.js';
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
2
|
+
import { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';
|
|
3
|
+
import { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';
|
|
4
|
+
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
5
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
6
|
+
import { EventDefinition } from '@wix/sdk-types';
|
|
7
|
+
import { createContact as universalCreateContact, deleteContact as universalDeleteContact, getContact as universalGetContact, labelContact as universalLabelContact, mergeContacts as universalMergeContacts, queryContacts as universalQueryContacts, unlabelContact as universalUnlabelContact, updateContact as universalUpdateContact, } from './contacts-v4-contact-contacts.universal.js';
|
|
8
|
+
export const __metadata = { PACKAGE_NAME: '@wix/crm' };
|
|
9
|
+
export function createContact(httpClient) {
|
|
10
|
+
return (info, options) => universalCreateContact(info, options,
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
{ httpClient });
|
|
13
|
+
}
|
|
14
|
+
export function updateContact(httpClient) {
|
|
15
|
+
return (contactId, info, revision, options) => universalUpdateContact(contactId, info, revision, options,
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
{ httpClient });
|
|
18
|
+
}
|
|
19
|
+
export function mergeContacts(httpClient) {
|
|
20
|
+
return (targetContactId, targetContactRevision, options) => universalMergeContacts(targetContactId, targetContactRevision, options,
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
{ httpClient });
|
|
23
|
+
}
|
|
24
|
+
export function deleteContact(httpClient) {
|
|
25
|
+
return (contactId) => universalDeleteContact(contactId,
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
{ httpClient });
|
|
28
|
+
}
|
|
29
|
+
export function labelContact(httpClient) {
|
|
30
|
+
return (contactId, labelKeys) => universalLabelContact(contactId, labelKeys,
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
{ httpClient });
|
|
33
|
+
}
|
|
34
|
+
export function unlabelContact(httpClient) {
|
|
35
|
+
return (contactId, labelKeys) => universalUnlabelContact(contactId, labelKeys,
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
{ httpClient });
|
|
38
|
+
}
|
|
39
|
+
export function queryContacts(httpClient) {
|
|
40
|
+
return (options) => universalQueryContacts(options,
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
{ httpClient });
|
|
43
|
+
}
|
|
44
|
+
export function getContact(httpClient) {
|
|
45
|
+
return (_id, options) => universalGetContact(_id, options,
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
{ httpClient });
|
|
48
|
+
}
|
|
49
|
+
export const onContactCreated = EventDefinition('wix.contacts.v4.contact_created', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
50
|
+
{
|
|
51
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
52
|
+
paths: [
|
|
53
|
+
{ path: 'entity.createdDate' },
|
|
54
|
+
{ path: 'entity.updatedDate' },
|
|
55
|
+
{ path: 'entity.lastActivity.activityDate' },
|
|
56
|
+
{ path: 'entity.lastActivity.date' },
|
|
57
|
+
{ path: 'entity.memberInfo.signupDate' },
|
|
58
|
+
{ path: 'entity.memberInfo.sessionInfo.lastWebLogin' },
|
|
59
|
+
{ path: 'entity.memberInfo.sessionInfo.lastMobileLogin' },
|
|
60
|
+
{ path: 'metadata.eventTime' },
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
transformFn: transformRESTImageToSDKImage,
|
|
65
|
+
paths: [
|
|
66
|
+
{ path: 'entity.picture' },
|
|
67
|
+
{ path: 'entity.info.picture.image' },
|
|
68
|
+
{ path: 'entity.memberInfo.profileInfo.photo' },
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
73
|
+
paths: [{ path: 'entity.info.addresses.items.address' }],
|
|
74
|
+
},
|
|
75
|
+
])))();
|
|
76
|
+
export const onContactDeleted = EventDefinition('wix.contacts.v4.contact_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
77
|
+
{
|
|
78
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
79
|
+
paths: [
|
|
80
|
+
{ path: 'undefined.createdDate' },
|
|
81
|
+
{ path: 'undefined.updatedDate' },
|
|
82
|
+
{ path: 'undefined.lastActivity.activityDate' },
|
|
83
|
+
{ path: 'undefined.lastActivity.date' },
|
|
84
|
+
{ path: 'undefined.memberInfo.signupDate' },
|
|
85
|
+
{ path: 'undefined.memberInfo.sessionInfo.lastWebLogin' },
|
|
86
|
+
{ path: 'undefined.memberInfo.sessionInfo.lastMobileLogin' },
|
|
87
|
+
{ path: 'metadata.eventTime' },
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
transformFn: transformRESTImageToSDKImage,
|
|
92
|
+
paths: [
|
|
93
|
+
{ path: 'undefined.picture' },
|
|
94
|
+
{ path: 'undefined.info.picture.image' },
|
|
95
|
+
{ path: 'undefined.memberInfo.profileInfo.photo' },
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
100
|
+
paths: [{ path: 'undefined.info.addresses.items.address' }],
|
|
101
|
+
},
|
|
102
|
+
])))();
|
|
103
|
+
export const onContactMerged = EventDefinition('wix.contacts.v4.contact_merged', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
104
|
+
{
|
|
105
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
106
|
+
paths: [
|
|
107
|
+
{ path: 'data.targetContact.createdDate' },
|
|
108
|
+
{ path: 'data.targetContact.updatedDate' },
|
|
109
|
+
{ path: 'data.targetContact.lastActivity.activityDate' },
|
|
110
|
+
{ path: 'data.targetContact.lastActivity.date' },
|
|
111
|
+
{ path: 'data.targetContact.memberInfo.signupDate' },
|
|
112
|
+
{ path: 'data.targetContact.memberInfo.sessionInfo.lastWebLogin' },
|
|
113
|
+
{
|
|
114
|
+
path: 'data.targetContact.memberInfo.sessionInfo.lastMobileLogin',
|
|
115
|
+
},
|
|
116
|
+
{ path: 'metadata.eventTime' },
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
transformFn: transformRESTImageToSDKImage,
|
|
121
|
+
paths: [
|
|
122
|
+
{ path: 'data.targetContact.picture' },
|
|
123
|
+
{ path: 'data.targetContact.info.picture.image' },
|
|
124
|
+
{ path: 'data.targetContact.memberInfo.profileInfo.photo' },
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
129
|
+
paths: [{ path: 'data.targetContact.info.addresses.items.address' }],
|
|
130
|
+
},
|
|
131
|
+
])))();
|
|
132
|
+
export const onContactUpdated = EventDefinition('wix.contacts.v4.contact_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
133
|
+
{
|
|
134
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
135
|
+
paths: [
|
|
136
|
+
{ path: 'entity.createdDate' },
|
|
137
|
+
{ path: 'entity.updatedDate' },
|
|
138
|
+
{ path: 'entity.lastActivity.activityDate' },
|
|
139
|
+
{ path: 'entity.lastActivity.date' },
|
|
140
|
+
{ path: 'entity.memberInfo.signupDate' },
|
|
141
|
+
{ path: 'entity.memberInfo.sessionInfo.lastWebLogin' },
|
|
142
|
+
{ path: 'entity.memberInfo.sessionInfo.lastMobileLogin' },
|
|
143
|
+
{ path: 'metadata.eventTime' },
|
|
144
|
+
],
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
transformFn: transformRESTImageToSDKImage,
|
|
148
|
+
paths: [
|
|
149
|
+
{ path: 'entity.picture' },
|
|
150
|
+
{ path: 'entity.info.picture.image' },
|
|
151
|
+
{ path: 'entity.memberInfo.profileInfo.photo' },
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
156
|
+
paths: [{ path: 'entity.info.addresses.items.address' }],
|
|
157
|
+
},
|
|
158
|
+
])))();
|
|
159
|
+
export { Action, AddressTag, ContactActivityType, ContactFieldSet, ContactSourceType, ContactsFacetType, EmailDeliverabilityStatus, EmailTag, GetContactResponseType, ImageProvider, MemberStatus, Mode, PhoneDeliverabilityStatus, PhoneTag, PrivacyStatus, Role, SortOrder, SubdivisionType, SubmitOperation, SubscriptionStatus, UpsertContactResponseAction, WebhookIdentityType, } from './contacts-v4-contact-contacts.universal.js';
|
|
160
|
+
//# sourceMappingURL=contacts-v4-contact-contacts.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts-v4-contact-contacts.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-contact-contacts.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAc,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAwBL,aAAa,IAAI,sBAAsB,EACvC,aAAa,IAAI,sBAAsB,EACvC,UAAU,IAAI,mBAAmB,EACjC,YAAY,IAAI,qBAAqB,EACrC,aAAa,IAAI,sBAAsB,EACvC,aAAa,IAAI,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