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