@wix/auto_sdk_crm_contacts 1.0.256 → 1.0.258
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/{internal/index.d.ts → cjs/src/contacts-v4-contact-contacts.public.d.ts} +18 -43
- 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/{contacts-v4-contact-contacts.universal-B3uIE5qF.d.mts → cjs/src/contacts-v4-contact-contacts.types.d.ts} +193 -363
- package/build/cjs/src/contacts-v4-contact-contacts.types.js +278 -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 +2398 -0
- package/build/cjs/src/contacts-v4-contact-contacts.universal.js +911 -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/{index.d.ts → es/src/contacts-v4-contact-contacts.public.d.ts} +18 -43
- 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/{contacts-v4-contact-contacts.universal-B3uIE5qF.d.ts → es/src/contacts-v4-contact-contacts.types.d.ts} +193 -363
- package/build/es/src/contacts-v4-contact-contacts.types.js +275 -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 +2398 -0
- package/build/es/src/contacts-v4-contact-contacts.universal.js +877 -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/{index.d.mts → cjs/src/contacts-v4-contact-contacts.public.d.ts} +18 -43
- 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/{contacts-v4-contact-contacts.universal-CdMlf2ui.d.ts → cjs/src/contacts-v4-contact-contacts.types.d.ts} +189 -370
- package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js +278 -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 +2409 -0
- package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js +911 -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/{index.d.mts → internal/es/src/contacts-v4-contact-contacts.public.d.ts} +18 -43
- 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/{contacts-v4-contact-contacts.universal-CdMlf2ui.d.mts → es/src/contacts-v4-contact-contacts.types.d.ts} +189 -370
- package/build/internal/es/src/contacts-v4-contact-contacts.types.js +275 -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 +2409 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.js +877 -0
- package/build/internal/es/src/contacts-v4-contact-contacts.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.js +0 -1338
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -1281
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js +0 -1338
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -1281
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -914
- package/build/internal/meta.d.ts +0 -914
- package/build/internal/meta.js +0 -618
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -584
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -914
- package/build/meta.d.ts +0 -914
- package/build/meta.js +0 -618
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -584
- package/build/meta.mjs.map +0 -1
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getContact = exports.queryContacts = exports.unlabelContact = exports.labelContact = exports.deleteContact = exports.mergeContacts = exports.updateContact = exports.createContact = void 0;
|
|
4
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
+
const float_1 = require("@wix/sdk-runtime/transformations/float");
|
|
6
|
+
const float_2 = require("@wix/sdk-runtime/transformations/float");
|
|
7
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
8
|
+
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
9
|
+
const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
|
|
10
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
11
|
+
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
12
|
+
function resolveComWixpressContactsCoreApiV4ContactsServiceV4Url(opts) {
|
|
13
|
+
const domainToMappings = {
|
|
14
|
+
'www._base_domain_': [
|
|
15
|
+
{
|
|
16
|
+
srcPath: '/_api/contacts/v4/contacts',
|
|
17
|
+
destPath: '/v4/contacts',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
srcPath: '/_api/contacts/v4/bulk',
|
|
21
|
+
destPath: '/v4/bulk',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
'www.wixapis.com': [
|
|
25
|
+
{
|
|
26
|
+
srcPath: '/contacts/v4/contacts',
|
|
27
|
+
destPath: '/v4/contacts',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
srcPath: '/contacts/v4/bulk',
|
|
31
|
+
destPath: '/v4/bulk',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
'manage._base_domain_': [
|
|
35
|
+
{
|
|
36
|
+
srcPath: '/_api/contacts/v4/contacts',
|
|
37
|
+
destPath: '/v4/contacts',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
srcPath: '/_api/contacts/v4/bulk',
|
|
41
|
+
destPath: '/v4/bulk',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
'manage.nownia.com': [
|
|
45
|
+
{
|
|
46
|
+
srcPath: '/_api/contacts/v4/contacts',
|
|
47
|
+
destPath: '/v4/contacts',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
srcPath: '/_api/contacts/v4/bulk',
|
|
51
|
+
destPath: '/v4/bulk',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
};
|
|
55
|
+
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
56
|
+
}
|
|
57
|
+
const PACKAGE_NAME = '@wix/auto_sdk_crm_contacts';
|
|
58
|
+
/**
|
|
59
|
+
* Creates a new contact.
|
|
60
|
+
*
|
|
61
|
+
* The `info` object must include at least one of the following:
|
|
62
|
+
* - Name
|
|
63
|
+
* - Phone number
|
|
64
|
+
* - Email address
|
|
65
|
+
*
|
|
66
|
+
* By default, if the call contains an email already in use by another contact,
|
|
67
|
+
* the new contact won't be created. To override this behavior, set `allowDuplicates` to `true`.
|
|
68
|
+
*/
|
|
69
|
+
function createContact(payload) {
|
|
70
|
+
function __createContact({ host }) {
|
|
71
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
72
|
+
{
|
|
73
|
+
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
74
|
+
paths: [
|
|
75
|
+
{ path: 'info.addresses.items.address.geocode.latitude' },
|
|
76
|
+
{ path: 'info.addresses.items.address.geocode.longitude' },
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
81
|
+
paths: [{ path: 'info.picture.image.urlExpirationDate' }],
|
|
82
|
+
},
|
|
83
|
+
]);
|
|
84
|
+
const metadata = {
|
|
85
|
+
entityFqdn: 'wix.contacts.v4.contact',
|
|
86
|
+
method: 'POST',
|
|
87
|
+
methodFqn: 'com.wixpress.contacts.core.api.v4.ContactsServiceV4.CreateContact',
|
|
88
|
+
packageName: PACKAGE_NAME,
|
|
89
|
+
url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
|
|
90
|
+
protoPath: '/v4/contacts',
|
|
91
|
+
data: serializedData,
|
|
92
|
+
host,
|
|
93
|
+
}),
|
|
94
|
+
data: serializedData,
|
|
95
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
96
|
+
{
|
|
97
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
98
|
+
paths: [
|
|
99
|
+
{ path: 'contact.createdDate' },
|
|
100
|
+
{ path: 'contact.updatedDate' },
|
|
101
|
+
{ path: 'contact.lastActivity.activityDate' },
|
|
102
|
+
{ path: 'contact.lastActivity.date' },
|
|
103
|
+
{ path: 'contact.picture.urlExpirationDate' },
|
|
104
|
+
{ path: 'contact.info.picture.image.urlExpirationDate' },
|
|
105
|
+
{ path: 'contact.memberInfo.signupDate' },
|
|
106
|
+
{
|
|
107
|
+
path: 'contact.memberInfo.profileInfo.photo.urlExpirationDate',
|
|
108
|
+
},
|
|
109
|
+
{ path: 'contact.memberInfo.sessionInfo.lastWebLogin' },
|
|
110
|
+
{ path: 'contact.memberInfo.sessionInfo.lastMobileLogin' },
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
115
|
+
paths: [
|
|
116
|
+
{ path: 'contact.info.addresses.items.address.geocode.latitude' },
|
|
117
|
+
{
|
|
118
|
+
path: 'contact.info.addresses.items.address.geocode.longitude',
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
]),
|
|
123
|
+
};
|
|
124
|
+
return metadata;
|
|
125
|
+
}
|
|
126
|
+
return __createContact;
|
|
127
|
+
}
|
|
128
|
+
exports.createContact = createContact;
|
|
129
|
+
/**
|
|
130
|
+
* Updates a contact.
|
|
131
|
+
*
|
|
132
|
+
* Each time the contact is updated,
|
|
133
|
+
* `revision` increments by 1.
|
|
134
|
+
* The existing `revision` must be included when updating the contact.
|
|
135
|
+
* This ensures you're working with the latest contact information,
|
|
136
|
+
* and it prevents unintended overwrites.
|
|
137
|
+
*
|
|
138
|
+
* You can't call Update Contact to update the `primaryEmail` of a contact who is also a member.
|
|
139
|
+
* Instead, use the Members API to update the member's login email, which will also update the contact's primary email.
|
|
140
|
+
*
|
|
141
|
+
* Members are typically linked to contacts, and while they share a relationship, the member ID and contact ID are distinct identifiers. Make sure to specify the contact ID when calling Update Contact.
|
|
142
|
+
*/
|
|
143
|
+
function updateContact(payload) {
|
|
144
|
+
function __updateContact({ host }) {
|
|
145
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
146
|
+
{
|
|
147
|
+
transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
|
|
148
|
+
paths: [{ path: 'fieldMask' }],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
152
|
+
paths: [
|
|
153
|
+
{ path: 'info.addresses.items.address.geocode.latitude' },
|
|
154
|
+
{ path: 'info.addresses.items.address.geocode.longitude' },
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
159
|
+
paths: [{ path: 'info.picture.image.urlExpirationDate' }],
|
|
160
|
+
},
|
|
161
|
+
]);
|
|
162
|
+
const metadata = {
|
|
163
|
+
entityFqdn: 'wix.contacts.v4.contact',
|
|
164
|
+
method: 'PATCH',
|
|
165
|
+
methodFqn: 'com.wixpress.contacts.core.api.v4.ContactsServiceV4.UpdateContact',
|
|
166
|
+
packageName: PACKAGE_NAME,
|
|
167
|
+
url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
|
|
168
|
+
protoPath: '/v4/contacts/{contactId}',
|
|
169
|
+
data: serializedData,
|
|
170
|
+
host,
|
|
171
|
+
}),
|
|
172
|
+
data: serializedData,
|
|
173
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
174
|
+
{
|
|
175
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
176
|
+
paths: [
|
|
177
|
+
{ path: 'contact.createdDate' },
|
|
178
|
+
{ path: 'contact.updatedDate' },
|
|
179
|
+
{ path: 'contact.lastActivity.activityDate' },
|
|
180
|
+
{ path: 'contact.lastActivity.date' },
|
|
181
|
+
{ path: 'contact.picture.urlExpirationDate' },
|
|
182
|
+
{ path: 'contact.info.picture.image.urlExpirationDate' },
|
|
183
|
+
{ path: 'contact.memberInfo.signupDate' },
|
|
184
|
+
{
|
|
185
|
+
path: 'contact.memberInfo.profileInfo.photo.urlExpirationDate',
|
|
186
|
+
},
|
|
187
|
+
{ path: 'contact.memberInfo.sessionInfo.lastWebLogin' },
|
|
188
|
+
{ path: 'contact.memberInfo.sessionInfo.lastMobileLogin' },
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
193
|
+
paths: [
|
|
194
|
+
{ path: 'contact.info.addresses.items.address.geocode.latitude' },
|
|
195
|
+
{
|
|
196
|
+
path: 'contact.info.addresses.items.address.geocode.longitude',
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
},
|
|
200
|
+
]),
|
|
201
|
+
};
|
|
202
|
+
return metadata;
|
|
203
|
+
}
|
|
204
|
+
return __updateContact;
|
|
205
|
+
}
|
|
206
|
+
exports.updateContact = updateContact;
|
|
207
|
+
/**
|
|
208
|
+
* Merges source contacts into a target contact.
|
|
209
|
+
*
|
|
210
|
+
* Merging contacts has the following effects on the target contact:
|
|
211
|
+
*
|
|
212
|
+
* - No target contact data is overwritten or deleted.
|
|
213
|
+
* - Arrays (emails, phone numbers, addresses, and labels) from the source contacts are added to the target contact's arrays.
|
|
214
|
+
* - If you merge more than one source contact, the 1st source contact specified is added first, then the 2nd, and so on.
|
|
215
|
+
* - If there is duplicate information between the target contact and the source contact, the information isn't duplicated in the target contact's arrays.
|
|
216
|
+
*
|
|
217
|
+
* <blockquote class="important">
|
|
218
|
+
*
|
|
219
|
+
* __Important:__
|
|
220
|
+
* Merges cannot be undone.
|
|
221
|
+
* In REST, call Preview Merge Contacts to test before merging.
|
|
222
|
+
*
|
|
223
|
+
* </blockquote>
|
|
224
|
+
*
|
|
225
|
+
* When you merge contacts, source contacts are typically deleted.
|
|
226
|
+
* However, if a source contact is a site member or a Wix user,
|
|
227
|
+
* the merge will fail because site members and Wix users can't be deleted.
|
|
228
|
+
* This means that site members and Wix users can only be specified as target contacts in a merge.
|
|
229
|
+
*
|
|
230
|
+
* After merging, calling Get Contact with a deleted source contact ID returns the target contact ID.
|
|
231
|
+
* Specifying a deleted source contact ID is not supported on any other method.
|
|
232
|
+
*
|
|
233
|
+
* When contacts are merged:
|
|
234
|
+
*
|
|
235
|
+
* - The Contact Merged event is triggered.
|
|
236
|
+
* - The Contact Updated event is triggered for the target contact. `originatedFrom` is set to `merge`.
|
|
237
|
+
* - The Contact Deleted event is triggered for each source contact. `originatedFrom` is set to `merge`.
|
|
238
|
+
*/
|
|
239
|
+
function mergeContacts(payload) {
|
|
240
|
+
function __mergeContacts({ host }) {
|
|
241
|
+
const metadata = {
|
|
242
|
+
entityFqdn: 'wix.contacts.v4.contact',
|
|
243
|
+
method: 'POST',
|
|
244
|
+
methodFqn: 'com.wixpress.contacts.core.api.v4.ContactsServiceV4.MergeContacts',
|
|
245
|
+
packageName: PACKAGE_NAME,
|
|
246
|
+
url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
|
|
247
|
+
protoPath: '/v4/contacts/{targetContactId}/merge',
|
|
248
|
+
data: payload,
|
|
249
|
+
host,
|
|
250
|
+
}),
|
|
251
|
+
data: payload,
|
|
252
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
253
|
+
{
|
|
254
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
255
|
+
paths: [
|
|
256
|
+
{ path: 'contact.createdDate' },
|
|
257
|
+
{ path: 'contact.updatedDate' },
|
|
258
|
+
{ path: 'contact.lastActivity.activityDate' },
|
|
259
|
+
{ path: 'contact.lastActivity.date' },
|
|
260
|
+
{ path: 'contact.picture.urlExpirationDate' },
|
|
261
|
+
{ path: 'contact.info.picture.image.urlExpirationDate' },
|
|
262
|
+
{ path: 'contact.memberInfo.signupDate' },
|
|
263
|
+
{
|
|
264
|
+
path: 'contact.memberInfo.profileInfo.photo.urlExpirationDate',
|
|
265
|
+
},
|
|
266
|
+
{ path: 'contact.memberInfo.sessionInfo.lastWebLogin' },
|
|
267
|
+
{ path: 'contact.memberInfo.sessionInfo.lastMobileLogin' },
|
|
268
|
+
],
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
272
|
+
paths: [
|
|
273
|
+
{ path: 'contact.info.addresses.items.address.geocode.latitude' },
|
|
274
|
+
{
|
|
275
|
+
path: 'contact.info.addresses.items.address.geocode.longitude',
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
},
|
|
279
|
+
]),
|
|
280
|
+
};
|
|
281
|
+
return metadata;
|
|
282
|
+
}
|
|
283
|
+
return __mergeContacts;
|
|
284
|
+
}
|
|
285
|
+
exports.mergeContacts = mergeContacts;
|
|
286
|
+
/**
|
|
287
|
+
* Deletes a contact.
|
|
288
|
+
*
|
|
289
|
+
* Deleting a contact permanently removes it from the contact list.
|
|
290
|
+
* If a contact is also a site member or Wix user, or has a valid billing subscription,
|
|
291
|
+
* the contact can't be deleted. The related site member or Wix user must first be deleted
|
|
292
|
+
* and any valid billing subscriptions must be canceled, before the contact can be deleted.
|
|
293
|
+
*
|
|
294
|
+
* Members are typically linked to contacts, and while they share a relationship, the member ID and contact ID are distinct identifiers.
|
|
295
|
+
* Make sure to specify the contact ID when calling Delete Contact.
|
|
296
|
+
*/
|
|
297
|
+
function deleteContact(payload) {
|
|
298
|
+
function __deleteContact({ host }) {
|
|
299
|
+
const metadata = {
|
|
300
|
+
entityFqdn: 'wix.contacts.v4.contact',
|
|
301
|
+
method: 'DELETE',
|
|
302
|
+
methodFqn: 'com.wixpress.contacts.core.api.v4.ContactsServiceV4.DeleteContact',
|
|
303
|
+
packageName: PACKAGE_NAME,
|
|
304
|
+
url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
|
|
305
|
+
protoPath: '/v4/contacts/{contactId}',
|
|
306
|
+
data: payload,
|
|
307
|
+
host,
|
|
308
|
+
}),
|
|
309
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
310
|
+
};
|
|
311
|
+
return metadata;
|
|
312
|
+
}
|
|
313
|
+
return __deleteContact;
|
|
314
|
+
}
|
|
315
|
+
exports.deleteContact = deleteContact;
|
|
316
|
+
/**
|
|
317
|
+
* Adds labels to a contact.
|
|
318
|
+
*
|
|
319
|
+
* Use the Labels API to create or retrieve labels.
|
|
320
|
+
*
|
|
321
|
+
* Members are typically linked to contacts, and while they share a relationship, the member ID and contact ID are distinct identifiers.
|
|
322
|
+
* Make sure to specify the contact ID when calling Label Contact.
|
|
323
|
+
*/
|
|
324
|
+
function labelContact(payload) {
|
|
325
|
+
function __labelContact({ host }) {
|
|
326
|
+
const metadata = {
|
|
327
|
+
entityFqdn: 'wix.contacts.v4.contact',
|
|
328
|
+
method: 'POST',
|
|
329
|
+
methodFqn: 'com.wixpress.contacts.core.api.v4.ContactsServiceV4.LabelContact',
|
|
330
|
+
packageName: PACKAGE_NAME,
|
|
331
|
+
url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
|
|
332
|
+
protoPath: '/v4/contacts/{contactId}/labels',
|
|
333
|
+
data: payload,
|
|
334
|
+
host,
|
|
335
|
+
}),
|
|
336
|
+
data: payload,
|
|
337
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
338
|
+
{
|
|
339
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
340
|
+
paths: [
|
|
341
|
+
{ path: 'contact.createdDate' },
|
|
342
|
+
{ path: 'contact.updatedDate' },
|
|
343
|
+
{ path: 'contact.lastActivity.activityDate' },
|
|
344
|
+
{ path: 'contact.lastActivity.date' },
|
|
345
|
+
{ path: 'contact.picture.urlExpirationDate' },
|
|
346
|
+
{ path: 'contact.info.picture.image.urlExpirationDate' },
|
|
347
|
+
{ path: 'contact.memberInfo.signupDate' },
|
|
348
|
+
{
|
|
349
|
+
path: 'contact.memberInfo.profileInfo.photo.urlExpirationDate',
|
|
350
|
+
},
|
|
351
|
+
{ path: 'contact.memberInfo.sessionInfo.lastWebLogin' },
|
|
352
|
+
{ path: 'contact.memberInfo.sessionInfo.lastMobileLogin' },
|
|
353
|
+
],
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
357
|
+
paths: [
|
|
358
|
+
{ path: 'contact.info.addresses.items.address.geocode.latitude' },
|
|
359
|
+
{
|
|
360
|
+
path: 'contact.info.addresses.items.address.geocode.longitude',
|
|
361
|
+
},
|
|
362
|
+
],
|
|
363
|
+
},
|
|
364
|
+
]),
|
|
365
|
+
};
|
|
366
|
+
return metadata;
|
|
367
|
+
}
|
|
368
|
+
return __labelContact;
|
|
369
|
+
}
|
|
370
|
+
exports.labelContact = labelContact;
|
|
371
|
+
/**
|
|
372
|
+
* Removes labels from a contact.
|
|
373
|
+
*
|
|
374
|
+
* If a label is no longer needed
|
|
375
|
+
* and you want to remove it from all contacts,
|
|
376
|
+
* you can delete by calling Delete Label from the Labels API.
|
|
377
|
+
*
|
|
378
|
+
* Members are typically linked to contacts, and while they share a relationship, the member ID and contact ID are distinct identifiers.
|
|
379
|
+
* Make sure to specify the contact ID when calling Unlabel Contact.
|
|
380
|
+
*/
|
|
381
|
+
function unlabelContact(payload) {
|
|
382
|
+
function __unlabelContact({ host }) {
|
|
383
|
+
const metadata = {
|
|
384
|
+
entityFqdn: 'wix.contacts.v4.contact',
|
|
385
|
+
method: 'DELETE',
|
|
386
|
+
methodFqn: 'com.wixpress.contacts.core.api.v4.ContactsServiceV4.UnlabelContact',
|
|
387
|
+
packageName: PACKAGE_NAME,
|
|
388
|
+
url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
|
|
389
|
+
protoPath: '/v4/contacts/{contactId}/labels',
|
|
390
|
+
data: payload,
|
|
391
|
+
host,
|
|
392
|
+
}),
|
|
393
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
394
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
395
|
+
{
|
|
396
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
397
|
+
paths: [
|
|
398
|
+
{ path: 'contact.createdDate' },
|
|
399
|
+
{ path: 'contact.updatedDate' },
|
|
400
|
+
{ path: 'contact.lastActivity.activityDate' },
|
|
401
|
+
{ path: 'contact.lastActivity.date' },
|
|
402
|
+
{ path: 'contact.picture.urlExpirationDate' },
|
|
403
|
+
{ path: 'contact.info.picture.image.urlExpirationDate' },
|
|
404
|
+
{ path: 'contact.memberInfo.signupDate' },
|
|
405
|
+
{
|
|
406
|
+
path: 'contact.memberInfo.profileInfo.photo.urlExpirationDate',
|
|
407
|
+
},
|
|
408
|
+
{ path: 'contact.memberInfo.sessionInfo.lastWebLogin' },
|
|
409
|
+
{ path: 'contact.memberInfo.sessionInfo.lastMobileLogin' },
|
|
410
|
+
],
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
414
|
+
paths: [
|
|
415
|
+
{ path: 'contact.info.addresses.items.address.geocode.latitude' },
|
|
416
|
+
{
|
|
417
|
+
path: 'contact.info.addresses.items.address.geocode.longitude',
|
|
418
|
+
},
|
|
419
|
+
],
|
|
420
|
+
},
|
|
421
|
+
]),
|
|
422
|
+
};
|
|
423
|
+
return metadata;
|
|
424
|
+
}
|
|
425
|
+
return __unlabelContact;
|
|
426
|
+
}
|
|
427
|
+
exports.unlabelContact = unlabelContact;
|
|
428
|
+
/**
|
|
429
|
+
* Creates a query to retrieve a list of contacts.
|
|
430
|
+
*
|
|
431
|
+
* The `queryContacts()` function builds a query to retrieve a list of contacts and returns a `ContactsQueryBuilder` object.
|
|
432
|
+
*
|
|
433
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
434
|
+
*
|
|
435
|
+
* 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.
|
|
436
|
+
*
|
|
437
|
+
* `queryContacts()` runs with these `ContactsQueryBuilder` defaults, which you can override:
|
|
438
|
+
*
|
|
439
|
+
* - `skip(0)`
|
|
440
|
+
* - `limit(50)`
|
|
441
|
+
* - `descending("_createdDate")`
|
|
442
|
+
*
|
|
443
|
+
* 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.
|
|
444
|
+
*/
|
|
445
|
+
function queryContacts(payload) {
|
|
446
|
+
function __queryContacts({ host }) {
|
|
447
|
+
const metadata = {
|
|
448
|
+
entityFqdn: 'wix.contacts.v4.contact',
|
|
449
|
+
method: 'POST',
|
|
450
|
+
methodFqn: 'com.wixpress.contacts.core.api.v4.ContactsServiceV4.QueryContacts',
|
|
451
|
+
packageName: PACKAGE_NAME,
|
|
452
|
+
url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
|
|
453
|
+
protoPath: '/v4/contacts/query',
|
|
454
|
+
data: payload,
|
|
455
|
+
host,
|
|
456
|
+
}),
|
|
457
|
+
data: payload,
|
|
458
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
459
|
+
{
|
|
460
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
461
|
+
paths: [
|
|
462
|
+
{ path: 'contacts.createdDate' },
|
|
463
|
+
{ path: 'contacts.updatedDate' },
|
|
464
|
+
{ path: 'contacts.lastActivity.activityDate' },
|
|
465
|
+
{ path: 'contacts.lastActivity.date' },
|
|
466
|
+
{ path: 'contacts.picture.urlExpirationDate' },
|
|
467
|
+
{ path: 'contacts.info.picture.image.urlExpirationDate' },
|
|
468
|
+
{ path: 'contacts.memberInfo.signupDate' },
|
|
469
|
+
{
|
|
470
|
+
path: 'contacts.memberInfo.profileInfo.photo.urlExpirationDate',
|
|
471
|
+
},
|
|
472
|
+
{ path: 'contacts.memberInfo.sessionInfo.lastWebLogin' },
|
|
473
|
+
{ path: 'contacts.memberInfo.sessionInfo.lastMobileLogin' },
|
|
474
|
+
],
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
478
|
+
paths: [
|
|
479
|
+
{
|
|
480
|
+
path: 'contacts.info.addresses.items.address.geocode.latitude',
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
path: 'contacts.info.addresses.items.address.geocode.longitude',
|
|
484
|
+
},
|
|
485
|
+
],
|
|
486
|
+
},
|
|
487
|
+
]),
|
|
488
|
+
};
|
|
489
|
+
return metadata;
|
|
490
|
+
}
|
|
491
|
+
return __queryContacts;
|
|
492
|
+
}
|
|
493
|
+
exports.queryContacts = queryContacts;
|
|
494
|
+
/**
|
|
495
|
+
* Retrieves a contact.
|
|
496
|
+
*
|
|
497
|
+
* #### Getting Merged Contacts
|
|
498
|
+
*
|
|
499
|
+
* When a source contact is merged
|
|
500
|
+
* with a target contact, the source contact is deleted.
|
|
501
|
+
* When calling Get Contact for a merged contact,
|
|
502
|
+
* you can use the source or target contact ID.
|
|
503
|
+
* In both bases, the target contact is returned.
|
|
504
|
+
*
|
|
505
|
+
* This is supported only when calling Get Contact on merged contacts.
|
|
506
|
+
* Previously deleted source contact IDs can't be used for any other method.
|
|
507
|
+
*/
|
|
508
|
+
function getContact(payload) {
|
|
509
|
+
function __getContact({ host }) {
|
|
510
|
+
const metadata = {
|
|
511
|
+
entityFqdn: 'wix.contacts.v4.contact',
|
|
512
|
+
method: 'GET',
|
|
513
|
+
methodFqn: 'com.wixpress.contacts.core.api.v4.ContactsServiceV4.GetContact',
|
|
514
|
+
packageName: PACKAGE_NAME,
|
|
515
|
+
url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
|
|
516
|
+
protoPath: '/v4/contacts/{id}',
|
|
517
|
+
data: payload,
|
|
518
|
+
host,
|
|
519
|
+
}),
|
|
520
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
521
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
522
|
+
{
|
|
523
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
524
|
+
paths: [
|
|
525
|
+
{ path: 'contact.createdDate' },
|
|
526
|
+
{ path: 'contact.updatedDate' },
|
|
527
|
+
{ path: 'contact.lastActivity.activityDate' },
|
|
528
|
+
{ path: 'contact.lastActivity.date' },
|
|
529
|
+
{ path: 'contact.picture.urlExpirationDate' },
|
|
530
|
+
{ path: 'contact.info.picture.image.urlExpirationDate' },
|
|
531
|
+
{ path: 'contact.memberInfo.signupDate' },
|
|
532
|
+
{
|
|
533
|
+
path: 'contact.memberInfo.profileInfo.photo.urlExpirationDate',
|
|
534
|
+
},
|
|
535
|
+
{ path: 'contact.memberInfo.sessionInfo.lastWebLogin' },
|
|
536
|
+
{ path: 'contact.memberInfo.sessionInfo.lastMobileLogin' },
|
|
537
|
+
],
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
541
|
+
paths: [
|
|
542
|
+
{ path: 'contact.info.addresses.items.address.geocode.latitude' },
|
|
543
|
+
{
|
|
544
|
+
path: 'contact.info.addresses.items.address.geocode.longitude',
|
|
545
|
+
},
|
|
546
|
+
],
|
|
547
|
+
},
|
|
548
|
+
]),
|
|
549
|
+
};
|
|
550
|
+
return metadata;
|
|
551
|
+
}
|
|
552
|
+
return __getContact;
|
|
553
|
+
}
|
|
554
|
+
exports.getContact = getContact;
|
|
555
|
+
//# sourceMappingURL=contacts-v4-contact-contacts.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts-v4-contact-contacts.http.js","sourceRoot":"","sources":["../../../src/contacts-v4-contact-contacts.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,uDAAuD,CAC9D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,cAAc;aACzB;YACD;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,UAAU;aACrB;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,cAAc;aACzB;YACD;gBACE,OAAO,EAAE,mBAAmB;gBAC5B,QAAQ,EAAE,UAAU;aACrB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,cAAc;aACzB;YACD;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,UAAU;aACrB;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,cAAc;aACzB;YACD;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,UAAU;aACrB;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CA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;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,IAAA,gCAAiB,EAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,qBAAqB,EAAE;wBAC/B,EAAE,IAAI,EAAE,qBAAqB,EAAE;wBAC/B,EAAE,IAAI,EAAE,mCAAmC,EAAE;wBAC7C,EAAE,IAAI,EAAE,2BAA2B,EAAE;wBACrC,EAAE,IAAI,EAAE,mCAAmC,EAAE;wBAC7C,EAAE,IAAI,EAAE,8CAA8C,EAAE;wBACxD,EAAE,IAAI,EAAE,+BAA+B,EAAE;wBACzC;4BACE,IAAI,EAAE,wDAAwD;yBAC/D;wBACD,EAAE,IAAI,EAAE,6CAA6C,EAAE;wBACvD,EAAE,IAAI,EAAE,gDAAgD,EAAE;qBAC3D;iBACF;gBACD;oBACE,WAAW,EAAE,oCAA4B;oBACzC,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,uDAAuD,EAAE;wBACjE;4BACE,IAAI,EAAE,wDAAwD;yBAC/D;qBACF;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAjDD,gCAiDC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as ambassadorWixContactsV4ContactTypes from './contacts-v4-contact-contacts.types.js';
|
|
2
|
+
import * as ambassadorWixContactsV4ContactUniversalTypes from './contacts-v4-contact-contacts.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function createContact(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixContactsV4ContactUniversalTypes.CreateContactRequest, ambassadorWixContactsV4ContactTypes.CreateContactRequest, ambassadorWixContactsV4ContactUniversalTypes.CreateContactResponse, ambassadorWixContactsV4ContactTypes.CreateContactResponse>;
|
|
14
|
+
export declare function updateContact(): __PublicMethodMetaInfo<'PATCH', {
|
|
15
|
+
contactId: string;
|
|
16
|
+
}, ambassadorWixContactsV4ContactUniversalTypes.UpdateContactRequest, ambassadorWixContactsV4ContactTypes.UpdateContactRequest, ambassadorWixContactsV4ContactUniversalTypes.UpdateContactResponse, ambassadorWixContactsV4ContactTypes.UpdateContactResponse>;
|
|
17
|
+
export declare function mergeContacts(): __PublicMethodMetaInfo<'POST', {
|
|
18
|
+
targetContactId: string;
|
|
19
|
+
}, ambassadorWixContactsV4ContactUniversalTypes.MergeContactsRequest, ambassadorWixContactsV4ContactTypes.MergeContactsRequest, ambassadorWixContactsV4ContactUniversalTypes.MergeContactsResponse, ambassadorWixContactsV4ContactTypes.MergeContactsResponse>;
|
|
20
|
+
export declare function deleteContact(): __PublicMethodMetaInfo<'DELETE', {
|
|
21
|
+
contactId: string;
|
|
22
|
+
}, ambassadorWixContactsV4ContactUniversalTypes.DeleteContactRequest, ambassadorWixContactsV4ContactTypes.DeleteContactRequest, ambassadorWixContactsV4ContactUniversalTypes.DeleteContactResponse, ambassadorWixContactsV4ContactTypes.DeleteContactResponse>;
|
|
23
|
+
export declare function labelContact(): __PublicMethodMetaInfo<'POST', {
|
|
24
|
+
contactId: string;
|
|
25
|
+
}, ambassadorWixContactsV4ContactUniversalTypes.LabelContactRequest, ambassadorWixContactsV4ContactTypes.LabelContactRequest, ambassadorWixContactsV4ContactUniversalTypes.LabelContactResponse, ambassadorWixContactsV4ContactTypes.LabelContactResponse>;
|
|
26
|
+
export declare function unlabelContact(): __PublicMethodMetaInfo<'DELETE', {
|
|
27
|
+
contactId: string;
|
|
28
|
+
}, ambassadorWixContactsV4ContactUniversalTypes.UnlabelContactRequest, ambassadorWixContactsV4ContactTypes.UnlabelContactRequest, ambassadorWixContactsV4ContactUniversalTypes.UnlabelContactResponse, ambassadorWixContactsV4ContactTypes.UnlabelContactResponse>;
|
|
29
|
+
export declare function queryContacts(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixContactsV4ContactUniversalTypes.QueryContactsRequest, ambassadorWixContactsV4ContactTypes.QueryContactsRequest, ambassadorWixContactsV4ContactUniversalTypes.QueryContactsResponse, ambassadorWixContactsV4ContactTypes.QueryContactsResponse>;
|
|
30
|
+
export declare function getContact(): __PublicMethodMetaInfo<'GET', {
|
|
31
|
+
id: string;
|
|
32
|
+
}, ambassadorWixContactsV4ContactUniversalTypes.GetContactRequest, ambassadorWixContactsV4ContactTypes.GetContactRequest, ambassadorWixContactsV4ContactUniversalTypes.GetContactResponse, ambassadorWixContactsV4ContactTypes.GetContactResponse>;
|