@wix/auto_sdk_crm_contacts-v-5 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/contacts-v5-contact-contacts-v-5.universal-78Io5ULf.d.ts +4256 -0
- package/build/cjs/index.d.ts +522 -0
- package/build/cjs/index.js +3749 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +38 -0
- package/build/cjs/index.typings.js +3445 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2929 -0
- package/build/cjs/meta.js +2558 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/schemas.d.ts +5693 -0
- package/build/cjs/schemas.js +8216 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/contacts-v5-contact-contacts-v-5.universal-78Io5ULf.d.mts +4256 -0
- package/build/es/index.d.mts +522 -0
- package/build/es/index.mjs +3666 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +38 -0
- package/build/es/index.typings.mjs +3361 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2929 -0
- package/build/es/meta.mjs +2473 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/schemas.d.mts +5693 -0
- package/build/es/schemas.mjs +8116 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/contacts-v5-contact-contacts-v-5.universal-78Io5ULf.d.ts +4256 -0
- package/build/internal/cjs/index.d.ts +522 -0
- package/build/internal/cjs/index.js +3749 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +38 -0
- package/build/internal/cjs/index.typings.js +3445 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2929 -0
- package/build/internal/cjs/meta.js +2558 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/schemas.d.ts +5693 -0
- package/build/internal/cjs/schemas.js +8216 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/contacts-v5-contact-contacts-v-5.universal-78Io5ULf.d.mts +4256 -0
- package/build/internal/es/index.d.mts +522 -0
- package/build/internal/es/index.mjs +3666 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +38 -0
- package/build/internal/es/index.typings.mjs +3361 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2929 -0
- package/build/internal/es/meta.mjs +2473 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/schemas.d.mts +5693 -0
- package/build/internal/es/schemas.mjs +8116 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +61 -0
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,2473 @@
|
|
|
1
|
+
// src/contacts-v5-contact-contacts-v-5.http.ts
|
|
2
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
4
|
+
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
5
|
+
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
6
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
7
|
+
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
8
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
9
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
+
function resolveWixContactsV5ContactsUrl(opts) {
|
|
11
|
+
const domainToMappings = {
|
|
12
|
+
"bo._base_domain_": [
|
|
13
|
+
{
|
|
14
|
+
srcPath: "/_api/contacts-v5-app",
|
|
15
|
+
destPath: ""
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"wixbo.ai": [
|
|
19
|
+
{
|
|
20
|
+
srcPath: "/_api/contacts-v5-app",
|
|
21
|
+
destPath: ""
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"wix-bo.com": [
|
|
25
|
+
{
|
|
26
|
+
srcPath: "/_api/contacts-v5-app",
|
|
27
|
+
destPath: ""
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"manage._base_domain_": [
|
|
31
|
+
{
|
|
32
|
+
srcPath: "/_api/contacts/v5/contacts",
|
|
33
|
+
destPath: "/v5/contacts"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
srcPath: "/_api/contacts/v5/bulk/contacts",
|
|
37
|
+
destPath: "/v5/bulk/contacts"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
_: [
|
|
41
|
+
{
|
|
42
|
+
srcPath: "/_api/contacts/v5/contacts",
|
|
43
|
+
destPath: "/v5/contacts"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
srcPath: "/_api/contacts/v5/bulk/contacts",
|
|
47
|
+
destPath: "/v5/bulk/contacts"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"*.dev.wix-code.com": [
|
|
51
|
+
{
|
|
52
|
+
srcPath: "/_api/contacts/v5/contacts",
|
|
53
|
+
destPath: "/v5/contacts"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
srcPath: "/_api/contacts/v5/bulk/contacts",
|
|
57
|
+
destPath: "/v5/bulk/contacts"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"www.wixapis.com": [
|
|
61
|
+
{
|
|
62
|
+
srcPath: "/contacts/v5/contacts",
|
|
63
|
+
destPath: "/v5/contacts"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
srcPath: "/contacts/v5/bulk/contacts",
|
|
67
|
+
destPath: "/v5/bulk/contacts"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
};
|
|
71
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
72
|
+
}
|
|
73
|
+
function resolveWixContactsV5ContactSubscriptionsUrl(opts) {
|
|
74
|
+
const domainToMappings = {
|
|
75
|
+
"bo._base_domain_": [
|
|
76
|
+
{
|
|
77
|
+
srcPath: "/_api/contacts-v5-app",
|
|
78
|
+
destPath: ""
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"wixbo.ai": [
|
|
82
|
+
{
|
|
83
|
+
srcPath: "/_api/contacts-v5-app",
|
|
84
|
+
destPath: ""
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"wix-bo.com": [
|
|
88
|
+
{
|
|
89
|
+
srcPath: "/_api/contacts-v5-app",
|
|
90
|
+
destPath: ""
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"manage._base_domain_": [
|
|
94
|
+
{
|
|
95
|
+
srcPath: "/_api/contacts/v5/contacts",
|
|
96
|
+
destPath: "/v5/contacts"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
srcPath: "/_api/contacts/v5/bulk/contacts",
|
|
100
|
+
destPath: "/v5/bulk/contacts"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
_: [
|
|
104
|
+
{
|
|
105
|
+
srcPath: "/_api/contacts/v5/contacts",
|
|
106
|
+
destPath: "/v5/contacts"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
srcPath: "/_api/contacts/v5/bulk/contacts",
|
|
110
|
+
destPath: "/v5/bulk/contacts"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"*.dev.wix-code.com": [
|
|
114
|
+
{
|
|
115
|
+
srcPath: "/_api/contacts/v5/contacts",
|
|
116
|
+
destPath: "/v5/contacts"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
srcPath: "/_api/contacts/v5/bulk/contacts",
|
|
120
|
+
destPath: "/v5/bulk/contacts"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"www.wixapis.com": [
|
|
124
|
+
{
|
|
125
|
+
srcPath: "/contacts/v5/contacts",
|
|
126
|
+
destPath: "/v5/contacts"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
srcPath: "/contacts/v5/bulk/contacts",
|
|
130
|
+
destPath: "/v5/bulk/contacts"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
};
|
|
134
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
135
|
+
}
|
|
136
|
+
var PACKAGE_NAME = "@wix/auto_sdk_crm_contacts-v-5";
|
|
137
|
+
function bulkUpdateContactSubscriptions(payload) {
|
|
138
|
+
function __bulkUpdateContactSubscriptions({ host }) {
|
|
139
|
+
const metadata = {
|
|
140
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
141
|
+
method: "POST",
|
|
142
|
+
methodFqn: "wix.contacts.v5.ContactSubscriptions.BulkUpdateContactSubscriptions",
|
|
143
|
+
packageName: PACKAGE_NAME,
|
|
144
|
+
migrationOptions: {
|
|
145
|
+
optInTransformResponse: true
|
|
146
|
+
},
|
|
147
|
+
url: resolveWixContactsV5ContactSubscriptionsUrl({
|
|
148
|
+
protoPath: "/v5/bulk/contacts/subscriptions/update",
|
|
149
|
+
data: payload,
|
|
150
|
+
host
|
|
151
|
+
}),
|
|
152
|
+
data: payload
|
|
153
|
+
};
|
|
154
|
+
return metadata;
|
|
155
|
+
}
|
|
156
|
+
return __bulkUpdateContactSubscriptions;
|
|
157
|
+
}
|
|
158
|
+
function createContact(payload) {
|
|
159
|
+
function __createContact({ host }) {
|
|
160
|
+
const serializedData = transformPaths(payload, [
|
|
161
|
+
{
|
|
162
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
163
|
+
paths: [
|
|
164
|
+
{ path: "contact.createdDate" },
|
|
165
|
+
{ path: "contact.updatedDate" },
|
|
166
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
167
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
168
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
169
|
+
{ path: "contact.lastActivity.date" },
|
|
170
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
171
|
+
{ path: "contact.memberInfo.profileInfo.photo.urlExpirationDate" },
|
|
172
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
173
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
178
|
+
paths: [
|
|
179
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
180
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
]);
|
|
184
|
+
const metadata = {
|
|
185
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
186
|
+
method: "POST",
|
|
187
|
+
methodFqn: "wix.contacts.v5.Contacts.CreateContact",
|
|
188
|
+
packageName: PACKAGE_NAME,
|
|
189
|
+
migrationOptions: {
|
|
190
|
+
optInTransformResponse: true
|
|
191
|
+
},
|
|
192
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
193
|
+
protoPath: "/v5/contacts",
|
|
194
|
+
data: serializedData,
|
|
195
|
+
host
|
|
196
|
+
}),
|
|
197
|
+
data: serializedData,
|
|
198
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
199
|
+
{
|
|
200
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
201
|
+
paths: [
|
|
202
|
+
{ path: "contact.createdDate" },
|
|
203
|
+
{ path: "contact.updatedDate" },
|
|
204
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
205
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
206
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
207
|
+
{ path: "contact.lastActivity.date" },
|
|
208
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
209
|
+
{
|
|
210
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
211
|
+
},
|
|
212
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
213
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
218
|
+
paths: [
|
|
219
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
220
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
])
|
|
224
|
+
};
|
|
225
|
+
return metadata;
|
|
226
|
+
}
|
|
227
|
+
return __createContact;
|
|
228
|
+
}
|
|
229
|
+
function getContact(payload) {
|
|
230
|
+
function __getContact({ host }) {
|
|
231
|
+
const metadata = {
|
|
232
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
233
|
+
method: "GET",
|
|
234
|
+
methodFqn: "wix.contacts.v5.Contacts.GetContact",
|
|
235
|
+
packageName: PACKAGE_NAME,
|
|
236
|
+
migrationOptions: {
|
|
237
|
+
optInTransformResponse: true
|
|
238
|
+
},
|
|
239
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
240
|
+
protoPath: "/v5/contacts/{contactId}",
|
|
241
|
+
data: payload,
|
|
242
|
+
host
|
|
243
|
+
}),
|
|
244
|
+
params: toURLSearchParams(payload),
|
|
245
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
246
|
+
{
|
|
247
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
248
|
+
paths: [
|
|
249
|
+
{ path: "contact.createdDate" },
|
|
250
|
+
{ path: "contact.updatedDate" },
|
|
251
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
252
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
253
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
254
|
+
{ path: "contact.lastActivity.date" },
|
|
255
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
256
|
+
{
|
|
257
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
258
|
+
},
|
|
259
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
260
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
265
|
+
paths: [
|
|
266
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
267
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
])
|
|
271
|
+
};
|
|
272
|
+
return metadata;
|
|
273
|
+
}
|
|
274
|
+
return __getContact;
|
|
275
|
+
}
|
|
276
|
+
function updateContact(payload) {
|
|
277
|
+
function __updateContact({ host }) {
|
|
278
|
+
const serializedData = transformPaths(payload, [
|
|
279
|
+
{
|
|
280
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
281
|
+
paths: [{ path: "fieldMask" }]
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
285
|
+
paths: [
|
|
286
|
+
{ path: "contact.createdDate" },
|
|
287
|
+
{ path: "contact.updatedDate" },
|
|
288
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
289
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
290
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
291
|
+
{ path: "contact.lastActivity.date" },
|
|
292
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
293
|
+
{ path: "contact.memberInfo.profileInfo.photo.urlExpirationDate" },
|
|
294
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
295
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
300
|
+
paths: [
|
|
301
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
302
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
]);
|
|
306
|
+
const metadata = {
|
|
307
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
308
|
+
method: "PATCH",
|
|
309
|
+
methodFqn: "wix.contacts.v5.Contacts.UpdateContact",
|
|
310
|
+
packageName: PACKAGE_NAME,
|
|
311
|
+
migrationOptions: {
|
|
312
|
+
optInTransformResponse: true
|
|
313
|
+
},
|
|
314
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
315
|
+
protoPath: "/v5/contacts/{contact.id}",
|
|
316
|
+
data: serializedData,
|
|
317
|
+
host
|
|
318
|
+
}),
|
|
319
|
+
data: serializedData,
|
|
320
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
321
|
+
{
|
|
322
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
323
|
+
paths: [
|
|
324
|
+
{ path: "contact.createdDate" },
|
|
325
|
+
{ path: "contact.updatedDate" },
|
|
326
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
327
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
328
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
329
|
+
{ path: "contact.lastActivity.date" },
|
|
330
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
331
|
+
{
|
|
332
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
333
|
+
},
|
|
334
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
335
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
336
|
+
]
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
340
|
+
paths: [
|
|
341
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
342
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
])
|
|
346
|
+
};
|
|
347
|
+
return metadata;
|
|
348
|
+
}
|
|
349
|
+
return __updateContact;
|
|
350
|
+
}
|
|
351
|
+
function upsertContact(payload) {
|
|
352
|
+
function __upsertContact({ host }) {
|
|
353
|
+
const serializedData = transformPaths(payload, [
|
|
354
|
+
{
|
|
355
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
356
|
+
paths: [{ path: "fieldMask" }]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
360
|
+
paths: [
|
|
361
|
+
{ path: "contact.createdDate" },
|
|
362
|
+
{ path: "contact.updatedDate" },
|
|
363
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
364
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
365
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
366
|
+
{ path: "contact.lastActivity.date" },
|
|
367
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
368
|
+
{ path: "contact.memberInfo.profileInfo.photo.urlExpirationDate" },
|
|
369
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
370
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
375
|
+
paths: [
|
|
376
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
377
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
]);
|
|
381
|
+
const metadata = {
|
|
382
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
383
|
+
method: "POST",
|
|
384
|
+
methodFqn: "wix.contacts.v5.Contacts.UpsertContact",
|
|
385
|
+
packageName: PACKAGE_NAME,
|
|
386
|
+
migrationOptions: {
|
|
387
|
+
optInTransformResponse: true
|
|
388
|
+
},
|
|
389
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
390
|
+
protoPath: "/v5/contacts/upsert",
|
|
391
|
+
data: serializedData,
|
|
392
|
+
host
|
|
393
|
+
}),
|
|
394
|
+
data: serializedData,
|
|
395
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
396
|
+
{
|
|
397
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
398
|
+
paths: [
|
|
399
|
+
{ path: "contact.createdDate" },
|
|
400
|
+
{ path: "contact.updatedDate" },
|
|
401
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
402
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
403
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
404
|
+
{ path: "contact.lastActivity.date" },
|
|
405
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
406
|
+
{
|
|
407
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
408
|
+
},
|
|
409
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
410
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
411
|
+
]
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
415
|
+
paths: [
|
|
416
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
417
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
418
|
+
]
|
|
419
|
+
}
|
|
420
|
+
])
|
|
421
|
+
};
|
|
422
|
+
return metadata;
|
|
423
|
+
}
|
|
424
|
+
return __upsertContact;
|
|
425
|
+
}
|
|
426
|
+
function updateContactTags(payload) {
|
|
427
|
+
function __updateContactTags({ host }) {
|
|
428
|
+
const metadata = {
|
|
429
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
430
|
+
method: "POST",
|
|
431
|
+
methodFqn: "wix.contacts.v5.Contacts.UpdateContactTags",
|
|
432
|
+
packageName: PACKAGE_NAME,
|
|
433
|
+
migrationOptions: {
|
|
434
|
+
optInTransformResponse: true
|
|
435
|
+
},
|
|
436
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
437
|
+
protoPath: "/v5/contacts/{contactId}/update-tags",
|
|
438
|
+
data: payload,
|
|
439
|
+
host
|
|
440
|
+
}),
|
|
441
|
+
data: payload,
|
|
442
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
443
|
+
{
|
|
444
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
445
|
+
paths: [
|
|
446
|
+
{ path: "contact.createdDate" },
|
|
447
|
+
{ path: "contact.updatedDate" },
|
|
448
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
449
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
450
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
451
|
+
{ path: "contact.lastActivity.date" },
|
|
452
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
453
|
+
{
|
|
454
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
455
|
+
},
|
|
456
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
457
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
458
|
+
]
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
462
|
+
paths: [
|
|
463
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
464
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
465
|
+
]
|
|
466
|
+
}
|
|
467
|
+
])
|
|
468
|
+
};
|
|
469
|
+
return metadata;
|
|
470
|
+
}
|
|
471
|
+
return __updateContactTags;
|
|
472
|
+
}
|
|
473
|
+
function mergeContacts(payload) {
|
|
474
|
+
function __mergeContacts({ host }) {
|
|
475
|
+
const serializedData = transformPaths(payload, [
|
|
476
|
+
{
|
|
477
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
478
|
+
paths: [{ path: "fieldMask" }]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
482
|
+
paths: [
|
|
483
|
+
{ path: "targetContact.createdDate" },
|
|
484
|
+
{ path: "targetContact.updatedDate" },
|
|
485
|
+
{ path: "targetContact.email.subscriptionStatus.updatedDate" },
|
|
486
|
+
{ path: "targetContact.phone.subscriptionStatus.updatedDate" },
|
|
487
|
+
{ path: "targetContact.image.urlExpirationDate" },
|
|
488
|
+
{ path: "targetContact.lastActivity.date" },
|
|
489
|
+
{ path: "targetContact.memberInfo.signupDate" },
|
|
490
|
+
{
|
|
491
|
+
path: "targetContact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
492
|
+
},
|
|
493
|
+
{ path: "targetContact.memberInfo.sessionInfo.lastWebLogin" },
|
|
494
|
+
{ path: "targetContact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
499
|
+
paths: [
|
|
500
|
+
{ path: "targetContact.addresses.address.geocode.latitude" },
|
|
501
|
+
{ path: "targetContact.addresses.address.geocode.longitude" }
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
]);
|
|
505
|
+
const metadata = {
|
|
506
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
507
|
+
method: "POST",
|
|
508
|
+
methodFqn: "wix.contacts.v5.Contacts.MergeContacts",
|
|
509
|
+
packageName: PACKAGE_NAME,
|
|
510
|
+
migrationOptions: {
|
|
511
|
+
optInTransformResponse: true
|
|
512
|
+
},
|
|
513
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
514
|
+
protoPath: "/v5/contacts/{targetContactId}/merge",
|
|
515
|
+
data: serializedData,
|
|
516
|
+
host
|
|
517
|
+
}),
|
|
518
|
+
data: serializedData,
|
|
519
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
520
|
+
{
|
|
521
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
522
|
+
paths: [
|
|
523
|
+
{ path: "contact.createdDate" },
|
|
524
|
+
{ path: "contact.updatedDate" },
|
|
525
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
526
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
527
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
528
|
+
{ path: "contact.lastActivity.date" },
|
|
529
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
530
|
+
{
|
|
531
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
532
|
+
},
|
|
533
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
534
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
535
|
+
]
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
539
|
+
paths: [
|
|
540
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
541
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
542
|
+
]
|
|
543
|
+
}
|
|
544
|
+
])
|
|
545
|
+
};
|
|
546
|
+
return metadata;
|
|
547
|
+
}
|
|
548
|
+
return __mergeContacts;
|
|
549
|
+
}
|
|
550
|
+
function deleteContact(payload) {
|
|
551
|
+
function __deleteContact({ host }) {
|
|
552
|
+
const metadata = {
|
|
553
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
554
|
+
method: "DELETE",
|
|
555
|
+
methodFqn: "wix.contacts.v5.Contacts.DeleteContact",
|
|
556
|
+
packageName: PACKAGE_NAME,
|
|
557
|
+
migrationOptions: {
|
|
558
|
+
optInTransformResponse: true
|
|
559
|
+
},
|
|
560
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
561
|
+
protoPath: "/v5/contacts/{contactId}",
|
|
562
|
+
data: payload,
|
|
563
|
+
host
|
|
564
|
+
}),
|
|
565
|
+
params: toURLSearchParams(payload)
|
|
566
|
+
};
|
|
567
|
+
return metadata;
|
|
568
|
+
}
|
|
569
|
+
return __deleteContact;
|
|
570
|
+
}
|
|
571
|
+
function findMatchingContacts(payload) {
|
|
572
|
+
function __findMatchingContacts({ host }) {
|
|
573
|
+
const metadata = {
|
|
574
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
575
|
+
method: "GET",
|
|
576
|
+
methodFqn: "wix.contacts.v5.Contacts.FindMatchingContacts",
|
|
577
|
+
packageName: PACKAGE_NAME,
|
|
578
|
+
migrationOptions: {
|
|
579
|
+
optInTransformResponse: true
|
|
580
|
+
},
|
|
581
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
582
|
+
protoPath: "/v5/contacts/find-matching",
|
|
583
|
+
data: payload,
|
|
584
|
+
host
|
|
585
|
+
}),
|
|
586
|
+
params: toURLSearchParams(payload),
|
|
587
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
588
|
+
{
|
|
589
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
590
|
+
paths: [
|
|
591
|
+
{ path: "contacts.createdDate" },
|
|
592
|
+
{ path: "contacts.updatedDate" },
|
|
593
|
+
{ path: "contacts.email.subscriptionStatus.updatedDate" },
|
|
594
|
+
{ path: "contacts.phone.subscriptionStatus.updatedDate" },
|
|
595
|
+
{ path: "contacts.image.urlExpirationDate" },
|
|
596
|
+
{ path: "contacts.lastActivity.date" },
|
|
597
|
+
{ path: "contacts.memberInfo.signupDate" },
|
|
598
|
+
{
|
|
599
|
+
path: "contacts.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
600
|
+
},
|
|
601
|
+
{ path: "contacts.memberInfo.sessionInfo.lastWebLogin" },
|
|
602
|
+
{ path: "contacts.memberInfo.sessionInfo.lastMobileLogin" }
|
|
603
|
+
]
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
607
|
+
paths: [
|
|
608
|
+
{ path: "contacts.addresses.address.geocode.latitude" },
|
|
609
|
+
{ path: "contacts.addresses.address.geocode.longitude" }
|
|
610
|
+
]
|
|
611
|
+
}
|
|
612
|
+
])
|
|
613
|
+
};
|
|
614
|
+
return metadata;
|
|
615
|
+
}
|
|
616
|
+
return __findMatchingContacts;
|
|
617
|
+
}
|
|
618
|
+
function queryContacts(payload) {
|
|
619
|
+
function __queryContacts({ host }) {
|
|
620
|
+
const metadata = {
|
|
621
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
622
|
+
method: "GET",
|
|
623
|
+
methodFqn: "wix.contacts.v5.Contacts.QueryContacts",
|
|
624
|
+
packageName: PACKAGE_NAME,
|
|
625
|
+
migrationOptions: {
|
|
626
|
+
optInTransformResponse: true
|
|
627
|
+
},
|
|
628
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
629
|
+
protoPath: "/v5/contacts/query",
|
|
630
|
+
data: payload,
|
|
631
|
+
host
|
|
632
|
+
}),
|
|
633
|
+
params: toURLSearchParams(payload, true),
|
|
634
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
635
|
+
{
|
|
636
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
637
|
+
paths: [
|
|
638
|
+
{ path: "contacts.createdDate" },
|
|
639
|
+
{ path: "contacts.updatedDate" },
|
|
640
|
+
{ path: "contacts.email.subscriptionStatus.updatedDate" },
|
|
641
|
+
{ path: "contacts.phone.subscriptionStatus.updatedDate" },
|
|
642
|
+
{ path: "contacts.image.urlExpirationDate" },
|
|
643
|
+
{ path: "contacts.lastActivity.date" },
|
|
644
|
+
{ path: "contacts.memberInfo.signupDate" },
|
|
645
|
+
{
|
|
646
|
+
path: "contacts.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
647
|
+
},
|
|
648
|
+
{ path: "contacts.memberInfo.sessionInfo.lastWebLogin" },
|
|
649
|
+
{ path: "contacts.memberInfo.sessionInfo.lastMobileLogin" }
|
|
650
|
+
]
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
654
|
+
paths: [
|
|
655
|
+
{ path: "contacts.addresses.address.geocode.latitude" },
|
|
656
|
+
{ path: "contacts.addresses.address.geocode.longitude" }
|
|
657
|
+
]
|
|
658
|
+
}
|
|
659
|
+
]),
|
|
660
|
+
fallback: [
|
|
661
|
+
{
|
|
662
|
+
method: "POST",
|
|
663
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
664
|
+
protoPath: "/v5/contacts/query",
|
|
665
|
+
data: payload,
|
|
666
|
+
host
|
|
667
|
+
}),
|
|
668
|
+
data: payload
|
|
669
|
+
}
|
|
670
|
+
]
|
|
671
|
+
};
|
|
672
|
+
return metadata;
|
|
673
|
+
}
|
|
674
|
+
return __queryContacts;
|
|
675
|
+
}
|
|
676
|
+
function searchContacts(payload) {
|
|
677
|
+
function __searchContacts({ host }) {
|
|
678
|
+
const serializedData = transformPaths(payload, [
|
|
679
|
+
{
|
|
680
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
681
|
+
paths: [
|
|
682
|
+
{ path: "search.aggregations.range.buckets.from" },
|
|
683
|
+
{ path: "search.aggregations.range.buckets.to" },
|
|
684
|
+
{
|
|
685
|
+
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
689
|
+
}
|
|
690
|
+
]
|
|
691
|
+
}
|
|
692
|
+
]);
|
|
693
|
+
const metadata = {
|
|
694
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
695
|
+
method: "GET",
|
|
696
|
+
methodFqn: "wix.contacts.v5.Contacts.SearchContacts",
|
|
697
|
+
packageName: PACKAGE_NAME,
|
|
698
|
+
migrationOptions: {
|
|
699
|
+
optInTransformResponse: true
|
|
700
|
+
},
|
|
701
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
702
|
+
protoPath: "/v5/contacts/search",
|
|
703
|
+
data: serializedData,
|
|
704
|
+
host
|
|
705
|
+
}),
|
|
706
|
+
params: toURLSearchParams(serializedData, true),
|
|
707
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
708
|
+
{
|
|
709
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
710
|
+
paths: [
|
|
711
|
+
{ path: "contacts.createdDate" },
|
|
712
|
+
{ path: "contacts.updatedDate" },
|
|
713
|
+
{ path: "contacts.email.subscriptionStatus.updatedDate" },
|
|
714
|
+
{ path: "contacts.phone.subscriptionStatus.updatedDate" },
|
|
715
|
+
{ path: "contacts.image.urlExpirationDate" },
|
|
716
|
+
{ path: "contacts.lastActivity.date" },
|
|
717
|
+
{ path: "contacts.memberInfo.signupDate" },
|
|
718
|
+
{
|
|
719
|
+
path: "contacts.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
720
|
+
},
|
|
721
|
+
{ path: "contacts.memberInfo.sessionInfo.lastWebLogin" },
|
|
722
|
+
{ path: "contacts.memberInfo.sessionInfo.lastMobileLogin" }
|
|
723
|
+
]
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
727
|
+
paths: [
|
|
728
|
+
{ path: "contacts.addresses.address.geocode.latitude" },
|
|
729
|
+
{ path: "contacts.addresses.address.geocode.longitude" },
|
|
730
|
+
{ path: "aggregationData.results.ranges.results.from" },
|
|
731
|
+
{ path: "aggregationData.results.ranges.results.to" },
|
|
732
|
+
{
|
|
733
|
+
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
737
|
+
},
|
|
738
|
+
{ path: "aggregationData.results.scalar.value" },
|
|
739
|
+
{
|
|
740
|
+
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
741
|
+
}
|
|
742
|
+
]
|
|
743
|
+
}
|
|
744
|
+
]),
|
|
745
|
+
fallback: [
|
|
746
|
+
{
|
|
747
|
+
method: "POST",
|
|
748
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
749
|
+
protoPath: "/v5/contacts/search",
|
|
750
|
+
data: serializedData,
|
|
751
|
+
host
|
|
752
|
+
}),
|
|
753
|
+
data: serializedData
|
|
754
|
+
}
|
|
755
|
+
]
|
|
756
|
+
};
|
|
757
|
+
return metadata;
|
|
758
|
+
}
|
|
759
|
+
return __searchContacts;
|
|
760
|
+
}
|
|
761
|
+
function countContacts(payload) {
|
|
762
|
+
function __countContacts({ host }) {
|
|
763
|
+
const metadata = {
|
|
764
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
765
|
+
method: "POST",
|
|
766
|
+
methodFqn: "wix.contacts.v5.Contacts.CountContacts",
|
|
767
|
+
packageName: PACKAGE_NAME,
|
|
768
|
+
migrationOptions: {
|
|
769
|
+
optInTransformResponse: true
|
|
770
|
+
},
|
|
771
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
772
|
+
protoPath: "/v5/contacts/count",
|
|
773
|
+
data: payload,
|
|
774
|
+
host
|
|
775
|
+
}),
|
|
776
|
+
data: payload
|
|
777
|
+
};
|
|
778
|
+
return metadata;
|
|
779
|
+
}
|
|
780
|
+
return __countContacts;
|
|
781
|
+
}
|
|
782
|
+
function generateContactImageUploadUrl(payload) {
|
|
783
|
+
function __generateContactImageUploadUrl({ host }) {
|
|
784
|
+
const metadata = {
|
|
785
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
786
|
+
method: "POST",
|
|
787
|
+
methodFqn: "wix.contacts.v5.Contacts.GenerateContactImageUploadUrl",
|
|
788
|
+
packageName: PACKAGE_NAME,
|
|
789
|
+
migrationOptions: {
|
|
790
|
+
optInTransformResponse: true
|
|
791
|
+
},
|
|
792
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
793
|
+
protoPath: "/v5/contacts/{contactId}/image/upload-url",
|
|
794
|
+
data: payload,
|
|
795
|
+
host
|
|
796
|
+
}),
|
|
797
|
+
data: payload
|
|
798
|
+
};
|
|
799
|
+
return metadata;
|
|
800
|
+
}
|
|
801
|
+
return __generateContactImageUploadUrl;
|
|
802
|
+
}
|
|
803
|
+
function addContactAdditionalEmail(payload) {
|
|
804
|
+
function __addContactAdditionalEmail({ host }) {
|
|
805
|
+
const metadata = {
|
|
806
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
807
|
+
method: "POST",
|
|
808
|
+
methodFqn: "wix.contacts.v5.Contacts.AddContactAdditionalEmail",
|
|
809
|
+
packageName: PACKAGE_NAME,
|
|
810
|
+
migrationOptions: {
|
|
811
|
+
optInTransformResponse: true
|
|
812
|
+
},
|
|
813
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
814
|
+
protoPath: "/v5/contacts/{contactId}/additional-emails",
|
|
815
|
+
data: payload,
|
|
816
|
+
host
|
|
817
|
+
}),
|
|
818
|
+
data: payload,
|
|
819
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
820
|
+
{
|
|
821
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
822
|
+
paths: [
|
|
823
|
+
{ path: "contact.createdDate" },
|
|
824
|
+
{ path: "contact.updatedDate" },
|
|
825
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
826
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
827
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
828
|
+
{ path: "contact.lastActivity.date" },
|
|
829
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
830
|
+
{
|
|
831
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
832
|
+
},
|
|
833
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
834
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
835
|
+
]
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
839
|
+
paths: [
|
|
840
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
841
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
842
|
+
]
|
|
843
|
+
}
|
|
844
|
+
])
|
|
845
|
+
};
|
|
846
|
+
return metadata;
|
|
847
|
+
}
|
|
848
|
+
return __addContactAdditionalEmail;
|
|
849
|
+
}
|
|
850
|
+
function addContactAdditionalPhone(payload) {
|
|
851
|
+
function __addContactAdditionalPhone({ host }) {
|
|
852
|
+
const metadata = {
|
|
853
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
854
|
+
method: "POST",
|
|
855
|
+
methodFqn: "wix.contacts.v5.Contacts.AddContactAdditionalPhone",
|
|
856
|
+
packageName: PACKAGE_NAME,
|
|
857
|
+
migrationOptions: {
|
|
858
|
+
optInTransformResponse: true
|
|
859
|
+
},
|
|
860
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
861
|
+
protoPath: "/v5/contacts/{contactId}/additional-phones",
|
|
862
|
+
data: payload,
|
|
863
|
+
host
|
|
864
|
+
}),
|
|
865
|
+
data: payload,
|
|
866
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
867
|
+
{
|
|
868
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
869
|
+
paths: [
|
|
870
|
+
{ path: "contact.createdDate" },
|
|
871
|
+
{ path: "contact.updatedDate" },
|
|
872
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
873
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
874
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
875
|
+
{ path: "contact.lastActivity.date" },
|
|
876
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
877
|
+
{
|
|
878
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
879
|
+
},
|
|
880
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
881
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
882
|
+
]
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
886
|
+
paths: [
|
|
887
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
888
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
889
|
+
]
|
|
890
|
+
}
|
|
891
|
+
])
|
|
892
|
+
};
|
|
893
|
+
return metadata;
|
|
894
|
+
}
|
|
895
|
+
return __addContactAdditionalPhone;
|
|
896
|
+
}
|
|
897
|
+
function addContactAddress(payload) {
|
|
898
|
+
function __addContactAddress({ host }) {
|
|
899
|
+
const serializedData = transformPaths(payload, [
|
|
900
|
+
{
|
|
901
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
902
|
+
paths: [
|
|
903
|
+
{ path: "address.address.geocode.latitude" },
|
|
904
|
+
{ path: "address.address.geocode.longitude" }
|
|
905
|
+
]
|
|
906
|
+
}
|
|
907
|
+
]);
|
|
908
|
+
const metadata = {
|
|
909
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
910
|
+
method: "POST",
|
|
911
|
+
methodFqn: "wix.contacts.v5.Contacts.AddContactAddress",
|
|
912
|
+
packageName: PACKAGE_NAME,
|
|
913
|
+
migrationOptions: {
|
|
914
|
+
optInTransformResponse: true
|
|
915
|
+
},
|
|
916
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
917
|
+
protoPath: "/v5/contacts/{contactId}/addresses",
|
|
918
|
+
data: serializedData,
|
|
919
|
+
host
|
|
920
|
+
}),
|
|
921
|
+
data: serializedData,
|
|
922
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
923
|
+
{
|
|
924
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
925
|
+
paths: [
|
|
926
|
+
{ path: "contact.createdDate" },
|
|
927
|
+
{ path: "contact.updatedDate" },
|
|
928
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
929
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
930
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
931
|
+
{ path: "contact.lastActivity.date" },
|
|
932
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
933
|
+
{
|
|
934
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
935
|
+
},
|
|
936
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
937
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
938
|
+
]
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
942
|
+
paths: [
|
|
943
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
944
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
945
|
+
]
|
|
946
|
+
}
|
|
947
|
+
])
|
|
948
|
+
};
|
|
949
|
+
return metadata;
|
|
950
|
+
}
|
|
951
|
+
return __addContactAddress;
|
|
952
|
+
}
|
|
953
|
+
function deleteContactAddress(payload) {
|
|
954
|
+
function __deleteContactAddress({ host }) {
|
|
955
|
+
const metadata = {
|
|
956
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
957
|
+
method: "DELETE",
|
|
958
|
+
methodFqn: "wix.contacts.v5.Contacts.DeleteContactAddress",
|
|
959
|
+
packageName: PACKAGE_NAME,
|
|
960
|
+
migrationOptions: {
|
|
961
|
+
optInTransformResponse: true
|
|
962
|
+
},
|
|
963
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
964
|
+
protoPath: "/v5/contacts/{contactId}/addresses/{addressId}",
|
|
965
|
+
data: payload,
|
|
966
|
+
host
|
|
967
|
+
}),
|
|
968
|
+
params: toURLSearchParams(payload),
|
|
969
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
970
|
+
{
|
|
971
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
972
|
+
paths: [
|
|
973
|
+
{ path: "contact.createdDate" },
|
|
974
|
+
{ path: "contact.updatedDate" },
|
|
975
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
976
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
977
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
978
|
+
{ path: "contact.lastActivity.date" },
|
|
979
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
980
|
+
{
|
|
981
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
982
|
+
},
|
|
983
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
984
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
985
|
+
]
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
989
|
+
paths: [
|
|
990
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
991
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
992
|
+
]
|
|
993
|
+
}
|
|
994
|
+
])
|
|
995
|
+
};
|
|
996
|
+
return metadata;
|
|
997
|
+
}
|
|
998
|
+
return __deleteContactAddress;
|
|
999
|
+
}
|
|
1000
|
+
function updateContactAddress(payload) {
|
|
1001
|
+
function __updateContactAddress({ host }) {
|
|
1002
|
+
const serializedData = transformPaths(payload, [
|
|
1003
|
+
{
|
|
1004
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1005
|
+
paths: [
|
|
1006
|
+
{ path: "address.address.geocode.latitude" },
|
|
1007
|
+
{ path: "address.address.geocode.longitude" }
|
|
1008
|
+
]
|
|
1009
|
+
}
|
|
1010
|
+
]);
|
|
1011
|
+
const metadata = {
|
|
1012
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1013
|
+
method: "PATCH",
|
|
1014
|
+
methodFqn: "wix.contacts.v5.Contacts.UpdateContactAddress",
|
|
1015
|
+
packageName: PACKAGE_NAME,
|
|
1016
|
+
migrationOptions: {
|
|
1017
|
+
optInTransformResponse: true
|
|
1018
|
+
},
|
|
1019
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1020
|
+
protoPath: "/v5/contacts/{contactId}/addresses/{address.id}",
|
|
1021
|
+
data: serializedData,
|
|
1022
|
+
host
|
|
1023
|
+
}),
|
|
1024
|
+
data: serializedData,
|
|
1025
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1026
|
+
{
|
|
1027
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1028
|
+
paths: [
|
|
1029
|
+
{ path: "contact.createdDate" },
|
|
1030
|
+
{ path: "contact.updatedDate" },
|
|
1031
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
1032
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
1033
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
1034
|
+
{ path: "contact.lastActivity.date" },
|
|
1035
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
1036
|
+
{
|
|
1037
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
1038
|
+
},
|
|
1039
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
1040
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
1041
|
+
]
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1045
|
+
paths: [
|
|
1046
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
1047
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
1048
|
+
]
|
|
1049
|
+
}
|
|
1050
|
+
])
|
|
1051
|
+
};
|
|
1052
|
+
return metadata;
|
|
1053
|
+
}
|
|
1054
|
+
return __updateContactAddress;
|
|
1055
|
+
}
|
|
1056
|
+
function bulkCreateContacts(payload) {
|
|
1057
|
+
function __bulkCreateContacts({ host }) {
|
|
1058
|
+
const serializedData = transformPaths(payload, [
|
|
1059
|
+
{
|
|
1060
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1061
|
+
paths: [
|
|
1062
|
+
{ path: "contacts.createdDate" },
|
|
1063
|
+
{ path: "contacts.updatedDate" },
|
|
1064
|
+
{ path: "contacts.email.subscriptionStatus.updatedDate" },
|
|
1065
|
+
{ path: "contacts.phone.subscriptionStatus.updatedDate" },
|
|
1066
|
+
{ path: "contacts.image.urlExpirationDate" },
|
|
1067
|
+
{ path: "contacts.lastActivity.date" },
|
|
1068
|
+
{ path: "contacts.memberInfo.signupDate" },
|
|
1069
|
+
{ path: "contacts.memberInfo.profileInfo.photo.urlExpirationDate" },
|
|
1070
|
+
{ path: "contacts.memberInfo.sessionInfo.lastWebLogin" },
|
|
1071
|
+
{ path: "contacts.memberInfo.sessionInfo.lastMobileLogin" }
|
|
1072
|
+
]
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1076
|
+
paths: [
|
|
1077
|
+
{ path: "contacts.addresses.address.geocode.latitude" },
|
|
1078
|
+
{ path: "contacts.addresses.address.geocode.longitude" }
|
|
1079
|
+
]
|
|
1080
|
+
}
|
|
1081
|
+
]);
|
|
1082
|
+
const metadata = {
|
|
1083
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1084
|
+
method: "POST",
|
|
1085
|
+
methodFqn: "wix.contacts.v5.Contacts.BulkCreateContacts",
|
|
1086
|
+
packageName: PACKAGE_NAME,
|
|
1087
|
+
migrationOptions: {
|
|
1088
|
+
optInTransformResponse: true
|
|
1089
|
+
},
|
|
1090
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1091
|
+
protoPath: "/v5/bulk/contacts/create",
|
|
1092
|
+
data: serializedData,
|
|
1093
|
+
host
|
|
1094
|
+
}),
|
|
1095
|
+
data: serializedData,
|
|
1096
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1097
|
+
{
|
|
1098
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1099
|
+
paths: [
|
|
1100
|
+
{ path: "results.item.createdDate" },
|
|
1101
|
+
{ path: "results.item.updatedDate" },
|
|
1102
|
+
{ path: "results.item.email.subscriptionStatus.updatedDate" },
|
|
1103
|
+
{ path: "results.item.phone.subscriptionStatus.updatedDate" },
|
|
1104
|
+
{ path: "results.item.image.urlExpirationDate" },
|
|
1105
|
+
{ path: "results.item.lastActivity.date" },
|
|
1106
|
+
{ path: "results.item.memberInfo.signupDate" },
|
|
1107
|
+
{
|
|
1108
|
+
path: "results.item.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
1109
|
+
},
|
|
1110
|
+
{ path: "results.item.memberInfo.sessionInfo.lastWebLogin" },
|
|
1111
|
+
{ path: "results.item.memberInfo.sessionInfo.lastMobileLogin" }
|
|
1112
|
+
]
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1116
|
+
paths: [
|
|
1117
|
+
{ path: "results.item.addresses.address.geocode.latitude" },
|
|
1118
|
+
{ path: "results.item.addresses.address.geocode.longitude" }
|
|
1119
|
+
]
|
|
1120
|
+
}
|
|
1121
|
+
])
|
|
1122
|
+
};
|
|
1123
|
+
return metadata;
|
|
1124
|
+
}
|
|
1125
|
+
return __bulkCreateContacts;
|
|
1126
|
+
}
|
|
1127
|
+
function bulkUpdateContacts(payload) {
|
|
1128
|
+
function __bulkUpdateContacts({ host }) {
|
|
1129
|
+
const serializedData = transformPaths(payload, [
|
|
1130
|
+
{
|
|
1131
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1132
|
+
paths: [{ path: "contacts.fieldMask" }]
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1136
|
+
paths: [
|
|
1137
|
+
{ path: "contacts.contact.createdDate" },
|
|
1138
|
+
{ path: "contacts.contact.updatedDate" },
|
|
1139
|
+
{ path: "contacts.contact.email.subscriptionStatus.updatedDate" },
|
|
1140
|
+
{ path: "contacts.contact.phone.subscriptionStatus.updatedDate" },
|
|
1141
|
+
{ path: "contacts.contact.image.urlExpirationDate" },
|
|
1142
|
+
{ path: "contacts.contact.lastActivity.date" },
|
|
1143
|
+
{ path: "contacts.contact.memberInfo.signupDate" },
|
|
1144
|
+
{
|
|
1145
|
+
path: "contacts.contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
1146
|
+
},
|
|
1147
|
+
{ path: "contacts.contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
1148
|
+
{ path: "contacts.contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
1149
|
+
]
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1153
|
+
paths: [
|
|
1154
|
+
{ path: "contacts.contact.addresses.address.geocode.latitude" },
|
|
1155
|
+
{ path: "contacts.contact.addresses.address.geocode.longitude" }
|
|
1156
|
+
]
|
|
1157
|
+
}
|
|
1158
|
+
]);
|
|
1159
|
+
const metadata = {
|
|
1160
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1161
|
+
method: "POST",
|
|
1162
|
+
methodFqn: "wix.contacts.v5.Contacts.BulkUpdateContacts",
|
|
1163
|
+
packageName: PACKAGE_NAME,
|
|
1164
|
+
migrationOptions: {
|
|
1165
|
+
optInTransformResponse: true
|
|
1166
|
+
},
|
|
1167
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1168
|
+
protoPath: "/v5/bulk/contacts/update",
|
|
1169
|
+
data: serializedData,
|
|
1170
|
+
host
|
|
1171
|
+
}),
|
|
1172
|
+
data: serializedData,
|
|
1173
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1174
|
+
{
|
|
1175
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1176
|
+
paths: [
|
|
1177
|
+
{ path: "results.item.createdDate" },
|
|
1178
|
+
{ path: "results.item.updatedDate" },
|
|
1179
|
+
{ path: "results.item.email.subscriptionStatus.updatedDate" },
|
|
1180
|
+
{ path: "results.item.phone.subscriptionStatus.updatedDate" },
|
|
1181
|
+
{ path: "results.item.image.urlExpirationDate" },
|
|
1182
|
+
{ path: "results.item.lastActivity.date" },
|
|
1183
|
+
{ path: "results.item.memberInfo.signupDate" },
|
|
1184
|
+
{
|
|
1185
|
+
path: "results.item.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
1186
|
+
},
|
|
1187
|
+
{ path: "results.item.memberInfo.sessionInfo.lastWebLogin" },
|
|
1188
|
+
{ path: "results.item.memberInfo.sessionInfo.lastMobileLogin" }
|
|
1189
|
+
]
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1193
|
+
paths: [
|
|
1194
|
+
{ path: "results.item.addresses.address.geocode.latitude" },
|
|
1195
|
+
{ path: "results.item.addresses.address.geocode.longitude" }
|
|
1196
|
+
]
|
|
1197
|
+
}
|
|
1198
|
+
])
|
|
1199
|
+
};
|
|
1200
|
+
return metadata;
|
|
1201
|
+
}
|
|
1202
|
+
return __bulkUpdateContacts;
|
|
1203
|
+
}
|
|
1204
|
+
function bulkUpdateContactTags(payload) {
|
|
1205
|
+
function __bulkUpdateContactTags({ host }) {
|
|
1206
|
+
const metadata = {
|
|
1207
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1208
|
+
method: "POST",
|
|
1209
|
+
methodFqn: "wix.contacts.v5.Contacts.BulkUpdateContactTags",
|
|
1210
|
+
packageName: PACKAGE_NAME,
|
|
1211
|
+
migrationOptions: {
|
|
1212
|
+
optInTransformResponse: true
|
|
1213
|
+
},
|
|
1214
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1215
|
+
protoPath: "/v5/bulk/contacts/update-tags",
|
|
1216
|
+
data: payload,
|
|
1217
|
+
host
|
|
1218
|
+
}),
|
|
1219
|
+
data: payload,
|
|
1220
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1221
|
+
{
|
|
1222
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1223
|
+
paths: [
|
|
1224
|
+
{ path: "results.item.createdDate" },
|
|
1225
|
+
{ path: "results.item.updatedDate" },
|
|
1226
|
+
{ path: "results.item.email.subscriptionStatus.updatedDate" },
|
|
1227
|
+
{ path: "results.item.phone.subscriptionStatus.updatedDate" },
|
|
1228
|
+
{ path: "results.item.image.urlExpirationDate" },
|
|
1229
|
+
{ path: "results.item.lastActivity.date" },
|
|
1230
|
+
{ path: "results.item.memberInfo.signupDate" },
|
|
1231
|
+
{
|
|
1232
|
+
path: "results.item.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
1233
|
+
},
|
|
1234
|
+
{ path: "results.item.memberInfo.sessionInfo.lastWebLogin" },
|
|
1235
|
+
{ path: "results.item.memberInfo.sessionInfo.lastMobileLogin" }
|
|
1236
|
+
]
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1240
|
+
paths: [
|
|
1241
|
+
{ path: "results.item.addresses.address.geocode.latitude" },
|
|
1242
|
+
{ path: "results.item.addresses.address.geocode.longitude" }
|
|
1243
|
+
]
|
|
1244
|
+
}
|
|
1245
|
+
])
|
|
1246
|
+
};
|
|
1247
|
+
return metadata;
|
|
1248
|
+
}
|
|
1249
|
+
return __bulkUpdateContactTags;
|
|
1250
|
+
}
|
|
1251
|
+
function bulkUpdateContactTagsByFilter(payload) {
|
|
1252
|
+
function __bulkUpdateContactTagsByFilter({ host }) {
|
|
1253
|
+
const metadata = {
|
|
1254
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1255
|
+
method: "POST",
|
|
1256
|
+
methodFqn: "wix.contacts.v5.Contacts.BulkUpdateContactTagsByFilter",
|
|
1257
|
+
packageName: PACKAGE_NAME,
|
|
1258
|
+
migrationOptions: {
|
|
1259
|
+
optInTransformResponse: true
|
|
1260
|
+
},
|
|
1261
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1262
|
+
protoPath: "/v5/bulk/contacts/update-tags-by-filter",
|
|
1263
|
+
data: payload,
|
|
1264
|
+
host
|
|
1265
|
+
}),
|
|
1266
|
+
data: payload
|
|
1267
|
+
};
|
|
1268
|
+
return metadata;
|
|
1269
|
+
}
|
|
1270
|
+
return __bulkUpdateContactTagsByFilter;
|
|
1271
|
+
}
|
|
1272
|
+
function bulkUpsertContacts(payload) {
|
|
1273
|
+
function __bulkUpsertContacts({ host }) {
|
|
1274
|
+
const serializedData = transformPaths(payload, [
|
|
1275
|
+
{
|
|
1276
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1277
|
+
paths: [{ path: "contacts.fieldMask" }]
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1281
|
+
paths: [
|
|
1282
|
+
{ path: "contacts.contact.createdDate" },
|
|
1283
|
+
{ path: "contacts.contact.updatedDate" },
|
|
1284
|
+
{ path: "contacts.contact.email.subscriptionStatus.updatedDate" },
|
|
1285
|
+
{ path: "contacts.contact.phone.subscriptionStatus.updatedDate" },
|
|
1286
|
+
{ path: "contacts.contact.image.urlExpirationDate" },
|
|
1287
|
+
{ path: "contacts.contact.lastActivity.date" },
|
|
1288
|
+
{ path: "contacts.contact.memberInfo.signupDate" },
|
|
1289
|
+
{
|
|
1290
|
+
path: "contacts.contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
1291
|
+
},
|
|
1292
|
+
{ path: "contacts.contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
1293
|
+
{ path: "contacts.contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
1294
|
+
]
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1298
|
+
paths: [
|
|
1299
|
+
{ path: "contacts.contact.addresses.address.geocode.latitude" },
|
|
1300
|
+
{ path: "contacts.contact.addresses.address.geocode.longitude" }
|
|
1301
|
+
]
|
|
1302
|
+
}
|
|
1303
|
+
]);
|
|
1304
|
+
const metadata = {
|
|
1305
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1306
|
+
method: "POST",
|
|
1307
|
+
methodFqn: "wix.contacts.v5.Contacts.BulkUpsertContacts",
|
|
1308
|
+
packageName: PACKAGE_NAME,
|
|
1309
|
+
migrationOptions: {
|
|
1310
|
+
optInTransformResponse: true
|
|
1311
|
+
},
|
|
1312
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1313
|
+
protoPath: "/v5/bulk/contacts/upsert",
|
|
1314
|
+
data: serializedData,
|
|
1315
|
+
host
|
|
1316
|
+
}),
|
|
1317
|
+
data: serializedData,
|
|
1318
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1319
|
+
{
|
|
1320
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1321
|
+
paths: [
|
|
1322
|
+
{ path: "results.item.createdDate" },
|
|
1323
|
+
{ path: "results.item.updatedDate" },
|
|
1324
|
+
{ path: "results.item.email.subscriptionStatus.updatedDate" },
|
|
1325
|
+
{ path: "results.item.phone.subscriptionStatus.updatedDate" },
|
|
1326
|
+
{ path: "results.item.image.urlExpirationDate" },
|
|
1327
|
+
{ path: "results.item.lastActivity.date" },
|
|
1328
|
+
{ path: "results.item.memberInfo.signupDate" },
|
|
1329
|
+
{
|
|
1330
|
+
path: "results.item.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
1331
|
+
},
|
|
1332
|
+
{ path: "results.item.memberInfo.sessionInfo.lastWebLogin" },
|
|
1333
|
+
{ path: "results.item.memberInfo.sessionInfo.lastMobileLogin" }
|
|
1334
|
+
]
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1338
|
+
paths: [
|
|
1339
|
+
{ path: "results.item.addresses.address.geocode.latitude" },
|
|
1340
|
+
{ path: "results.item.addresses.address.geocode.longitude" }
|
|
1341
|
+
]
|
|
1342
|
+
}
|
|
1343
|
+
])
|
|
1344
|
+
};
|
|
1345
|
+
return metadata;
|
|
1346
|
+
}
|
|
1347
|
+
return __bulkUpsertContacts;
|
|
1348
|
+
}
|
|
1349
|
+
function bulkDeleteContacts(payload) {
|
|
1350
|
+
function __bulkDeleteContacts({ host }) {
|
|
1351
|
+
const metadata = {
|
|
1352
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1353
|
+
method: "POST",
|
|
1354
|
+
methodFqn: "wix.contacts.v5.Contacts.BulkDeleteContacts",
|
|
1355
|
+
packageName: PACKAGE_NAME,
|
|
1356
|
+
migrationOptions: {
|
|
1357
|
+
optInTransformResponse: true
|
|
1358
|
+
},
|
|
1359
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1360
|
+
protoPath: "/v5/bulk/contacts/delete",
|
|
1361
|
+
data: payload,
|
|
1362
|
+
host
|
|
1363
|
+
}),
|
|
1364
|
+
data: payload
|
|
1365
|
+
};
|
|
1366
|
+
return metadata;
|
|
1367
|
+
}
|
|
1368
|
+
return __bulkDeleteContacts;
|
|
1369
|
+
}
|
|
1370
|
+
function bulkDeleteContactsByFilter(payload) {
|
|
1371
|
+
function __bulkDeleteContactsByFilter({ host }) {
|
|
1372
|
+
const metadata = {
|
|
1373
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1374
|
+
method: "POST",
|
|
1375
|
+
methodFqn: "wix.contacts.v5.Contacts.BulkDeleteContactsByFilter",
|
|
1376
|
+
packageName: PACKAGE_NAME,
|
|
1377
|
+
migrationOptions: {
|
|
1378
|
+
optInTransformResponse: true
|
|
1379
|
+
},
|
|
1380
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1381
|
+
protoPath: "/v5/bulk/contacts/delete-by-filter",
|
|
1382
|
+
data: payload,
|
|
1383
|
+
host
|
|
1384
|
+
}),
|
|
1385
|
+
data: payload
|
|
1386
|
+
};
|
|
1387
|
+
return metadata;
|
|
1388
|
+
}
|
|
1389
|
+
return __bulkDeleteContactsByFilter;
|
|
1390
|
+
}
|
|
1391
|
+
function removeContactFromTrashBin(payload) {
|
|
1392
|
+
function __removeContactFromTrashBin({ host }) {
|
|
1393
|
+
const metadata = {
|
|
1394
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1395
|
+
method: "DELETE",
|
|
1396
|
+
methodFqn: "wix.contacts.v5.Contacts.RemoveContactFromTrashBin",
|
|
1397
|
+
packageName: PACKAGE_NAME,
|
|
1398
|
+
migrationOptions: {
|
|
1399
|
+
optInTransformResponse: true
|
|
1400
|
+
},
|
|
1401
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1402
|
+
protoPath: "/v5/contacts/trash-bin/{contactId}",
|
|
1403
|
+
data: payload,
|
|
1404
|
+
host
|
|
1405
|
+
}),
|
|
1406
|
+
params: toURLSearchParams(payload)
|
|
1407
|
+
};
|
|
1408
|
+
return metadata;
|
|
1409
|
+
}
|
|
1410
|
+
return __removeContactFromTrashBin;
|
|
1411
|
+
}
|
|
1412
|
+
function restoreContactFromTrashBin(payload) {
|
|
1413
|
+
function __restoreContactFromTrashBin({ host }) {
|
|
1414
|
+
const metadata = {
|
|
1415
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1416
|
+
method: "POST",
|
|
1417
|
+
methodFqn: "wix.contacts.v5.Contacts.RestoreContactFromTrashBin",
|
|
1418
|
+
packageName: PACKAGE_NAME,
|
|
1419
|
+
migrationOptions: {
|
|
1420
|
+
optInTransformResponse: true
|
|
1421
|
+
},
|
|
1422
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1423
|
+
protoPath: "/v5/contacts/trash-bin/{contactId}/restore",
|
|
1424
|
+
data: payload,
|
|
1425
|
+
host
|
|
1426
|
+
}),
|
|
1427
|
+
data: payload,
|
|
1428
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1429
|
+
{
|
|
1430
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1431
|
+
paths: [
|
|
1432
|
+
{ path: "contact.createdDate" },
|
|
1433
|
+
{ path: "contact.updatedDate" },
|
|
1434
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
1435
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
1436
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
1437
|
+
{ path: "contact.lastActivity.date" },
|
|
1438
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
1439
|
+
{
|
|
1440
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
1441
|
+
},
|
|
1442
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
1443
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
1444
|
+
]
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1448
|
+
paths: [
|
|
1449
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
1450
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
1451
|
+
]
|
|
1452
|
+
}
|
|
1453
|
+
])
|
|
1454
|
+
};
|
|
1455
|
+
return metadata;
|
|
1456
|
+
}
|
|
1457
|
+
return __restoreContactFromTrashBin;
|
|
1458
|
+
}
|
|
1459
|
+
function bulkRestoreContactsFromTrashBin(payload) {
|
|
1460
|
+
function __bulkRestoreContactsFromTrashBin({ host }) {
|
|
1461
|
+
const metadata = {
|
|
1462
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1463
|
+
method: "POST",
|
|
1464
|
+
methodFqn: "wix.contacts.v5.Contacts.BulkRestoreContactsFromTrashBin",
|
|
1465
|
+
packageName: PACKAGE_NAME,
|
|
1466
|
+
migrationOptions: {
|
|
1467
|
+
optInTransformResponse: true
|
|
1468
|
+
},
|
|
1469
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1470
|
+
protoPath: "/v5/bulk/contacts/trash-bin/restore",
|
|
1471
|
+
data: payload,
|
|
1472
|
+
host
|
|
1473
|
+
}),
|
|
1474
|
+
data: payload,
|
|
1475
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1476
|
+
{
|
|
1477
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1478
|
+
paths: [
|
|
1479
|
+
{ path: "results.item.createdDate" },
|
|
1480
|
+
{ path: "results.item.updatedDate" },
|
|
1481
|
+
{ path: "results.item.email.subscriptionStatus.updatedDate" },
|
|
1482
|
+
{ path: "results.item.phone.subscriptionStatus.updatedDate" },
|
|
1483
|
+
{ path: "results.item.image.urlExpirationDate" },
|
|
1484
|
+
{ path: "results.item.lastActivity.date" },
|
|
1485
|
+
{ path: "results.item.memberInfo.signupDate" },
|
|
1486
|
+
{
|
|
1487
|
+
path: "results.item.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
1488
|
+
},
|
|
1489
|
+
{ path: "results.item.memberInfo.sessionInfo.lastWebLogin" },
|
|
1490
|
+
{ path: "results.item.memberInfo.sessionInfo.lastMobileLogin" }
|
|
1491
|
+
]
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1495
|
+
paths: [
|
|
1496
|
+
{ path: "results.item.addresses.address.geocode.latitude" },
|
|
1497
|
+
{ path: "results.item.addresses.address.geocode.longitude" }
|
|
1498
|
+
]
|
|
1499
|
+
}
|
|
1500
|
+
])
|
|
1501
|
+
};
|
|
1502
|
+
return metadata;
|
|
1503
|
+
}
|
|
1504
|
+
return __bulkRestoreContactsFromTrashBin;
|
|
1505
|
+
}
|
|
1506
|
+
function getDeletedContact(payload) {
|
|
1507
|
+
function __getDeletedContact({ host }) {
|
|
1508
|
+
const metadata = {
|
|
1509
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1510
|
+
method: "GET",
|
|
1511
|
+
methodFqn: "wix.contacts.v5.Contacts.GetDeletedContact",
|
|
1512
|
+
packageName: PACKAGE_NAME,
|
|
1513
|
+
migrationOptions: {
|
|
1514
|
+
optInTransformResponse: true
|
|
1515
|
+
},
|
|
1516
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1517
|
+
protoPath: "/v5/contacts/trash-bin/{contactId}",
|
|
1518
|
+
data: payload,
|
|
1519
|
+
host
|
|
1520
|
+
}),
|
|
1521
|
+
params: toURLSearchParams(payload),
|
|
1522
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1523
|
+
{
|
|
1524
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1525
|
+
paths: [
|
|
1526
|
+
{ path: "contact.createdDate" },
|
|
1527
|
+
{ path: "contact.updatedDate" },
|
|
1528
|
+
{ path: "contact.email.subscriptionStatus.updatedDate" },
|
|
1529
|
+
{ path: "contact.phone.subscriptionStatus.updatedDate" },
|
|
1530
|
+
{ path: "contact.image.urlExpirationDate" },
|
|
1531
|
+
{ path: "contact.lastActivity.date" },
|
|
1532
|
+
{ path: "contact.memberInfo.signupDate" },
|
|
1533
|
+
{
|
|
1534
|
+
path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
1535
|
+
},
|
|
1536
|
+
{ path: "contact.memberInfo.sessionInfo.lastWebLogin" },
|
|
1537
|
+
{ path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
|
|
1538
|
+
]
|
|
1539
|
+
},
|
|
1540
|
+
{
|
|
1541
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1542
|
+
paths: [
|
|
1543
|
+
{ path: "contact.addresses.address.geocode.latitude" },
|
|
1544
|
+
{ path: "contact.addresses.address.geocode.longitude" }
|
|
1545
|
+
]
|
|
1546
|
+
}
|
|
1547
|
+
])
|
|
1548
|
+
};
|
|
1549
|
+
return metadata;
|
|
1550
|
+
}
|
|
1551
|
+
return __getDeletedContact;
|
|
1552
|
+
}
|
|
1553
|
+
function listDeletedContacts(payload) {
|
|
1554
|
+
function __listDeletedContacts({ host }) {
|
|
1555
|
+
const serializedData = transformPaths(payload, [
|
|
1556
|
+
{
|
|
1557
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1558
|
+
paths: [{ path: "deletedFromDate" }, { path: "deletedToDate" }]
|
|
1559
|
+
}
|
|
1560
|
+
]);
|
|
1561
|
+
const metadata = {
|
|
1562
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1563
|
+
method: "GET",
|
|
1564
|
+
methodFqn: "wix.contacts.v5.Contacts.ListDeletedContacts",
|
|
1565
|
+
packageName: PACKAGE_NAME,
|
|
1566
|
+
migrationOptions: {
|
|
1567
|
+
optInTransformResponse: true
|
|
1568
|
+
},
|
|
1569
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1570
|
+
protoPath: "/v5/contacts/trash-bin",
|
|
1571
|
+
data: serializedData,
|
|
1572
|
+
host
|
|
1573
|
+
}),
|
|
1574
|
+
params: toURLSearchParams(serializedData),
|
|
1575
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1576
|
+
{
|
|
1577
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1578
|
+
paths: [
|
|
1579
|
+
{ path: "contacts.createdDate" },
|
|
1580
|
+
{ path: "contacts.updatedDate" },
|
|
1581
|
+
{ path: "contacts.email.subscriptionStatus.updatedDate" },
|
|
1582
|
+
{ path: "contacts.phone.subscriptionStatus.updatedDate" },
|
|
1583
|
+
{ path: "contacts.image.urlExpirationDate" },
|
|
1584
|
+
{ path: "contacts.lastActivity.date" },
|
|
1585
|
+
{ path: "contacts.memberInfo.signupDate" },
|
|
1586
|
+
{
|
|
1587
|
+
path: "contacts.memberInfo.profileInfo.photo.urlExpirationDate"
|
|
1588
|
+
},
|
|
1589
|
+
{ path: "contacts.memberInfo.sessionInfo.lastWebLogin" },
|
|
1590
|
+
{ path: "contacts.memberInfo.sessionInfo.lastMobileLogin" }
|
|
1591
|
+
]
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1595
|
+
paths: [
|
|
1596
|
+
{ path: "contacts.addresses.address.geocode.latitude" },
|
|
1597
|
+
{ path: "contacts.addresses.address.geocode.longitude" }
|
|
1598
|
+
]
|
|
1599
|
+
}
|
|
1600
|
+
])
|
|
1601
|
+
};
|
|
1602
|
+
return metadata;
|
|
1603
|
+
}
|
|
1604
|
+
return __listDeletedContacts;
|
|
1605
|
+
}
|
|
1606
|
+
function getContactImageUploadStatus(payload) {
|
|
1607
|
+
function __getContactImageUploadStatus({ host }) {
|
|
1608
|
+
const metadata = {
|
|
1609
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1610
|
+
method: "GET",
|
|
1611
|
+
methodFqn: "wix.contacts.v5.Contacts.GetContactImageUploadStatus",
|
|
1612
|
+
packageName: PACKAGE_NAME,
|
|
1613
|
+
migrationOptions: {
|
|
1614
|
+
optInTransformResponse: true
|
|
1615
|
+
},
|
|
1616
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1617
|
+
protoPath: "/v5/contacts/{contactId}/image-upload/{imageUploadId}",
|
|
1618
|
+
data: payload,
|
|
1619
|
+
host
|
|
1620
|
+
}),
|
|
1621
|
+
params: toURLSearchParams(payload)
|
|
1622
|
+
};
|
|
1623
|
+
return metadata;
|
|
1624
|
+
}
|
|
1625
|
+
return __getContactImageUploadStatus;
|
|
1626
|
+
}
|
|
1627
|
+
function bulkUpdatePhoneCountryCodeByFilter(payload) {
|
|
1628
|
+
function __bulkUpdatePhoneCountryCodeByFilter({ host }) {
|
|
1629
|
+
const metadata = {
|
|
1630
|
+
entityFqdn: "wix.contacts.v5.contact",
|
|
1631
|
+
method: "POST",
|
|
1632
|
+
methodFqn: "wix.contacts.v5.Contacts.BulkUpdatePhoneCountryCodeByFilter",
|
|
1633
|
+
packageName: PACKAGE_NAME,
|
|
1634
|
+
migrationOptions: {
|
|
1635
|
+
optInTransformResponse: true
|
|
1636
|
+
},
|
|
1637
|
+
url: resolveWixContactsV5ContactsUrl({
|
|
1638
|
+
protoPath: "/v5/bulk/contacts/update-phone-country-code-by-filter",
|
|
1639
|
+
data: payload,
|
|
1640
|
+
host
|
|
1641
|
+
}),
|
|
1642
|
+
data: payload
|
|
1643
|
+
};
|
|
1644
|
+
return metadata;
|
|
1645
|
+
}
|
|
1646
|
+
return __bulkUpdatePhoneCountryCodeByFilter;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
// src/contacts-v5-contact-contacts-v-5.types.ts
|
|
1650
|
+
var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
|
|
1651
|
+
SubscriptionStatus2["NO_SUBSCRIPTION_STATUS"] = "NO_SUBSCRIPTION_STATUS";
|
|
1652
|
+
SubscriptionStatus2["NOT_SET"] = "NOT_SET";
|
|
1653
|
+
SubscriptionStatus2["PENDING"] = "PENDING";
|
|
1654
|
+
SubscriptionStatus2["SUBSCRIBED"] = "SUBSCRIBED";
|
|
1655
|
+
SubscriptionStatus2["UNSUBSCRIBED"] = "UNSUBSCRIBED";
|
|
1656
|
+
return SubscriptionStatus2;
|
|
1657
|
+
})(SubscriptionStatus || {});
|
|
1658
|
+
var EmailDeliverabilityStatus = /* @__PURE__ */ ((EmailDeliverabilityStatus2) => {
|
|
1659
|
+
EmailDeliverabilityStatus2["NOT_SET"] = "NOT_SET";
|
|
1660
|
+
EmailDeliverabilityStatus2["VALID"] = "VALID";
|
|
1661
|
+
EmailDeliverabilityStatus2["BOUNCED"] = "BOUNCED";
|
|
1662
|
+
EmailDeliverabilityStatus2["SPAM_COMPLAINT"] = "SPAM_COMPLAINT";
|
|
1663
|
+
EmailDeliverabilityStatus2["INACTIVE"] = "INACTIVE";
|
|
1664
|
+
return EmailDeliverabilityStatus2;
|
|
1665
|
+
})(EmailDeliverabilityStatus || {});
|
|
1666
|
+
var PhoneTag = /* @__PURE__ */ ((PhoneTag2) => {
|
|
1667
|
+
PhoneTag2["OTHER"] = "OTHER";
|
|
1668
|
+
PhoneTag2["MAIN"] = "MAIN";
|
|
1669
|
+
PhoneTag2["HOME"] = "HOME";
|
|
1670
|
+
PhoneTag2["MOBILE"] = "MOBILE";
|
|
1671
|
+
PhoneTag2["WORK"] = "WORK";
|
|
1672
|
+
PhoneTag2["FAX"] = "FAX";
|
|
1673
|
+
return PhoneTag2;
|
|
1674
|
+
})(PhoneTag || {});
|
|
1675
|
+
var PhoneDeliverabilityStatus = /* @__PURE__ */ ((PhoneDeliverabilityStatus2) => {
|
|
1676
|
+
PhoneDeliverabilityStatus2["NO_PHONE_DELIVERABILITY_STATUS"] = "NO_PHONE_DELIVERABILITY_STATUS";
|
|
1677
|
+
PhoneDeliverabilityStatus2["NOT_SET"] = "NOT_SET";
|
|
1678
|
+
PhoneDeliverabilityStatus2["VALID"] = "VALID";
|
|
1679
|
+
PhoneDeliverabilityStatus2["INVALID"] = "INVALID";
|
|
1680
|
+
return PhoneDeliverabilityStatus2;
|
|
1681
|
+
})(PhoneDeliverabilityStatus || {});
|
|
1682
|
+
var AddressTag = /* @__PURE__ */ ((AddressTag2) => {
|
|
1683
|
+
AddressTag2["OTHER"] = "OTHER";
|
|
1684
|
+
AddressTag2["HOME"] = "HOME";
|
|
1685
|
+
AddressTag2["WORK"] = "WORK";
|
|
1686
|
+
AddressTag2["BILLING"] = "BILLING";
|
|
1687
|
+
AddressTag2["SHIPPING"] = "SHIPPING";
|
|
1688
|
+
return AddressTag2;
|
|
1689
|
+
})(AddressTag || {});
|
|
1690
|
+
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
1691
|
+
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
1692
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
1693
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
1694
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
1695
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
1696
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
1697
|
+
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
1698
|
+
return SubdivisionType2;
|
|
1699
|
+
})(SubdivisionType || {});
|
|
1700
|
+
var MemberStatus = /* @__PURE__ */ ((MemberStatus2) => {
|
|
1701
|
+
MemberStatus2["PENDING"] = "PENDING";
|
|
1702
|
+
MemberStatus2["ACTIVE"] = "ACTIVE";
|
|
1703
|
+
MemberStatus2["BLOCKED"] = "BLOCKED";
|
|
1704
|
+
MemberStatus2["OFFLINE"] = "OFFLINE";
|
|
1705
|
+
return MemberStatus2;
|
|
1706
|
+
})(MemberStatus || {});
|
|
1707
|
+
var PrivacyStatus = /* @__PURE__ */ ((PrivacyStatus2) => {
|
|
1708
|
+
PrivacyStatus2["PRIVATE"] = "PRIVATE";
|
|
1709
|
+
PrivacyStatus2["PUBLIC"] = "PUBLIC";
|
|
1710
|
+
return PrivacyStatus2;
|
|
1711
|
+
})(PrivacyStatus || {});
|
|
1712
|
+
var Role = /* @__PURE__ */ ((Role2) => {
|
|
1713
|
+
Role2["OWNER"] = "OWNER";
|
|
1714
|
+
Role2["CONTRIBUTOR"] = "CONTRIBUTOR";
|
|
1715
|
+
Role2["MEMBER"] = "MEMBER";
|
|
1716
|
+
return Role2;
|
|
1717
|
+
})(Role || {});
|
|
1718
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1719
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1720
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1721
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1722
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1723
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1724
|
+
return WebhookIdentityType2;
|
|
1725
|
+
})(WebhookIdentityType || {});
|
|
1726
|
+
var Mode = /* @__PURE__ */ ((Mode2) => {
|
|
1727
|
+
Mode2["OR"] = "OR";
|
|
1728
|
+
Mode2["AND"] = "AND";
|
|
1729
|
+
return Mode2;
|
|
1730
|
+
})(Mode || {});
|
|
1731
|
+
var V5SubscriptionStatus = /* @__PURE__ */ ((V5SubscriptionStatus2) => {
|
|
1732
|
+
V5SubscriptionStatus2["NOT_SET"] = "NOT_SET";
|
|
1733
|
+
V5SubscriptionStatus2["SUBSCRIBED"] = "SUBSCRIBED";
|
|
1734
|
+
V5SubscriptionStatus2["UNSUBSCRIBED"] = "UNSUBSCRIBED";
|
|
1735
|
+
return V5SubscriptionStatus2;
|
|
1736
|
+
})(V5SubscriptionStatus || {});
|
|
1737
|
+
var MatchType = /* @__PURE__ */ ((MatchType2) => {
|
|
1738
|
+
MatchType2["EMAIL"] = "EMAIL";
|
|
1739
|
+
MatchType2["PHONE"] = "PHONE";
|
|
1740
|
+
MatchType2["EXTERNAL_ID"] = "EXTERNAL_ID";
|
|
1741
|
+
MatchType2["EMAIL_AND_PHONE"] = "EMAIL_AND_PHONE";
|
|
1742
|
+
return MatchType2;
|
|
1743
|
+
})(MatchType || {});
|
|
1744
|
+
var UpsertMode = /* @__PURE__ */ ((UpsertMode2) => {
|
|
1745
|
+
UpsertMode2["OVERWRITE"] = "OVERWRITE";
|
|
1746
|
+
UpsertMode2["APPEND"] = "APPEND";
|
|
1747
|
+
UpsertMode2["OVERWRITE_APPEND_ARRAYS"] = "OVERWRITE_APPEND_ARRAYS";
|
|
1748
|
+
return UpsertMode2;
|
|
1749
|
+
})(UpsertMode || {});
|
|
1750
|
+
var UpsertContactResponseAction = /* @__PURE__ */ ((UpsertContactResponseAction2) => {
|
|
1751
|
+
UpsertContactResponseAction2["UPDATED"] = "UPDATED";
|
|
1752
|
+
UpsertContactResponseAction2["CREATED"] = "CREATED";
|
|
1753
|
+
return UpsertContactResponseAction2;
|
|
1754
|
+
})(UpsertContactResponseAction || {});
|
|
1755
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1756
|
+
SortOrder2["ASC"] = "ASC";
|
|
1757
|
+
SortOrder2["DESC"] = "DESC";
|
|
1758
|
+
return SortOrder2;
|
|
1759
|
+
})(SortOrder || {});
|
|
1760
|
+
var SortType = /* @__PURE__ */ ((SortType2) => {
|
|
1761
|
+
SortType2["COUNT"] = "COUNT";
|
|
1762
|
+
SortType2["VALUE"] = "VALUE";
|
|
1763
|
+
return SortType2;
|
|
1764
|
+
})(SortType || {});
|
|
1765
|
+
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
|
|
1766
|
+
SortDirection2["DESC"] = "DESC";
|
|
1767
|
+
SortDirection2["ASC"] = "ASC";
|
|
1768
|
+
return SortDirection2;
|
|
1769
|
+
})(SortDirection || {});
|
|
1770
|
+
var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
|
|
1771
|
+
MissingValues2["EXCLUDE"] = "EXCLUDE";
|
|
1772
|
+
MissingValues2["INCLUDE"] = "INCLUDE";
|
|
1773
|
+
return MissingValues2;
|
|
1774
|
+
})(MissingValues || {});
|
|
1775
|
+
var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
|
|
1776
|
+
ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
|
|
1777
|
+
ScalarType2["MIN"] = "MIN";
|
|
1778
|
+
ScalarType2["MAX"] = "MAX";
|
|
1779
|
+
return ScalarType2;
|
|
1780
|
+
})(ScalarType || {});
|
|
1781
|
+
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
|
|
1782
|
+
NestedAggregationType2["VALUE"] = "VALUE";
|
|
1783
|
+
NestedAggregationType2["RANGE"] = "RANGE";
|
|
1784
|
+
NestedAggregationType2["SCALAR"] = "SCALAR";
|
|
1785
|
+
NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
1786
|
+
return NestedAggregationType2;
|
|
1787
|
+
})(NestedAggregationType || {});
|
|
1788
|
+
var Interval = /* @__PURE__ */ ((Interval2) => {
|
|
1789
|
+
Interval2["YEAR"] = "YEAR";
|
|
1790
|
+
Interval2["MONTH"] = "MONTH";
|
|
1791
|
+
Interval2["WEEK"] = "WEEK";
|
|
1792
|
+
Interval2["DAY"] = "DAY";
|
|
1793
|
+
Interval2["HOUR"] = "HOUR";
|
|
1794
|
+
Interval2["MINUTE"] = "MINUTE";
|
|
1795
|
+
Interval2["SECOND"] = "SECOND";
|
|
1796
|
+
return Interval2;
|
|
1797
|
+
})(Interval || {});
|
|
1798
|
+
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
1799
|
+
AggregationType2["VALUE"] = "VALUE";
|
|
1800
|
+
AggregationType2["RANGE"] = "RANGE";
|
|
1801
|
+
AggregationType2["SCALAR"] = "SCALAR";
|
|
1802
|
+
AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
1803
|
+
AggregationType2["NESTED"] = "NESTED";
|
|
1804
|
+
return AggregationType2;
|
|
1805
|
+
})(AggregationType || {});
|
|
1806
|
+
var NameFormat = /* @__PURE__ */ ((NameFormat2) => {
|
|
1807
|
+
NameFormat2["BY_FIRST_NAME"] = "BY_FIRST_NAME";
|
|
1808
|
+
NameFormat2["BY_LAST_NAME"] = "BY_LAST_NAME";
|
|
1809
|
+
return NameFormat2;
|
|
1810
|
+
})(NameFormat || {});
|
|
1811
|
+
var Action = /* @__PURE__ */ ((Action2) => {
|
|
1812
|
+
Action2["UNKNOWN_ACTION"] = "UNKNOWN_ACTION";
|
|
1813
|
+
Action2["UPDATED"] = "UPDATED";
|
|
1814
|
+
Action2["CREATED"] = "CREATED";
|
|
1815
|
+
return Action2;
|
|
1816
|
+
})(Action || {});
|
|
1817
|
+
var QueryContactsByOffsetInternalRequestNameFormat = /* @__PURE__ */ ((QueryContactsByOffsetInternalRequestNameFormat2) => {
|
|
1818
|
+
QueryContactsByOffsetInternalRequestNameFormat2["BY_FIRST_NAME"] = "BY_FIRST_NAME";
|
|
1819
|
+
QueryContactsByOffsetInternalRequestNameFormat2["BY_LAST_NAME"] = "BY_LAST_NAME";
|
|
1820
|
+
return QueryContactsByOffsetInternalRequestNameFormat2;
|
|
1821
|
+
})(QueryContactsByOffsetInternalRequestNameFormat || {});
|
|
1822
|
+
var ImageUploadStatus = /* @__PURE__ */ ((ImageUploadStatus2) => {
|
|
1823
|
+
ImageUploadStatus2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
1824
|
+
ImageUploadStatus2["SUCCESS"] = "SUCCESS";
|
|
1825
|
+
ImageUploadStatus2["FAILURE"] = "FAILURE";
|
|
1826
|
+
return ImageUploadStatus2;
|
|
1827
|
+
})(ImageUploadStatus || {});
|
|
1828
|
+
|
|
1829
|
+
// src/contacts-v5-contact-contacts-v-5.meta.ts
|
|
1830
|
+
function bulkUpdateContactSubscriptions2() {
|
|
1831
|
+
const payload = {};
|
|
1832
|
+
const getRequestOptions = bulkUpdateContactSubscriptions(payload);
|
|
1833
|
+
const getUrl = (context) => {
|
|
1834
|
+
const { url } = getRequestOptions(context);
|
|
1835
|
+
return url;
|
|
1836
|
+
};
|
|
1837
|
+
return {
|
|
1838
|
+
getUrl,
|
|
1839
|
+
httpMethod: "POST",
|
|
1840
|
+
path: "/v5/bulk/contacts/subscriptions/update",
|
|
1841
|
+
pathParams: {},
|
|
1842
|
+
__requestType: null,
|
|
1843
|
+
__originalRequestType: null,
|
|
1844
|
+
__responseType: null,
|
|
1845
|
+
__originalResponseType: null
|
|
1846
|
+
};
|
|
1847
|
+
}
|
|
1848
|
+
function createContact2() {
|
|
1849
|
+
const payload = {};
|
|
1850
|
+
const getRequestOptions = createContact(payload);
|
|
1851
|
+
const getUrl = (context) => {
|
|
1852
|
+
const { url } = getRequestOptions(context);
|
|
1853
|
+
return url;
|
|
1854
|
+
};
|
|
1855
|
+
return {
|
|
1856
|
+
getUrl,
|
|
1857
|
+
httpMethod: "POST",
|
|
1858
|
+
path: "/v5/contacts",
|
|
1859
|
+
pathParams: {},
|
|
1860
|
+
__requestType: null,
|
|
1861
|
+
__originalRequestType: null,
|
|
1862
|
+
__responseType: null,
|
|
1863
|
+
__originalResponseType: null
|
|
1864
|
+
};
|
|
1865
|
+
}
|
|
1866
|
+
function getContact2() {
|
|
1867
|
+
const payload = { contactId: ":contactId" };
|
|
1868
|
+
const getRequestOptions = getContact(payload);
|
|
1869
|
+
const getUrl = (context) => {
|
|
1870
|
+
const { url } = getRequestOptions(context);
|
|
1871
|
+
return url;
|
|
1872
|
+
};
|
|
1873
|
+
return {
|
|
1874
|
+
getUrl,
|
|
1875
|
+
httpMethod: "GET",
|
|
1876
|
+
path: "/v5/contacts/{contactId}",
|
|
1877
|
+
pathParams: { contactId: "contactId" },
|
|
1878
|
+
__requestType: null,
|
|
1879
|
+
__originalRequestType: null,
|
|
1880
|
+
__responseType: null,
|
|
1881
|
+
__originalResponseType: null
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
function updateContact2() {
|
|
1885
|
+
const payload = { contact: { id: ":contactId" } };
|
|
1886
|
+
const getRequestOptions = updateContact(payload);
|
|
1887
|
+
const getUrl = (context) => {
|
|
1888
|
+
const { url } = getRequestOptions(context);
|
|
1889
|
+
return url;
|
|
1890
|
+
};
|
|
1891
|
+
return {
|
|
1892
|
+
getUrl,
|
|
1893
|
+
httpMethod: "PATCH",
|
|
1894
|
+
path: "/v5/contacts/{contact.id}",
|
|
1895
|
+
pathParams: { contactId: "contactId" },
|
|
1896
|
+
__requestType: null,
|
|
1897
|
+
__originalRequestType: null,
|
|
1898
|
+
__responseType: null,
|
|
1899
|
+
__originalResponseType: null
|
|
1900
|
+
};
|
|
1901
|
+
}
|
|
1902
|
+
function upsertContact2() {
|
|
1903
|
+
const payload = {};
|
|
1904
|
+
const getRequestOptions = upsertContact(payload);
|
|
1905
|
+
const getUrl = (context) => {
|
|
1906
|
+
const { url } = getRequestOptions(context);
|
|
1907
|
+
return url;
|
|
1908
|
+
};
|
|
1909
|
+
return {
|
|
1910
|
+
getUrl,
|
|
1911
|
+
httpMethod: "POST",
|
|
1912
|
+
path: "/v5/contacts/upsert",
|
|
1913
|
+
pathParams: {},
|
|
1914
|
+
__requestType: null,
|
|
1915
|
+
__originalRequestType: null,
|
|
1916
|
+
__responseType: null,
|
|
1917
|
+
__originalResponseType: null
|
|
1918
|
+
};
|
|
1919
|
+
}
|
|
1920
|
+
function updateContactTags2() {
|
|
1921
|
+
const payload = { contactId: ":contactId" };
|
|
1922
|
+
const getRequestOptions = updateContactTags(payload);
|
|
1923
|
+
const getUrl = (context) => {
|
|
1924
|
+
const { url } = getRequestOptions(context);
|
|
1925
|
+
return url;
|
|
1926
|
+
};
|
|
1927
|
+
return {
|
|
1928
|
+
getUrl,
|
|
1929
|
+
httpMethod: "POST",
|
|
1930
|
+
path: "/v5/contacts/{contactId}/update-tags",
|
|
1931
|
+
pathParams: { contactId: "contactId" },
|
|
1932
|
+
__requestType: null,
|
|
1933
|
+
__originalRequestType: null,
|
|
1934
|
+
__responseType: null,
|
|
1935
|
+
__originalResponseType: null
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1938
|
+
function mergeContacts2() {
|
|
1939
|
+
const payload = { targetContactId: ":targetContactId" };
|
|
1940
|
+
const getRequestOptions = mergeContacts(payload);
|
|
1941
|
+
const getUrl = (context) => {
|
|
1942
|
+
const { url } = getRequestOptions(context);
|
|
1943
|
+
return url;
|
|
1944
|
+
};
|
|
1945
|
+
return {
|
|
1946
|
+
getUrl,
|
|
1947
|
+
httpMethod: "POST",
|
|
1948
|
+
path: "/v5/contacts/{targetContactId}/merge",
|
|
1949
|
+
pathParams: { targetContactId: "targetContactId" },
|
|
1950
|
+
__requestType: null,
|
|
1951
|
+
__originalRequestType: null,
|
|
1952
|
+
__responseType: null,
|
|
1953
|
+
__originalResponseType: null
|
|
1954
|
+
};
|
|
1955
|
+
}
|
|
1956
|
+
function deleteContact2() {
|
|
1957
|
+
const payload = { contactId: ":contactId" };
|
|
1958
|
+
const getRequestOptions = deleteContact(payload);
|
|
1959
|
+
const getUrl = (context) => {
|
|
1960
|
+
const { url } = getRequestOptions(context);
|
|
1961
|
+
return url;
|
|
1962
|
+
};
|
|
1963
|
+
return {
|
|
1964
|
+
getUrl,
|
|
1965
|
+
httpMethod: "DELETE",
|
|
1966
|
+
path: "/v5/contacts/{contactId}",
|
|
1967
|
+
pathParams: { contactId: "contactId" },
|
|
1968
|
+
__requestType: null,
|
|
1969
|
+
__originalRequestType: null,
|
|
1970
|
+
__responseType: null,
|
|
1971
|
+
__originalResponseType: null
|
|
1972
|
+
};
|
|
1973
|
+
}
|
|
1974
|
+
function findMatchingContacts2() {
|
|
1975
|
+
const payload = {};
|
|
1976
|
+
const getRequestOptions = findMatchingContacts(payload);
|
|
1977
|
+
const getUrl = (context) => {
|
|
1978
|
+
const { url } = getRequestOptions(context);
|
|
1979
|
+
return url;
|
|
1980
|
+
};
|
|
1981
|
+
return {
|
|
1982
|
+
getUrl,
|
|
1983
|
+
httpMethod: "GET",
|
|
1984
|
+
path: "/v5/contacts/find-matching",
|
|
1985
|
+
pathParams: {},
|
|
1986
|
+
__requestType: null,
|
|
1987
|
+
__originalRequestType: null,
|
|
1988
|
+
__responseType: null,
|
|
1989
|
+
__originalResponseType: null
|
|
1990
|
+
};
|
|
1991
|
+
}
|
|
1992
|
+
function queryContacts2() {
|
|
1993
|
+
const payload = {};
|
|
1994
|
+
const getRequestOptions = queryContacts(payload);
|
|
1995
|
+
const getUrl = (context) => {
|
|
1996
|
+
const { url } = getRequestOptions(context);
|
|
1997
|
+
return url;
|
|
1998
|
+
};
|
|
1999
|
+
return {
|
|
2000
|
+
getUrl,
|
|
2001
|
+
httpMethod: "GET",
|
|
2002
|
+
path: "/v5/contacts/query",
|
|
2003
|
+
pathParams: {},
|
|
2004
|
+
__requestType: null,
|
|
2005
|
+
__originalRequestType: null,
|
|
2006
|
+
__responseType: null,
|
|
2007
|
+
__originalResponseType: null
|
|
2008
|
+
};
|
|
2009
|
+
}
|
|
2010
|
+
function searchContacts2() {
|
|
2011
|
+
const payload = {};
|
|
2012
|
+
const getRequestOptions = searchContacts(payload);
|
|
2013
|
+
const getUrl = (context) => {
|
|
2014
|
+
const { url } = getRequestOptions(context);
|
|
2015
|
+
return url;
|
|
2016
|
+
};
|
|
2017
|
+
return {
|
|
2018
|
+
getUrl,
|
|
2019
|
+
httpMethod: "GET",
|
|
2020
|
+
path: "/v5/contacts/search",
|
|
2021
|
+
pathParams: {},
|
|
2022
|
+
__requestType: null,
|
|
2023
|
+
__originalRequestType: null,
|
|
2024
|
+
__responseType: null,
|
|
2025
|
+
__originalResponseType: null
|
|
2026
|
+
};
|
|
2027
|
+
}
|
|
2028
|
+
function countContacts2() {
|
|
2029
|
+
const payload = {};
|
|
2030
|
+
const getRequestOptions = countContacts(payload);
|
|
2031
|
+
const getUrl = (context) => {
|
|
2032
|
+
const { url } = getRequestOptions(context);
|
|
2033
|
+
return url;
|
|
2034
|
+
};
|
|
2035
|
+
return {
|
|
2036
|
+
getUrl,
|
|
2037
|
+
httpMethod: "POST",
|
|
2038
|
+
path: "/v5/contacts/count",
|
|
2039
|
+
pathParams: {},
|
|
2040
|
+
__requestType: null,
|
|
2041
|
+
__originalRequestType: null,
|
|
2042
|
+
__responseType: null,
|
|
2043
|
+
__originalResponseType: null
|
|
2044
|
+
};
|
|
2045
|
+
}
|
|
2046
|
+
function generateContactImageUploadUrl2() {
|
|
2047
|
+
const payload = { contactId: ":contactId" };
|
|
2048
|
+
const getRequestOptions = generateContactImageUploadUrl(payload);
|
|
2049
|
+
const getUrl = (context) => {
|
|
2050
|
+
const { url } = getRequestOptions(context);
|
|
2051
|
+
return url;
|
|
2052
|
+
};
|
|
2053
|
+
return {
|
|
2054
|
+
getUrl,
|
|
2055
|
+
httpMethod: "POST",
|
|
2056
|
+
path: "/v5/contacts/{contactId}/image/upload-url",
|
|
2057
|
+
pathParams: { contactId: "contactId" },
|
|
2058
|
+
__requestType: null,
|
|
2059
|
+
__originalRequestType: null,
|
|
2060
|
+
__responseType: null,
|
|
2061
|
+
__originalResponseType: null
|
|
2062
|
+
};
|
|
2063
|
+
}
|
|
2064
|
+
function addContactAdditionalEmail2() {
|
|
2065
|
+
const payload = { contactId: ":contactId" };
|
|
2066
|
+
const getRequestOptions = addContactAdditionalEmail(payload);
|
|
2067
|
+
const getUrl = (context) => {
|
|
2068
|
+
const { url } = getRequestOptions(context);
|
|
2069
|
+
return url;
|
|
2070
|
+
};
|
|
2071
|
+
return {
|
|
2072
|
+
getUrl,
|
|
2073
|
+
httpMethod: "POST",
|
|
2074
|
+
path: "/v5/contacts/{contactId}/additional-emails",
|
|
2075
|
+
pathParams: { contactId: "contactId" },
|
|
2076
|
+
__requestType: null,
|
|
2077
|
+
__originalRequestType: null,
|
|
2078
|
+
__responseType: null,
|
|
2079
|
+
__originalResponseType: null
|
|
2080
|
+
};
|
|
2081
|
+
}
|
|
2082
|
+
function addContactAdditionalPhone2() {
|
|
2083
|
+
const payload = { contactId: ":contactId" };
|
|
2084
|
+
const getRequestOptions = addContactAdditionalPhone(payload);
|
|
2085
|
+
const getUrl = (context) => {
|
|
2086
|
+
const { url } = getRequestOptions(context);
|
|
2087
|
+
return url;
|
|
2088
|
+
};
|
|
2089
|
+
return {
|
|
2090
|
+
getUrl,
|
|
2091
|
+
httpMethod: "POST",
|
|
2092
|
+
path: "/v5/contacts/{contactId}/additional-phones",
|
|
2093
|
+
pathParams: { contactId: "contactId" },
|
|
2094
|
+
__requestType: null,
|
|
2095
|
+
__originalRequestType: null,
|
|
2096
|
+
__responseType: null,
|
|
2097
|
+
__originalResponseType: null
|
|
2098
|
+
};
|
|
2099
|
+
}
|
|
2100
|
+
function addContactAddress2() {
|
|
2101
|
+
const payload = { contactId: ":contactId" };
|
|
2102
|
+
const getRequestOptions = addContactAddress(payload);
|
|
2103
|
+
const getUrl = (context) => {
|
|
2104
|
+
const { url } = getRequestOptions(context);
|
|
2105
|
+
return url;
|
|
2106
|
+
};
|
|
2107
|
+
return {
|
|
2108
|
+
getUrl,
|
|
2109
|
+
httpMethod: "POST",
|
|
2110
|
+
path: "/v5/contacts/{contactId}/addresses",
|
|
2111
|
+
pathParams: { contactId: "contactId" },
|
|
2112
|
+
__requestType: null,
|
|
2113
|
+
__originalRequestType: null,
|
|
2114
|
+
__responseType: null,
|
|
2115
|
+
__originalResponseType: null
|
|
2116
|
+
};
|
|
2117
|
+
}
|
|
2118
|
+
function deleteContactAddress2() {
|
|
2119
|
+
const payload = { contactId: ":contactId", addressId: ":addressId" };
|
|
2120
|
+
const getRequestOptions = deleteContactAddress(payload);
|
|
2121
|
+
const getUrl = (context) => {
|
|
2122
|
+
const { url } = getRequestOptions(context);
|
|
2123
|
+
return url;
|
|
2124
|
+
};
|
|
2125
|
+
return {
|
|
2126
|
+
getUrl,
|
|
2127
|
+
httpMethod: "DELETE",
|
|
2128
|
+
path: "/v5/contacts/{contactId}/addresses/{addressId}",
|
|
2129
|
+
pathParams: { contactId: "contactId", addressId: "addressId" },
|
|
2130
|
+
__requestType: null,
|
|
2131
|
+
__originalRequestType: null,
|
|
2132
|
+
__responseType: null,
|
|
2133
|
+
__originalResponseType: null
|
|
2134
|
+
};
|
|
2135
|
+
}
|
|
2136
|
+
function updateContactAddress2() {
|
|
2137
|
+
const payload = {
|
|
2138
|
+
contactId: ":contactId",
|
|
2139
|
+
address: { id: ":addressId" }
|
|
2140
|
+
};
|
|
2141
|
+
const getRequestOptions = updateContactAddress(payload);
|
|
2142
|
+
const getUrl = (context) => {
|
|
2143
|
+
const { url } = getRequestOptions(context);
|
|
2144
|
+
return url;
|
|
2145
|
+
};
|
|
2146
|
+
return {
|
|
2147
|
+
getUrl,
|
|
2148
|
+
httpMethod: "PATCH",
|
|
2149
|
+
path: "/v5/contacts/{contactId}/addresses/{address.id}",
|
|
2150
|
+
pathParams: { contactId: "contactId", addressId: "addressId" },
|
|
2151
|
+
__requestType: null,
|
|
2152
|
+
__originalRequestType: null,
|
|
2153
|
+
__responseType: null,
|
|
2154
|
+
__originalResponseType: null
|
|
2155
|
+
};
|
|
2156
|
+
}
|
|
2157
|
+
function bulkCreateContacts2() {
|
|
2158
|
+
const payload = {};
|
|
2159
|
+
const getRequestOptions = bulkCreateContacts(payload);
|
|
2160
|
+
const getUrl = (context) => {
|
|
2161
|
+
const { url } = getRequestOptions(context);
|
|
2162
|
+
return url;
|
|
2163
|
+
};
|
|
2164
|
+
return {
|
|
2165
|
+
getUrl,
|
|
2166
|
+
httpMethod: "POST",
|
|
2167
|
+
path: "/v5/bulk/contacts/create",
|
|
2168
|
+
pathParams: {},
|
|
2169
|
+
__requestType: null,
|
|
2170
|
+
__originalRequestType: null,
|
|
2171
|
+
__responseType: null,
|
|
2172
|
+
__originalResponseType: null
|
|
2173
|
+
};
|
|
2174
|
+
}
|
|
2175
|
+
function bulkUpdateContacts2() {
|
|
2176
|
+
const payload = {};
|
|
2177
|
+
const getRequestOptions = bulkUpdateContacts(payload);
|
|
2178
|
+
const getUrl = (context) => {
|
|
2179
|
+
const { url } = getRequestOptions(context);
|
|
2180
|
+
return url;
|
|
2181
|
+
};
|
|
2182
|
+
return {
|
|
2183
|
+
getUrl,
|
|
2184
|
+
httpMethod: "POST",
|
|
2185
|
+
path: "/v5/bulk/contacts/update",
|
|
2186
|
+
pathParams: {},
|
|
2187
|
+
__requestType: null,
|
|
2188
|
+
__originalRequestType: null,
|
|
2189
|
+
__responseType: null,
|
|
2190
|
+
__originalResponseType: null
|
|
2191
|
+
};
|
|
2192
|
+
}
|
|
2193
|
+
function bulkUpdateContactTags2() {
|
|
2194
|
+
const payload = {};
|
|
2195
|
+
const getRequestOptions = bulkUpdateContactTags(payload);
|
|
2196
|
+
const getUrl = (context) => {
|
|
2197
|
+
const { url } = getRequestOptions(context);
|
|
2198
|
+
return url;
|
|
2199
|
+
};
|
|
2200
|
+
return {
|
|
2201
|
+
getUrl,
|
|
2202
|
+
httpMethod: "POST",
|
|
2203
|
+
path: "/v5/bulk/contacts/update-tags",
|
|
2204
|
+
pathParams: {},
|
|
2205
|
+
__requestType: null,
|
|
2206
|
+
__originalRequestType: null,
|
|
2207
|
+
__responseType: null,
|
|
2208
|
+
__originalResponseType: null
|
|
2209
|
+
};
|
|
2210
|
+
}
|
|
2211
|
+
function bulkUpdateContactTagsByFilter2() {
|
|
2212
|
+
const payload = {};
|
|
2213
|
+
const getRequestOptions = bulkUpdateContactTagsByFilter(payload);
|
|
2214
|
+
const getUrl = (context) => {
|
|
2215
|
+
const { url } = getRequestOptions(context);
|
|
2216
|
+
return url;
|
|
2217
|
+
};
|
|
2218
|
+
return {
|
|
2219
|
+
getUrl,
|
|
2220
|
+
httpMethod: "POST",
|
|
2221
|
+
path: "/v5/bulk/contacts/update-tags-by-filter",
|
|
2222
|
+
pathParams: {},
|
|
2223
|
+
__requestType: null,
|
|
2224
|
+
__originalRequestType: null,
|
|
2225
|
+
__responseType: null,
|
|
2226
|
+
__originalResponseType: null
|
|
2227
|
+
};
|
|
2228
|
+
}
|
|
2229
|
+
function bulkUpsertContacts2() {
|
|
2230
|
+
const payload = {};
|
|
2231
|
+
const getRequestOptions = bulkUpsertContacts(payload);
|
|
2232
|
+
const getUrl = (context) => {
|
|
2233
|
+
const { url } = getRequestOptions(context);
|
|
2234
|
+
return url;
|
|
2235
|
+
};
|
|
2236
|
+
return {
|
|
2237
|
+
getUrl,
|
|
2238
|
+
httpMethod: "POST",
|
|
2239
|
+
path: "/v5/bulk/contacts/upsert",
|
|
2240
|
+
pathParams: {},
|
|
2241
|
+
__requestType: null,
|
|
2242
|
+
__originalRequestType: null,
|
|
2243
|
+
__responseType: null,
|
|
2244
|
+
__originalResponseType: null
|
|
2245
|
+
};
|
|
2246
|
+
}
|
|
2247
|
+
function bulkDeleteContacts2() {
|
|
2248
|
+
const payload = {};
|
|
2249
|
+
const getRequestOptions = bulkDeleteContacts(payload);
|
|
2250
|
+
const getUrl = (context) => {
|
|
2251
|
+
const { url } = getRequestOptions(context);
|
|
2252
|
+
return url;
|
|
2253
|
+
};
|
|
2254
|
+
return {
|
|
2255
|
+
getUrl,
|
|
2256
|
+
httpMethod: "POST",
|
|
2257
|
+
path: "/v5/bulk/contacts/delete",
|
|
2258
|
+
pathParams: {},
|
|
2259
|
+
__requestType: null,
|
|
2260
|
+
__originalRequestType: null,
|
|
2261
|
+
__responseType: null,
|
|
2262
|
+
__originalResponseType: null
|
|
2263
|
+
};
|
|
2264
|
+
}
|
|
2265
|
+
function bulkDeleteContactsByFilter2() {
|
|
2266
|
+
const payload = {};
|
|
2267
|
+
const getRequestOptions = bulkDeleteContactsByFilter(payload);
|
|
2268
|
+
const getUrl = (context) => {
|
|
2269
|
+
const { url } = getRequestOptions(context);
|
|
2270
|
+
return url;
|
|
2271
|
+
};
|
|
2272
|
+
return {
|
|
2273
|
+
getUrl,
|
|
2274
|
+
httpMethod: "POST",
|
|
2275
|
+
path: "/v5/bulk/contacts/delete-by-filter",
|
|
2276
|
+
pathParams: {},
|
|
2277
|
+
__requestType: null,
|
|
2278
|
+
__originalRequestType: null,
|
|
2279
|
+
__responseType: null,
|
|
2280
|
+
__originalResponseType: null
|
|
2281
|
+
};
|
|
2282
|
+
}
|
|
2283
|
+
function removeContactFromTrashBin2() {
|
|
2284
|
+
const payload = { contactId: ":contactId" };
|
|
2285
|
+
const getRequestOptions = removeContactFromTrashBin(payload);
|
|
2286
|
+
const getUrl = (context) => {
|
|
2287
|
+
const { url } = getRequestOptions(context);
|
|
2288
|
+
return url;
|
|
2289
|
+
};
|
|
2290
|
+
return {
|
|
2291
|
+
getUrl,
|
|
2292
|
+
httpMethod: "DELETE",
|
|
2293
|
+
path: "/v5/contacts/trash-bin/{contactId}",
|
|
2294
|
+
pathParams: { contactId: "contactId" },
|
|
2295
|
+
__requestType: null,
|
|
2296
|
+
__originalRequestType: null,
|
|
2297
|
+
__responseType: null,
|
|
2298
|
+
__originalResponseType: null
|
|
2299
|
+
};
|
|
2300
|
+
}
|
|
2301
|
+
function restoreContactFromTrashBin2() {
|
|
2302
|
+
const payload = { contactId: ":contactId" };
|
|
2303
|
+
const getRequestOptions = restoreContactFromTrashBin(payload);
|
|
2304
|
+
const getUrl = (context) => {
|
|
2305
|
+
const { url } = getRequestOptions(context);
|
|
2306
|
+
return url;
|
|
2307
|
+
};
|
|
2308
|
+
return {
|
|
2309
|
+
getUrl,
|
|
2310
|
+
httpMethod: "POST",
|
|
2311
|
+
path: "/v5/contacts/trash-bin/{contactId}/restore",
|
|
2312
|
+
pathParams: { contactId: "contactId" },
|
|
2313
|
+
__requestType: null,
|
|
2314
|
+
__originalRequestType: null,
|
|
2315
|
+
__responseType: null,
|
|
2316
|
+
__originalResponseType: null
|
|
2317
|
+
};
|
|
2318
|
+
}
|
|
2319
|
+
function bulkRestoreContactsFromTrashBin2() {
|
|
2320
|
+
const payload = {};
|
|
2321
|
+
const getRequestOptions = bulkRestoreContactsFromTrashBin(payload);
|
|
2322
|
+
const getUrl = (context) => {
|
|
2323
|
+
const { url } = getRequestOptions(context);
|
|
2324
|
+
return url;
|
|
2325
|
+
};
|
|
2326
|
+
return {
|
|
2327
|
+
getUrl,
|
|
2328
|
+
httpMethod: "POST",
|
|
2329
|
+
path: "/v5/bulk/contacts/trash-bin/restore",
|
|
2330
|
+
pathParams: {},
|
|
2331
|
+
__requestType: null,
|
|
2332
|
+
__originalRequestType: null,
|
|
2333
|
+
__responseType: null,
|
|
2334
|
+
__originalResponseType: null
|
|
2335
|
+
};
|
|
2336
|
+
}
|
|
2337
|
+
function getDeletedContact2() {
|
|
2338
|
+
const payload = { contactId: ":contactId" };
|
|
2339
|
+
const getRequestOptions = getDeletedContact(payload);
|
|
2340
|
+
const getUrl = (context) => {
|
|
2341
|
+
const { url } = getRequestOptions(context);
|
|
2342
|
+
return url;
|
|
2343
|
+
};
|
|
2344
|
+
return {
|
|
2345
|
+
getUrl,
|
|
2346
|
+
httpMethod: "GET",
|
|
2347
|
+
path: "/v5/contacts/trash-bin/{contactId}",
|
|
2348
|
+
pathParams: { contactId: "contactId" },
|
|
2349
|
+
__requestType: null,
|
|
2350
|
+
__originalRequestType: null,
|
|
2351
|
+
__responseType: null,
|
|
2352
|
+
__originalResponseType: null
|
|
2353
|
+
};
|
|
2354
|
+
}
|
|
2355
|
+
function listDeletedContacts2() {
|
|
2356
|
+
const payload = {};
|
|
2357
|
+
const getRequestOptions = listDeletedContacts(payload);
|
|
2358
|
+
const getUrl = (context) => {
|
|
2359
|
+
const { url } = getRequestOptions(context);
|
|
2360
|
+
return url;
|
|
2361
|
+
};
|
|
2362
|
+
return {
|
|
2363
|
+
getUrl,
|
|
2364
|
+
httpMethod: "GET",
|
|
2365
|
+
path: "/v5/contacts/trash-bin",
|
|
2366
|
+
pathParams: {},
|
|
2367
|
+
__requestType: null,
|
|
2368
|
+
__originalRequestType: null,
|
|
2369
|
+
__responseType: null,
|
|
2370
|
+
__originalResponseType: null
|
|
2371
|
+
};
|
|
2372
|
+
}
|
|
2373
|
+
function getContactImageUploadStatus2() {
|
|
2374
|
+
const payload = {
|
|
2375
|
+
contactId: ":contactId",
|
|
2376
|
+
imageUploadId: ":imageUploadId"
|
|
2377
|
+
};
|
|
2378
|
+
const getRequestOptions = getContactImageUploadStatus(payload);
|
|
2379
|
+
const getUrl = (context) => {
|
|
2380
|
+
const { url } = getRequestOptions(context);
|
|
2381
|
+
return url;
|
|
2382
|
+
};
|
|
2383
|
+
return {
|
|
2384
|
+
getUrl,
|
|
2385
|
+
httpMethod: "GET",
|
|
2386
|
+
path: "/v5/contacts/{contactId}/image-upload/{imageUploadId}",
|
|
2387
|
+
pathParams: { contactId: "contactId", imageUploadId: "imageUploadId" },
|
|
2388
|
+
__requestType: null,
|
|
2389
|
+
__originalRequestType: null,
|
|
2390
|
+
__responseType: null,
|
|
2391
|
+
__originalResponseType: null
|
|
2392
|
+
};
|
|
2393
|
+
}
|
|
2394
|
+
function bulkUpdatePhoneCountryCodeByFilter2() {
|
|
2395
|
+
const payload = {};
|
|
2396
|
+
const getRequestOptions = bulkUpdatePhoneCountryCodeByFilter(payload);
|
|
2397
|
+
const getUrl = (context) => {
|
|
2398
|
+
const { url } = getRequestOptions(context);
|
|
2399
|
+
return url;
|
|
2400
|
+
};
|
|
2401
|
+
return {
|
|
2402
|
+
getUrl,
|
|
2403
|
+
httpMethod: "POST",
|
|
2404
|
+
path: "/v5/bulk/contacts/update-phone-country-code-by-filter",
|
|
2405
|
+
pathParams: {},
|
|
2406
|
+
__requestType: null,
|
|
2407
|
+
__originalRequestType: null,
|
|
2408
|
+
__responseType: null,
|
|
2409
|
+
__originalResponseType: null
|
|
2410
|
+
};
|
|
2411
|
+
}
|
|
2412
|
+
export {
|
|
2413
|
+
Action as ActionOriginal,
|
|
2414
|
+
AddressTag as AddressTagOriginal,
|
|
2415
|
+
AggregationType as AggregationTypeOriginal,
|
|
2416
|
+
EmailDeliverabilityStatus as EmailDeliverabilityStatusOriginal,
|
|
2417
|
+
ImageUploadStatus as ImageUploadStatusOriginal,
|
|
2418
|
+
Interval as IntervalOriginal,
|
|
2419
|
+
MatchType as MatchTypeOriginal,
|
|
2420
|
+
MemberStatus as MemberStatusOriginal,
|
|
2421
|
+
MissingValues as MissingValuesOriginal,
|
|
2422
|
+
Mode as ModeOriginal,
|
|
2423
|
+
NameFormat as NameFormatOriginal,
|
|
2424
|
+
NestedAggregationType as NestedAggregationTypeOriginal,
|
|
2425
|
+
PhoneDeliverabilityStatus as PhoneDeliverabilityStatusOriginal,
|
|
2426
|
+
PhoneTag as PhoneTagOriginal,
|
|
2427
|
+
PrivacyStatus as PrivacyStatusOriginal,
|
|
2428
|
+
QueryContactsByOffsetInternalRequestNameFormat as QueryContactsByOffsetInternalRequestNameFormatOriginal,
|
|
2429
|
+
Role as RoleOriginal,
|
|
2430
|
+
ScalarType as ScalarTypeOriginal,
|
|
2431
|
+
SortDirection as SortDirectionOriginal,
|
|
2432
|
+
SortOrder as SortOrderOriginal,
|
|
2433
|
+
SortType as SortTypeOriginal,
|
|
2434
|
+
SubdivisionType as SubdivisionTypeOriginal,
|
|
2435
|
+
SubscriptionStatus as SubscriptionStatusOriginal,
|
|
2436
|
+
UpsertContactResponseAction as UpsertContactResponseActionOriginal,
|
|
2437
|
+
UpsertMode as UpsertModeOriginal,
|
|
2438
|
+
V5SubscriptionStatus as V5SubscriptionStatusOriginal,
|
|
2439
|
+
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
2440
|
+
addContactAdditionalEmail2 as addContactAdditionalEmail,
|
|
2441
|
+
addContactAdditionalPhone2 as addContactAdditionalPhone,
|
|
2442
|
+
addContactAddress2 as addContactAddress,
|
|
2443
|
+
bulkCreateContacts2 as bulkCreateContacts,
|
|
2444
|
+
bulkDeleteContacts2 as bulkDeleteContacts,
|
|
2445
|
+
bulkDeleteContactsByFilter2 as bulkDeleteContactsByFilter,
|
|
2446
|
+
bulkRestoreContactsFromTrashBin2 as bulkRestoreContactsFromTrashBin,
|
|
2447
|
+
bulkUpdateContactSubscriptions2 as bulkUpdateContactSubscriptions,
|
|
2448
|
+
bulkUpdateContactTags2 as bulkUpdateContactTags,
|
|
2449
|
+
bulkUpdateContactTagsByFilter2 as bulkUpdateContactTagsByFilter,
|
|
2450
|
+
bulkUpdateContacts2 as bulkUpdateContacts,
|
|
2451
|
+
bulkUpdatePhoneCountryCodeByFilter2 as bulkUpdatePhoneCountryCodeByFilter,
|
|
2452
|
+
bulkUpsertContacts2 as bulkUpsertContacts,
|
|
2453
|
+
countContacts2 as countContacts,
|
|
2454
|
+
createContact2 as createContact,
|
|
2455
|
+
deleteContact2 as deleteContact,
|
|
2456
|
+
deleteContactAddress2 as deleteContactAddress,
|
|
2457
|
+
findMatchingContacts2 as findMatchingContacts,
|
|
2458
|
+
generateContactImageUploadUrl2 as generateContactImageUploadUrl,
|
|
2459
|
+
getContact2 as getContact,
|
|
2460
|
+
getContactImageUploadStatus2 as getContactImageUploadStatus,
|
|
2461
|
+
getDeletedContact2 as getDeletedContact,
|
|
2462
|
+
listDeletedContacts2 as listDeletedContacts,
|
|
2463
|
+
mergeContacts2 as mergeContacts,
|
|
2464
|
+
queryContacts2 as queryContacts,
|
|
2465
|
+
removeContactFromTrashBin2 as removeContactFromTrashBin,
|
|
2466
|
+
restoreContactFromTrashBin2 as restoreContactFromTrashBin,
|
|
2467
|
+
searchContacts2 as searchContacts,
|
|
2468
|
+
updateContact2 as updateContact,
|
|
2469
|
+
updateContactAddress2 as updateContactAddress,
|
|
2470
|
+
updateContactTags2 as updateContactTags,
|
|
2471
|
+
upsertContact2 as upsertContact
|
|
2472
|
+
};
|
|
2473
|
+
//# sourceMappingURL=meta.mjs.map
|