@wix/auto_sdk_crm_contacts 1.0.255 → 1.0.257

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 (130) hide show
  1. package/build/{cjs/src/contacts-v4-contact-contacts.types.d.ts → contacts-v4-contact-contacts.universal-B3uIE5qF.d.mts} +363 -193
  2. package/build/{internal/cjs/src/contacts-v4-contact-contacts.types.d.ts → contacts-v4-contact-contacts.universal-B3uIE5qF.d.ts} +363 -193
  3. package/build/{cjs/src/contacts-v4-contact-contacts.public.d.ts → index.d.mts} +43 -18
  4. package/build/{es/src/contacts-v4-contact-contacts.public.d.ts → index.d.ts} +43 -18
  5. package/build/index.js +1338 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1281 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/contacts-v4-contact-contacts.types.d.ts → contacts-v4-contact-contacts.universal-CdMlf2ui.d.mts} +370 -189
  10. package/build/{es/src/contacts-v4-contact-contacts.types.d.ts → internal/contacts-v4-contact-contacts.universal-CdMlf2ui.d.ts} +370 -189
  11. package/build/internal/{cjs/src/contacts-v4-contact-contacts.public.d.ts → index.d.mts} +43 -18
  12. package/build/internal/{es/src/contacts-v4-contact-contacts.public.d.ts → index.d.ts} +43 -18
  13. package/build/internal/index.js +1338 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1281 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +914 -0
  18. package/build/internal/meta.d.ts +914 -0
  19. package/build/internal/meta.js +618 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +584 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +914 -0
  24. package/build/meta.d.ts +914 -0
  25. package/build/meta.js +618 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +584 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/contacts-v4-contact-contacts.context.d.ts +0 -36
  40. package/build/cjs/src/contacts-v4-contact-contacts.context.js +0 -61
  41. package/build/cjs/src/contacts-v4-contact-contacts.context.js.map +0 -1
  42. package/build/cjs/src/contacts-v4-contact-contacts.http.d.ts +0 -126
  43. package/build/cjs/src/contacts-v4-contact-contacts.http.js +0 -555
  44. package/build/cjs/src/contacts-v4-contact-contacts.http.js.map +0 -1
  45. package/build/cjs/src/contacts-v4-contact-contacts.meta.d.ts +0 -32
  46. package/build/cjs/src/contacts-v4-contact-contacts.meta.js +0 -180
  47. package/build/cjs/src/contacts-v4-contact-contacts.meta.js.map +0 -1
  48. package/build/cjs/src/contacts-v4-contact-contacts.public.js +0 -193
  49. package/build/cjs/src/contacts-v4-contact-contacts.public.js.map +0 -1
  50. package/build/cjs/src/contacts-v4-contact-contacts.types.js +0 -278
  51. package/build/cjs/src/contacts-v4-contact-contacts.types.js.map +0 -1
  52. package/build/cjs/src/contacts-v4-contact-contacts.universal.d.ts +0 -2398
  53. package/build/cjs/src/contacts-v4-contact-contacts.universal.js +0 -911
  54. package/build/cjs/src/contacts-v4-contact-contacts.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/contacts-v4-contact-contacts.context.d.ts +0 -36
  66. package/build/es/src/contacts-v4-contact-contacts.context.js +0 -36
  67. package/build/es/src/contacts-v4-contact-contacts.context.js.map +0 -1
  68. package/build/es/src/contacts-v4-contact-contacts.http.d.ts +0 -126
  69. package/build/es/src/contacts-v4-contact-contacts.http.js +0 -544
  70. package/build/es/src/contacts-v4-contact-contacts.http.js.map +0 -1
  71. package/build/es/src/contacts-v4-contact-contacts.meta.d.ts +0 -32
  72. package/build/es/src/contacts-v4-contact-contacts.meta.js +0 -146
  73. package/build/es/src/contacts-v4-contact-contacts.meta.js.map +0 -1
  74. package/build/es/src/contacts-v4-contact-contacts.public.js +0 -160
  75. package/build/es/src/contacts-v4-contact-contacts.public.js.map +0 -1
  76. package/build/es/src/contacts-v4-contact-contacts.types.js +0 -275
  77. package/build/es/src/contacts-v4-contact-contacts.types.js.map +0 -1
  78. package/build/es/src/contacts-v4-contact-contacts.universal.d.ts +0 -2398
  79. package/build/es/src/contacts-v4-contact-contacts.universal.js +0 -877
  80. package/build/es/src/contacts-v4-contact-contacts.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/contacts-v4-contact-contacts.context.d.ts +0 -36
  91. package/build/internal/cjs/src/contacts-v4-contact-contacts.context.js +0 -61
  92. package/build/internal/cjs/src/contacts-v4-contact-contacts.context.js.map +0 -1
  93. package/build/internal/cjs/src/contacts-v4-contact-contacts.http.d.ts +0 -126
  94. package/build/internal/cjs/src/contacts-v4-contact-contacts.http.js +0 -555
  95. package/build/internal/cjs/src/contacts-v4-contact-contacts.http.js.map +0 -1
  96. package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.d.ts +0 -32
  97. package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.js +0 -180
  98. package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.js.map +0 -1
  99. package/build/internal/cjs/src/contacts-v4-contact-contacts.public.js +0 -193
  100. package/build/internal/cjs/src/contacts-v4-contact-contacts.public.js.map +0 -1
  101. package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js +0 -278
  102. package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js.map +0 -1
  103. package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.d.ts +0 -2409
  104. package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js +0 -911
  105. package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/contacts-v4-contact-contacts.context.d.ts +0 -36
  116. package/build/internal/es/src/contacts-v4-contact-contacts.context.js +0 -36
  117. package/build/internal/es/src/contacts-v4-contact-contacts.context.js.map +0 -1
  118. package/build/internal/es/src/contacts-v4-contact-contacts.http.d.ts +0 -126
  119. package/build/internal/es/src/contacts-v4-contact-contacts.http.js +0 -544
  120. package/build/internal/es/src/contacts-v4-contact-contacts.http.js.map +0 -1
  121. package/build/internal/es/src/contacts-v4-contact-contacts.meta.d.ts +0 -32
  122. package/build/internal/es/src/contacts-v4-contact-contacts.meta.js +0 -146
  123. package/build/internal/es/src/contacts-v4-contact-contacts.meta.js.map +0 -1
  124. package/build/internal/es/src/contacts-v4-contact-contacts.public.js +0 -160
  125. package/build/internal/es/src/contacts-v4-contact-contacts.public.js.map +0 -1
  126. package/build/internal/es/src/contacts-v4-contact-contacts.types.js +0 -275
  127. package/build/internal/es/src/contacts-v4-contact-contacts.types.js.map +0 -1
  128. package/build/internal/es/src/contacts-v4-contact-contacts.universal.d.ts +0 -2409
  129. package/build/internal/es/src/contacts-v4-contact-contacts.universal.js +0 -877
  130. package/build/internal/es/src/contacts-v4-contact-contacts.universal.js.map +0 -1
package/build/index.js ADDED
@@ -0,0 +1,1338 @@
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
+ // index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Action: () => Action,
24
+ AddressTag: () => AddressTag,
25
+ ContactActivityType: () => ContactActivityType,
26
+ ContactFieldSet: () => ContactFieldSet,
27
+ ContactSourceType: () => ContactSourceType,
28
+ ContactsFacetType: () => ContactsFacetType,
29
+ EmailDeliverabilityStatus: () => EmailDeliverabilityStatus,
30
+ EmailTag: () => EmailTag,
31
+ GetContactResponseType: () => GetContactResponseType,
32
+ ImageProvider: () => ImageProvider,
33
+ MemberStatus: () => MemberStatus,
34
+ Mode: () => Mode,
35
+ PhoneDeliverabilityStatus: () => PhoneDeliverabilityStatus,
36
+ PhoneTag: () => PhoneTag,
37
+ PrivacyStatus: () => PrivacyStatus,
38
+ Role: () => Role,
39
+ SortOrder: () => SortOrder,
40
+ SubdivisionType: () => SubdivisionType,
41
+ SubmitOperation: () => SubmitOperation,
42
+ SubscriptionStatus: () => SubscriptionStatus,
43
+ UpsertContactResponseAction: () => UpsertContactResponseAction,
44
+ WebhookIdentityType: () => WebhookIdentityType,
45
+ createContact: () => createContact4,
46
+ deleteContact: () => deleteContact4,
47
+ getContact: () => getContact4,
48
+ labelContact: () => labelContact4,
49
+ mergeContacts: () => mergeContacts4,
50
+ onContactCreated: () => onContactCreated2,
51
+ onContactDeleted: () => onContactDeleted2,
52
+ onContactMerged: () => onContactMerged2,
53
+ onContactUpdated: () => onContactUpdated2,
54
+ queryContacts: () => queryContacts4,
55
+ unlabelContact: () => unlabelContact4,
56
+ updateContact: () => updateContact4
57
+ });
58
+ module.exports = __toCommonJS(index_exports);
59
+
60
+ // src/contacts-v4-contact-contacts.public.ts
61
+ var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
62
+ var import_address3 = require("@wix/sdk-runtime/transformations/address");
63
+ var import_image3 = require("@wix/sdk-runtime/transformations/image");
64
+ var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
65
+ var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
66
+ var import_sdk_types = require("@wix/sdk-types");
67
+
68
+ // src/contacts-v4-contact-contacts.universal.ts
69
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
70
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
71
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
72
+
73
+ // src/contacts-v4-contact-contacts.http.ts
74
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
75
+ var import_float = require("@wix/sdk-runtime/transformations/float");
76
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
77
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
78
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
79
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
80
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
81
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
82
+ function resolveComWixpressContactsCoreApiV4ContactsServiceV4Url(opts) {
83
+ const domainToMappings = {
84
+ "www._base_domain_": [
85
+ {
86
+ srcPath: "/_api/contacts/v4/contacts",
87
+ destPath: "/v4/contacts"
88
+ },
89
+ {
90
+ srcPath: "/_api/contacts/v4/bulk",
91
+ destPath: "/v4/bulk"
92
+ }
93
+ ],
94
+ "www.wixapis.com": [
95
+ {
96
+ srcPath: "/contacts/v4/contacts",
97
+ destPath: "/v4/contacts"
98
+ },
99
+ {
100
+ srcPath: "/contacts/v4/bulk",
101
+ destPath: "/v4/bulk"
102
+ }
103
+ ],
104
+ "manage._base_domain_": [
105
+ {
106
+ srcPath: "/_api/contacts/v4/contacts",
107
+ destPath: "/v4/contacts"
108
+ },
109
+ {
110
+ srcPath: "/_api/contacts/v4/bulk",
111
+ destPath: "/v4/bulk"
112
+ }
113
+ ],
114
+ "manage.nownia.com": [
115
+ {
116
+ srcPath: "/_api/contacts/v4/contacts",
117
+ destPath: "/v4/contacts"
118
+ },
119
+ {
120
+ srcPath: "/_api/contacts/v4/bulk",
121
+ destPath: "/v4/bulk"
122
+ }
123
+ ]
124
+ };
125
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
126
+ }
127
+ var PACKAGE_NAME = "@wix/auto_sdk_crm_contacts";
128
+ function createContact(payload) {
129
+ function __createContact({ host }) {
130
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
131
+ {
132
+ transformFn: import_float.transformSDKFloatToRESTFloat,
133
+ paths: [
134
+ { path: "info.addresses.items.address.geocode.latitude" },
135
+ { path: "info.addresses.items.address.geocode.longitude" }
136
+ ]
137
+ },
138
+ {
139
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
140
+ paths: [{ path: "info.picture.image.urlExpirationDate" }]
141
+ }
142
+ ]);
143
+ const metadata = {
144
+ entityFqdn: "wix.contacts.v4.contact",
145
+ method: "POST",
146
+ methodFqn: "com.wixpress.contacts.core.api.v4.ContactsServiceV4.CreateContact",
147
+ packageName: PACKAGE_NAME,
148
+ url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
149
+ protoPath: "/v4/contacts",
150
+ data: serializedData,
151
+ host
152
+ }),
153
+ data: serializedData,
154
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
155
+ {
156
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
157
+ paths: [
158
+ { path: "contact.createdDate" },
159
+ { path: "contact.updatedDate" },
160
+ { path: "contact.lastActivity.activityDate" },
161
+ { path: "contact.lastActivity.date" },
162
+ { path: "contact.picture.urlExpirationDate" },
163
+ { path: "contact.info.picture.image.urlExpirationDate" },
164
+ { path: "contact.memberInfo.signupDate" },
165
+ {
166
+ path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
167
+ },
168
+ { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
169
+ { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
170
+ ]
171
+ },
172
+ {
173
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
174
+ paths: [
175
+ { path: "contact.info.addresses.items.address.geocode.latitude" },
176
+ {
177
+ path: "contact.info.addresses.items.address.geocode.longitude"
178
+ }
179
+ ]
180
+ }
181
+ ])
182
+ };
183
+ return metadata;
184
+ }
185
+ return __createContact;
186
+ }
187
+ function updateContact(payload) {
188
+ function __updateContact({ host }) {
189
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
190
+ {
191
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
192
+ paths: [{ path: "fieldMask" }]
193
+ },
194
+ {
195
+ transformFn: import_float.transformSDKFloatToRESTFloat,
196
+ paths: [
197
+ { path: "info.addresses.items.address.geocode.latitude" },
198
+ { path: "info.addresses.items.address.geocode.longitude" }
199
+ ]
200
+ },
201
+ {
202
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
203
+ paths: [{ path: "info.picture.image.urlExpirationDate" }]
204
+ }
205
+ ]);
206
+ const metadata = {
207
+ entityFqdn: "wix.contacts.v4.contact",
208
+ method: "PATCH",
209
+ methodFqn: "com.wixpress.contacts.core.api.v4.ContactsServiceV4.UpdateContact",
210
+ packageName: PACKAGE_NAME,
211
+ url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
212
+ protoPath: "/v4/contacts/{contactId}",
213
+ data: serializedData,
214
+ host
215
+ }),
216
+ data: serializedData,
217
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
218
+ {
219
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
220
+ paths: [
221
+ { path: "contact.createdDate" },
222
+ { path: "contact.updatedDate" },
223
+ { path: "contact.lastActivity.activityDate" },
224
+ { path: "contact.lastActivity.date" },
225
+ { path: "contact.picture.urlExpirationDate" },
226
+ { path: "contact.info.picture.image.urlExpirationDate" },
227
+ { path: "contact.memberInfo.signupDate" },
228
+ {
229
+ path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
230
+ },
231
+ { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
232
+ { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
233
+ ]
234
+ },
235
+ {
236
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
237
+ paths: [
238
+ { path: "contact.info.addresses.items.address.geocode.latitude" },
239
+ {
240
+ path: "contact.info.addresses.items.address.geocode.longitude"
241
+ }
242
+ ]
243
+ }
244
+ ])
245
+ };
246
+ return metadata;
247
+ }
248
+ return __updateContact;
249
+ }
250
+ function mergeContacts(payload) {
251
+ function __mergeContacts({ host }) {
252
+ const metadata = {
253
+ entityFqdn: "wix.contacts.v4.contact",
254
+ method: "POST",
255
+ methodFqn: "com.wixpress.contacts.core.api.v4.ContactsServiceV4.MergeContacts",
256
+ packageName: PACKAGE_NAME,
257
+ url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
258
+ protoPath: "/v4/contacts/{targetContactId}/merge",
259
+ data: payload,
260
+ host
261
+ }),
262
+ data: payload,
263
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
264
+ {
265
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
266
+ paths: [
267
+ { path: "contact.createdDate" },
268
+ { path: "contact.updatedDate" },
269
+ { path: "contact.lastActivity.activityDate" },
270
+ { path: "contact.lastActivity.date" },
271
+ { path: "contact.picture.urlExpirationDate" },
272
+ { path: "contact.info.picture.image.urlExpirationDate" },
273
+ { path: "contact.memberInfo.signupDate" },
274
+ {
275
+ path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
276
+ },
277
+ { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
278
+ { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
279
+ ]
280
+ },
281
+ {
282
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
283
+ paths: [
284
+ { path: "contact.info.addresses.items.address.geocode.latitude" },
285
+ {
286
+ path: "contact.info.addresses.items.address.geocode.longitude"
287
+ }
288
+ ]
289
+ }
290
+ ])
291
+ };
292
+ return metadata;
293
+ }
294
+ return __mergeContacts;
295
+ }
296
+ function deleteContact(payload) {
297
+ function __deleteContact({ host }) {
298
+ const metadata = {
299
+ entityFqdn: "wix.contacts.v4.contact",
300
+ method: "DELETE",
301
+ methodFqn: "com.wixpress.contacts.core.api.v4.ContactsServiceV4.DeleteContact",
302
+ packageName: PACKAGE_NAME,
303
+ url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
304
+ protoPath: "/v4/contacts/{contactId}",
305
+ data: payload,
306
+ host
307
+ }),
308
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
309
+ };
310
+ return metadata;
311
+ }
312
+ return __deleteContact;
313
+ }
314
+ function labelContact(payload) {
315
+ function __labelContact({ host }) {
316
+ const metadata = {
317
+ entityFqdn: "wix.contacts.v4.contact",
318
+ method: "POST",
319
+ methodFqn: "com.wixpress.contacts.core.api.v4.ContactsServiceV4.LabelContact",
320
+ packageName: PACKAGE_NAME,
321
+ url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
322
+ protoPath: "/v4/contacts/{contactId}/labels",
323
+ data: payload,
324
+ host
325
+ }),
326
+ data: payload,
327
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
328
+ {
329
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
330
+ paths: [
331
+ { path: "contact.createdDate" },
332
+ { path: "contact.updatedDate" },
333
+ { path: "contact.lastActivity.activityDate" },
334
+ { path: "contact.lastActivity.date" },
335
+ { path: "contact.picture.urlExpirationDate" },
336
+ { path: "contact.info.picture.image.urlExpirationDate" },
337
+ { path: "contact.memberInfo.signupDate" },
338
+ {
339
+ path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
340
+ },
341
+ { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
342
+ { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
343
+ ]
344
+ },
345
+ {
346
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
347
+ paths: [
348
+ { path: "contact.info.addresses.items.address.geocode.latitude" },
349
+ {
350
+ path: "contact.info.addresses.items.address.geocode.longitude"
351
+ }
352
+ ]
353
+ }
354
+ ])
355
+ };
356
+ return metadata;
357
+ }
358
+ return __labelContact;
359
+ }
360
+ function unlabelContact(payload) {
361
+ function __unlabelContact({ host }) {
362
+ const metadata = {
363
+ entityFqdn: "wix.contacts.v4.contact",
364
+ method: "DELETE",
365
+ methodFqn: "com.wixpress.contacts.core.api.v4.ContactsServiceV4.UnlabelContact",
366
+ packageName: PACKAGE_NAME,
367
+ url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
368
+ protoPath: "/v4/contacts/{contactId}/labels",
369
+ data: payload,
370
+ host
371
+ }),
372
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
373
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
374
+ {
375
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
376
+ paths: [
377
+ { path: "contact.createdDate" },
378
+ { path: "contact.updatedDate" },
379
+ { path: "contact.lastActivity.activityDate" },
380
+ { path: "contact.lastActivity.date" },
381
+ { path: "contact.picture.urlExpirationDate" },
382
+ { path: "contact.info.picture.image.urlExpirationDate" },
383
+ { path: "contact.memberInfo.signupDate" },
384
+ {
385
+ path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
386
+ },
387
+ { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
388
+ { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
389
+ ]
390
+ },
391
+ {
392
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
393
+ paths: [
394
+ { path: "contact.info.addresses.items.address.geocode.latitude" },
395
+ {
396
+ path: "contact.info.addresses.items.address.geocode.longitude"
397
+ }
398
+ ]
399
+ }
400
+ ])
401
+ };
402
+ return metadata;
403
+ }
404
+ return __unlabelContact;
405
+ }
406
+ function queryContacts(payload) {
407
+ function __queryContacts({ host }) {
408
+ const metadata = {
409
+ entityFqdn: "wix.contacts.v4.contact",
410
+ method: "POST",
411
+ methodFqn: "com.wixpress.contacts.core.api.v4.ContactsServiceV4.QueryContacts",
412
+ packageName: PACKAGE_NAME,
413
+ url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
414
+ protoPath: "/v4/contacts/query",
415
+ data: payload,
416
+ host
417
+ }),
418
+ data: payload,
419
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
420
+ {
421
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
422
+ paths: [
423
+ { path: "contacts.createdDate" },
424
+ { path: "contacts.updatedDate" },
425
+ { path: "contacts.lastActivity.activityDate" },
426
+ { path: "contacts.lastActivity.date" },
427
+ { path: "contacts.picture.urlExpirationDate" },
428
+ { path: "contacts.info.picture.image.urlExpirationDate" },
429
+ { path: "contacts.memberInfo.signupDate" },
430
+ {
431
+ path: "contacts.memberInfo.profileInfo.photo.urlExpirationDate"
432
+ },
433
+ { path: "contacts.memberInfo.sessionInfo.lastWebLogin" },
434
+ { path: "contacts.memberInfo.sessionInfo.lastMobileLogin" }
435
+ ]
436
+ },
437
+ {
438
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
439
+ paths: [
440
+ {
441
+ path: "contacts.info.addresses.items.address.geocode.latitude"
442
+ },
443
+ {
444
+ path: "contacts.info.addresses.items.address.geocode.longitude"
445
+ }
446
+ ]
447
+ }
448
+ ])
449
+ };
450
+ return metadata;
451
+ }
452
+ return __queryContacts;
453
+ }
454
+ function getContact(payload) {
455
+ function __getContact({ host }) {
456
+ const metadata = {
457
+ entityFqdn: "wix.contacts.v4.contact",
458
+ method: "GET",
459
+ methodFqn: "com.wixpress.contacts.core.api.v4.ContactsServiceV4.GetContact",
460
+ packageName: PACKAGE_NAME,
461
+ url: resolveComWixpressContactsCoreApiV4ContactsServiceV4Url({
462
+ protoPath: "/v4/contacts/{id}",
463
+ data: payload,
464
+ host
465
+ }),
466
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
467
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
468
+ {
469
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
470
+ paths: [
471
+ { path: "contact.createdDate" },
472
+ { path: "contact.updatedDate" },
473
+ { path: "contact.lastActivity.activityDate" },
474
+ { path: "contact.lastActivity.date" },
475
+ { path: "contact.picture.urlExpirationDate" },
476
+ { path: "contact.info.picture.image.urlExpirationDate" },
477
+ { path: "contact.memberInfo.signupDate" },
478
+ {
479
+ path: "contact.memberInfo.profileInfo.photo.urlExpirationDate"
480
+ },
481
+ { path: "contact.memberInfo.sessionInfo.lastWebLogin" },
482
+ { path: "contact.memberInfo.sessionInfo.lastMobileLogin" }
483
+ ]
484
+ },
485
+ {
486
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
487
+ paths: [
488
+ { path: "contact.info.addresses.items.address.geocode.latitude" },
489
+ {
490
+ path: "contact.info.addresses.items.address.geocode.longitude"
491
+ }
492
+ ]
493
+ }
494
+ ])
495
+ };
496
+ return metadata;
497
+ }
498
+ return __getContact;
499
+ }
500
+
501
+ // src/contacts-v4-contact-contacts.universal.ts
502
+ var import_address = require("@wix/sdk-runtime/transformations/address");
503
+ var import_address2 = require("@wix/sdk-runtime/transformations/address");
504
+ var import_image = require("@wix/sdk-runtime/transformations/image");
505
+ var import_image2 = require("@wix/sdk-runtime/transformations/image");
506
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
507
+ var ContactSourceType = /* @__PURE__ */ ((ContactSourceType2) => {
508
+ ContactSourceType2["OTHER"] = "OTHER";
509
+ ContactSourceType2["ADMIN"] = "ADMIN";
510
+ ContactSourceType2["WIX_APP"] = "WIX_APP";
511
+ ContactSourceType2["IMPORT"] = "IMPORT";
512
+ ContactSourceType2["THIRD_PARTY"] = "THIRD_PARTY";
513
+ ContactSourceType2["WIX_BOOKINGS"] = "WIX_BOOKINGS";
514
+ ContactSourceType2["WIX_CHAT"] = "WIX_CHAT";
515
+ ContactSourceType2["WIX_EMAIL_MARKETING"] = "WIX_EMAIL_MARKETING";
516
+ ContactSourceType2["WIX_EVENTS"] = "WIX_EVENTS";
517
+ ContactSourceType2["WIX_FORMS"] = "WIX_FORMS";
518
+ ContactSourceType2["WIX_GROUPS"] = "WIX_GROUPS";
519
+ ContactSourceType2["WIX_HOTELS"] = "WIX_HOTELS";
520
+ ContactSourceType2["WIX_MARKET_PLACE"] = "WIX_MARKET_PLACE";
521
+ ContactSourceType2["WIX_MUSIC"] = "WIX_MUSIC";
522
+ ContactSourceType2["WIX_RESTAURANTS"] = "WIX_RESTAURANTS";
523
+ ContactSourceType2["WIX_SITE_MEMBERS"] = "WIX_SITE_MEMBERS";
524
+ ContactSourceType2["WIX_STORES"] = "WIX_STORES";
525
+ ContactSourceType2["WIX_CODE"] = "WIX_CODE";
526
+ ContactSourceType2["HOPP"] = "HOPP";
527
+ return ContactSourceType2;
528
+ })(ContactSourceType || {});
529
+ var ContactActivityType = /* @__PURE__ */ ((ContactActivityType2) => {
530
+ ContactActivityType2["GENERAL"] = "GENERAL";
531
+ ContactActivityType2["CONTACT_CREATED"] = "CONTACT_CREATED";
532
+ ContactActivityType2["MEMBER_LOGIN"] = "MEMBER_LOGIN";
533
+ ContactActivityType2["MEMBER_REGISTER"] = "MEMBER_REGISTER";
534
+ ContactActivityType2["MEMBER_STATUS_CHANGED"] = "MEMBER_STATUS_CHANGED";
535
+ ContactActivityType2["FORM_SUBMITTED"] = "FORM_SUBMITTED";
536
+ ContactActivityType2["INBOX_FORM_SUBMITTED"] = "INBOX_FORM_SUBMITTED";
537
+ ContactActivityType2["INBOX_PAYMENT_REQUEST_PAID"] = "INBOX_PAYMENT_REQUEST_PAID";
538
+ ContactActivityType2["INBOX_MESSAGE_TO_CUSTOMER"] = "INBOX_MESSAGE_TO_CUSTOMER";
539
+ ContactActivityType2["INBOX_MESSAGE_FROM_CUSTOMER"] = "INBOX_MESSAGE_FROM_CUSTOMER";
540
+ ContactActivityType2["NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED"] = "NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED";
541
+ ContactActivityType2["NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE"] = "NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE";
542
+ ContactActivityType2["ECOM_PURCHASE"] = "ECOM_PURCHASE";
543
+ ContactActivityType2["ECOM_CART_ABANDON"] = "ECOM_CART_ABANDON";
544
+ ContactActivityType2["ECOM_CHECKOUT_BUYER"] = "ECOM_CHECKOUT_BUYER";
545
+ ContactActivityType2["BOOKINGS_APPOINTMENT"] = "BOOKINGS_APPOINTMENT";
546
+ ContactActivityType2["HOTELS_RESERVATION"] = "HOTELS_RESERVATION";
547
+ ContactActivityType2["HOTELS_PURCHASE"] = "HOTELS_PURCHASE";
548
+ ContactActivityType2["HOTELS_CONFIRMATION"] = "HOTELS_CONFIRMATION";
549
+ ContactActivityType2["HOTELS_CANCEL"] = "HOTELS_CANCEL";
550
+ ContactActivityType2["VIDEO_PURCHASE"] = "VIDEO_PURCHASE";
551
+ ContactActivityType2["VIDEO_RENT"] = "VIDEO_RENT";
552
+ ContactActivityType2["CASHIER_BUTTON_PURCHASE"] = "CASHIER_BUTTON_PURCHASE";
553
+ ContactActivityType2["ARENA_NEW_LEAD"] = "ARENA_NEW_LEAD";
554
+ ContactActivityType2["EVENTS_RSVP"] = "EVENTS_RSVP";
555
+ ContactActivityType2["INVOICE_PAY"] = "INVOICE_PAY";
556
+ ContactActivityType2["INVOICE_OVERDUE"] = "INVOICE_OVERDUE";
557
+ ContactActivityType2["PRICE_QUOTE_ACCEPT"] = "PRICE_QUOTE_ACCEPT";
558
+ ContactActivityType2["PRICE_QUOTE_EXPIRE"] = "PRICE_QUOTE_EXPIRE";
559
+ ContactActivityType2["RESTAURANTS_ORDER"] = "RESTAURANTS_ORDER";
560
+ ContactActivityType2["RESTAURANTS_RESERVATION"] = "RESTAURANTS_RESERVATION";
561
+ ContactActivityType2["SHOUTOUT_OPEN"] = "SHOUTOUT_OPEN";
562
+ ContactActivityType2["SHOUTOUT_CLICK"] = "SHOUTOUT_CLICK";
563
+ ContactActivityType2["CONTACT_MERGED"] = "CONTACT_MERGED";
564
+ ContactActivityType2["NEWSLETTER_SUBSCRIPTION_SUBSCRIBE"] = "NEWSLETTER_SUBSCRIPTION_SUBSCRIBE";
565
+ ContactActivityType2["NEWSLETTER_SUBSCRIPTION_PENDING"] = "NEWSLETTER_SUBSCRIPTION_PENDING";
566
+ ContactActivityType2["NEWSLETTER_SUBSCRIPTION_NOT_SET"] = "NEWSLETTER_SUBSCRIPTION_NOT_SET";
567
+ ContactActivityType2["PHONE_SUBSCRIPTION_SUBSCRIBE"] = "PHONE_SUBSCRIPTION_SUBSCRIBE";
568
+ ContactActivityType2["PHONE_SUBSCRIPTION_PENDING"] = "PHONE_SUBSCRIPTION_PENDING";
569
+ ContactActivityType2["PHONE_SUBSCRIPTION_NOT_SET"] = "PHONE_SUBSCRIPTION_NOT_SET";
570
+ ContactActivityType2["PHONE_SUBSCRIPTION_UNSUBSCRIBE"] = "PHONE_SUBSCRIPTION_UNSUBSCRIBE";
571
+ return ContactActivityType2;
572
+ })(ContactActivityType || {});
573
+ var EmailTag = /* @__PURE__ */ ((EmailTag2) => {
574
+ EmailTag2["UNTAGGED"] = "UNTAGGED";
575
+ EmailTag2["MAIN"] = "MAIN";
576
+ EmailTag2["HOME"] = "HOME";
577
+ EmailTag2["WORK"] = "WORK";
578
+ return EmailTag2;
579
+ })(EmailTag || {});
580
+ var PhoneTag = /* @__PURE__ */ ((PhoneTag2) => {
581
+ PhoneTag2["UNTAGGED"] = "UNTAGGED";
582
+ PhoneTag2["MAIN"] = "MAIN";
583
+ PhoneTag2["HOME"] = "HOME";
584
+ PhoneTag2["MOBILE"] = "MOBILE";
585
+ PhoneTag2["WORK"] = "WORK";
586
+ PhoneTag2["FAX"] = "FAX";
587
+ return PhoneTag2;
588
+ })(PhoneTag || {});
589
+ var AddressTag = /* @__PURE__ */ ((AddressTag2) => {
590
+ AddressTag2["UNTAGGED"] = "UNTAGGED";
591
+ AddressTag2["HOME"] = "HOME";
592
+ AddressTag2["WORK"] = "WORK";
593
+ AddressTag2["BILLING"] = "BILLING";
594
+ AddressTag2["SHIPPING"] = "SHIPPING";
595
+ return AddressTag2;
596
+ })(AddressTag || {});
597
+ var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
598
+ SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
599
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
600
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
601
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
602
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
603
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
604
+ SubdivisionType2["COUNTRY"] = "COUNTRY";
605
+ return SubdivisionType2;
606
+ })(SubdivisionType || {});
607
+ var ImageProvider = /* @__PURE__ */ ((ImageProvider2) => {
608
+ ImageProvider2["UNKNOWN"] = "UNKNOWN";
609
+ ImageProvider2["EXTERNAL"] = "EXTERNAL";
610
+ ImageProvider2["WIX_MEDIA"] = "WIX_MEDIA";
611
+ return ImageProvider2;
612
+ })(ImageProvider || {});
613
+ var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
614
+ SubscriptionStatus2["NO_SUBSCRIPTION_STATUS"] = "NO_SUBSCRIPTION_STATUS";
615
+ SubscriptionStatus2["NOT_SET"] = "NOT_SET";
616
+ SubscriptionStatus2["PENDING"] = "PENDING";
617
+ SubscriptionStatus2["SUBSCRIBED"] = "SUBSCRIBED";
618
+ SubscriptionStatus2["UNSUBSCRIBED"] = "UNSUBSCRIBED";
619
+ return SubscriptionStatus2;
620
+ })(SubscriptionStatus || {});
621
+ var EmailDeliverabilityStatus = /* @__PURE__ */ ((EmailDeliverabilityStatus2) => {
622
+ EmailDeliverabilityStatus2["NOT_SET"] = "NOT_SET";
623
+ EmailDeliverabilityStatus2["VALID"] = "VALID";
624
+ EmailDeliverabilityStatus2["BOUNCED"] = "BOUNCED";
625
+ EmailDeliverabilityStatus2["SPAM_COMPLAINT"] = "SPAM_COMPLAINT";
626
+ EmailDeliverabilityStatus2["INACTIVE"] = "INACTIVE";
627
+ return EmailDeliverabilityStatus2;
628
+ })(EmailDeliverabilityStatus || {});
629
+ var PhoneDeliverabilityStatus = /* @__PURE__ */ ((PhoneDeliverabilityStatus2) => {
630
+ PhoneDeliverabilityStatus2["NO_PHONE_DELIVERABILITY_STATUS"] = "NO_PHONE_DELIVERABILITY_STATUS";
631
+ PhoneDeliverabilityStatus2["NOT_SET"] = "NOT_SET";
632
+ return PhoneDeliverabilityStatus2;
633
+ })(PhoneDeliverabilityStatus || {});
634
+ var MemberStatus = /* @__PURE__ */ ((MemberStatus2) => {
635
+ MemberStatus2["PENDING"] = "PENDING";
636
+ MemberStatus2["ACTIVE"] = "ACTIVE";
637
+ MemberStatus2["DELETED"] = "DELETED";
638
+ MemberStatus2["BLOCKED"] = "BLOCKED";
639
+ MemberStatus2["OFFLINE"] = "OFFLINE";
640
+ return MemberStatus2;
641
+ })(MemberStatus || {});
642
+ var PrivacyStatus = /* @__PURE__ */ ((PrivacyStatus2) => {
643
+ PrivacyStatus2["PRIVATE"] = "PRIVATE";
644
+ PrivacyStatus2["PUBLIC"] = "PUBLIC";
645
+ return PrivacyStatus2;
646
+ })(PrivacyStatus || {});
647
+ var Role = /* @__PURE__ */ ((Role2) => {
648
+ Role2["UNSPECIFIED_ROLE"] = "UNSPECIFIED_ROLE";
649
+ Role2["OWNER"] = "OWNER";
650
+ Role2["CONTRIBUTOR"] = "CONTRIBUTOR";
651
+ return Role2;
652
+ })(Role || {});
653
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
654
+ SortOrder2["ASC"] = "ASC";
655
+ SortOrder2["DESC"] = "DESC";
656
+ return SortOrder2;
657
+ })(SortOrder || {});
658
+ var ContactFieldSet = /* @__PURE__ */ ((ContactFieldSet2) => {
659
+ ContactFieldSet2["BASIC"] = "BASIC";
660
+ ContactFieldSet2["COMMUNICATION_DETAILS"] = "COMMUNICATION_DETAILS";
661
+ ContactFieldSet2["EXTENDED"] = "EXTENDED";
662
+ ContactFieldSet2["FULL"] = "FULL";
663
+ return ContactFieldSet2;
664
+ })(ContactFieldSet || {});
665
+ var ContactsFacetType = /* @__PURE__ */ ((ContactsFacetType2) => {
666
+ ContactsFacetType2["UNKNOWN"] = "UNKNOWN";
667
+ ContactsFacetType2["ALL_CONTACTS"] = "ALL_CONTACTS";
668
+ ContactsFacetType2["NOT_LABELED"] = "NOT_LABELED";
669
+ ContactsFacetType2["LABEL"] = "LABEL";
670
+ ContactsFacetType2["SUBSCRIPTION_STATUS"] = "SUBSCRIPTION_STATUS";
671
+ ContactsFacetType2["MEMBERSHIP_STATUS"] = "MEMBERSHIP_STATUS";
672
+ return ContactsFacetType2;
673
+ })(ContactsFacetType || {});
674
+ var Action = /* @__PURE__ */ ((Action2) => {
675
+ Action2["UNKNOWN"] = "UNKNOWN";
676
+ Action2["UPDATED"] = "UPDATED";
677
+ Action2["CREATED"] = "CREATED";
678
+ return Action2;
679
+ })(Action || {});
680
+ var UpsertContactResponseAction = /* @__PURE__ */ ((UpsertContactResponseAction2) => {
681
+ UpsertContactResponseAction2["UNKNOWN"] = "UNKNOWN";
682
+ UpsertContactResponseAction2["UPDATED"] = "UPDATED";
683
+ UpsertContactResponseAction2["CREATED"] = "CREATED";
684
+ return UpsertContactResponseAction2;
685
+ })(UpsertContactResponseAction || {});
686
+ var GetContactResponseType = /* @__PURE__ */ ((GetContactResponseType2) => {
687
+ GetContactResponseType2["REGULAR"] = "REGULAR";
688
+ GetContactResponseType2["IMPLICIT"] = "IMPLICIT";
689
+ GetContactResponseType2["MERGED"] = "MERGED";
690
+ return GetContactResponseType2;
691
+ })(GetContactResponseType || {});
692
+ var SubmitOperation = /* @__PURE__ */ ((SubmitOperation2) => {
693
+ SubmitOperation2["UNKNOWN"] = "UNKNOWN";
694
+ SubmitOperation2["CREATE"] = "CREATE";
695
+ SubmitOperation2["UPDATE"] = "UPDATE";
696
+ return SubmitOperation2;
697
+ })(SubmitOperation || {});
698
+ var Mode = /* @__PURE__ */ ((Mode2) => {
699
+ Mode2["OR"] = "OR";
700
+ Mode2["AND"] = "AND";
701
+ return Mode2;
702
+ })(Mode || {});
703
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
704
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
705
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
706
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
707
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
708
+ WebhookIdentityType2["APP"] = "APP";
709
+ return WebhookIdentityType2;
710
+ })(WebhookIdentityType || {});
711
+ async function createContact2(info, options) {
712
+ const { httpClient, sideEffects } = arguments[2];
713
+ const payload = (0, import_transform_paths2.transformPaths)(
714
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
715
+ info,
716
+ allowDuplicates: options?.allowDuplicates
717
+ }),
718
+ [
719
+ {
720
+ transformFn: import_address.transformSDKAddressToRESTAddress,
721
+ paths: [{ path: "info.addresses.items.address" }]
722
+ },
723
+ {
724
+ transformFn: import_image.transformSDKImageToRESTImage,
725
+ paths: [{ path: "info.picture.image" }]
726
+ }
727
+ ]
728
+ );
729
+ const reqOpts = createContact(payload);
730
+ sideEffects?.onSiteCall?.();
731
+ try {
732
+ const result = await httpClient.request(reqOpts);
733
+ sideEffects?.onSuccess?.(result);
734
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
735
+ (0, import_transform_paths2.transformPaths)(result.data, [
736
+ {
737
+ transformFn: import_image2.transformRESTImageToSDKImage,
738
+ paths: [
739
+ { path: "contact.picture" },
740
+ { path: "contact.info.picture.image" },
741
+ { path: "contact.memberInfo.profileInfo.photo" }
742
+ ]
743
+ },
744
+ {
745
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
746
+ paths: [{ path: "contact.info.addresses.items.address" }]
747
+ }
748
+ ])
749
+ );
750
+ } catch (err) {
751
+ const transformedError = (0, import_transform_error.transformError)(
752
+ err,
753
+ {
754
+ spreadPathsToArguments: {},
755
+ explicitPathsToArguments: {
756
+ info: "$[0]",
757
+ allowDuplicates: "$[1].allowDuplicates"
758
+ },
759
+ singleArgumentUnchanged: false
760
+ },
761
+ ["info", "options"]
762
+ );
763
+ sideEffects?.onError?.(err);
764
+ throw transformedError;
765
+ }
766
+ }
767
+ async function updateContact2(contactId, info, revision, options) {
768
+ const { httpClient, sideEffects } = arguments[4];
769
+ const payload = (0, import_transform_paths2.transformPaths)(
770
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
771
+ contactId,
772
+ info,
773
+ revision,
774
+ allowDuplicates: options?.allowDuplicates
775
+ }),
776
+ [
777
+ {
778
+ transformFn: import_address.transformSDKAddressToRESTAddress,
779
+ paths: [{ path: "info.addresses.items.address" }]
780
+ },
781
+ {
782
+ transformFn: import_image.transformSDKImageToRESTImage,
783
+ paths: [{ path: "info.picture.image" }]
784
+ }
785
+ ]
786
+ );
787
+ const reqOpts = updateContact(payload);
788
+ sideEffects?.onSiteCall?.();
789
+ try {
790
+ const result = await httpClient.request(reqOpts);
791
+ sideEffects?.onSuccess?.(result);
792
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
793
+ (0, import_transform_paths2.transformPaths)(result.data, [
794
+ {
795
+ transformFn: import_image2.transformRESTImageToSDKImage,
796
+ paths: [
797
+ { path: "contact.picture" },
798
+ { path: "contact.info.picture.image" },
799
+ { path: "contact.memberInfo.profileInfo.photo" }
800
+ ]
801
+ },
802
+ {
803
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
804
+ paths: [{ path: "contact.info.addresses.items.address" }]
805
+ }
806
+ ])
807
+ );
808
+ } catch (err) {
809
+ const transformedError = (0, import_transform_error.transformError)(
810
+ err,
811
+ {
812
+ spreadPathsToArguments: {},
813
+ explicitPathsToArguments: {
814
+ contactId: "$[0]",
815
+ info: "$[1]",
816
+ revision: "$[2]",
817
+ allowDuplicates: "$[3].allowDuplicates"
818
+ },
819
+ singleArgumentUnchanged: false
820
+ },
821
+ ["contactId", "info", "revision", "options"]
822
+ );
823
+ sideEffects?.onError?.(err);
824
+ throw transformedError;
825
+ }
826
+ }
827
+ async function mergeContacts2(targetContactId, targetContactRevision, options) {
828
+ const { httpClient, sideEffects } = arguments[3];
829
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
830
+ targetContactId,
831
+ targetContactRevision,
832
+ sourceContactIds: options?.sourceContactIds
833
+ });
834
+ const reqOpts = mergeContacts(payload);
835
+ sideEffects?.onSiteCall?.();
836
+ try {
837
+ const result = await httpClient.request(reqOpts);
838
+ sideEffects?.onSuccess?.(result);
839
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
840
+ (0, import_transform_paths2.transformPaths)(result.data, [
841
+ {
842
+ transformFn: import_image2.transformRESTImageToSDKImage,
843
+ paths: [
844
+ { path: "contact.picture" },
845
+ { path: "contact.info.picture.image" },
846
+ { path: "contact.memberInfo.profileInfo.photo" }
847
+ ]
848
+ },
849
+ {
850
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
851
+ paths: [{ path: "contact.info.addresses.items.address" }]
852
+ }
853
+ ])
854
+ );
855
+ } catch (err) {
856
+ const transformedError = (0, import_transform_error.transformError)(
857
+ err,
858
+ {
859
+ spreadPathsToArguments: {},
860
+ explicitPathsToArguments: {
861
+ targetContactId: "$[0]",
862
+ targetContactRevision: "$[1]",
863
+ sourceContactIds: "$[2].sourceContactIds"
864
+ },
865
+ singleArgumentUnchanged: false
866
+ },
867
+ ["targetContactId", "targetContactRevision", "options"]
868
+ );
869
+ sideEffects?.onError?.(err);
870
+ throw transformedError;
871
+ }
872
+ }
873
+ async function deleteContact2(contactId) {
874
+ const { httpClient, sideEffects } = arguments[1];
875
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
876
+ contactId
877
+ });
878
+ const reqOpts = deleteContact(payload);
879
+ sideEffects?.onSiteCall?.();
880
+ try {
881
+ const result = await httpClient.request(reqOpts);
882
+ sideEffects?.onSuccess?.(result);
883
+ } catch (err) {
884
+ const transformedError = (0, import_transform_error.transformError)(
885
+ err,
886
+ {
887
+ spreadPathsToArguments: {},
888
+ explicitPathsToArguments: { contactId: "$[0]" },
889
+ singleArgumentUnchanged: false
890
+ },
891
+ ["contactId"]
892
+ );
893
+ sideEffects?.onError?.(err);
894
+ throw transformedError;
895
+ }
896
+ }
897
+ async function labelContact2(contactId, labelKeys) {
898
+ const { httpClient, sideEffects } = arguments[2];
899
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
900
+ contactId,
901
+ labelKeys
902
+ });
903
+ const reqOpts = labelContact(payload);
904
+ sideEffects?.onSiteCall?.();
905
+ try {
906
+ const result = await httpClient.request(reqOpts);
907
+ sideEffects?.onSuccess?.(result);
908
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
909
+ (0, import_transform_paths2.transformPaths)(result.data, [
910
+ {
911
+ transformFn: import_image2.transformRESTImageToSDKImage,
912
+ paths: [
913
+ { path: "contact.picture" },
914
+ { path: "contact.info.picture.image" },
915
+ { path: "contact.memberInfo.profileInfo.photo" }
916
+ ]
917
+ },
918
+ {
919
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
920
+ paths: [{ path: "contact.info.addresses.items.address" }]
921
+ }
922
+ ])
923
+ );
924
+ } catch (err) {
925
+ const transformedError = (0, import_transform_error.transformError)(
926
+ err,
927
+ {
928
+ spreadPathsToArguments: {},
929
+ explicitPathsToArguments: { contactId: "$[0]", labelKeys: "$[1]" },
930
+ singleArgumentUnchanged: false
931
+ },
932
+ ["contactId", "labelKeys"]
933
+ );
934
+ sideEffects?.onError?.(err);
935
+ throw transformedError;
936
+ }
937
+ }
938
+ async function unlabelContact2(contactId, labelKeys) {
939
+ const { httpClient, sideEffects } = arguments[2];
940
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
941
+ contactId,
942
+ labelKeys
943
+ });
944
+ const reqOpts = unlabelContact(payload);
945
+ sideEffects?.onSiteCall?.();
946
+ try {
947
+ const result = await httpClient.request(reqOpts);
948
+ sideEffects?.onSuccess?.(result);
949
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
950
+ (0, import_transform_paths2.transformPaths)(result.data, [
951
+ {
952
+ transformFn: import_image2.transformRESTImageToSDKImage,
953
+ paths: [
954
+ { path: "contact.picture" },
955
+ { path: "contact.info.picture.image" },
956
+ { path: "contact.memberInfo.profileInfo.photo" }
957
+ ]
958
+ },
959
+ {
960
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
961
+ paths: [{ path: "contact.info.addresses.items.address" }]
962
+ }
963
+ ])
964
+ );
965
+ } catch (err) {
966
+ const transformedError = (0, import_transform_error.transformError)(
967
+ err,
968
+ {
969
+ spreadPathsToArguments: {},
970
+ explicitPathsToArguments: { contactId: "$[0]", labelKeys: "$[1]" },
971
+ singleArgumentUnchanged: false
972
+ },
973
+ ["contactId", "labelKeys"]
974
+ );
975
+ sideEffects?.onError?.(err);
976
+ throw transformedError;
977
+ }
978
+ }
979
+ function queryContacts2(options) {
980
+ const { httpClient, sideEffects } = arguments[1];
981
+ return (0, import_query_builder.queryBuilder)({
982
+ func: async (payload) => {
983
+ const reqOpts = queryContacts({
984
+ ...payload,
985
+ ...options ?? {}
986
+ });
987
+ sideEffects?.onSiteCall?.();
988
+ try {
989
+ const result = await httpClient.request(reqOpts);
990
+ sideEffects?.onSuccess?.(result);
991
+ return result;
992
+ } catch (err) {
993
+ sideEffects?.onError?.(err);
994
+ throw err;
995
+ }
996
+ },
997
+ requestTransformer: (query) => {
998
+ const args = [query, options];
999
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1000
+ ...args?.[1],
1001
+ query: args?.[0]
1002
+ });
1003
+ },
1004
+ responseTransformer: ({ data }) => {
1005
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1006
+ (0, import_transform_paths2.transformPaths)(data, [
1007
+ {
1008
+ transformFn: import_image2.transformRESTImageToSDKImage,
1009
+ paths: [
1010
+ { path: "contacts.picture" },
1011
+ { path: "contacts.info.picture.image" },
1012
+ { path: "contacts.memberInfo.profileInfo.photo" }
1013
+ ]
1014
+ },
1015
+ {
1016
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1017
+ paths: [{ path: "contacts.info.addresses.items.address" }]
1018
+ }
1019
+ ])
1020
+ );
1021
+ return {
1022
+ items: transformedData?.contacts,
1023
+ pagingMetadata: transformedData?.pagingMetadata
1024
+ };
1025
+ },
1026
+ errorTransformer: (err) => {
1027
+ const transformedError = (0, import_transform_error.transformError)(err, {
1028
+ spreadPathsToArguments: {},
1029
+ explicitPathsToArguments: { query: "$[0]" },
1030
+ singleArgumentUnchanged: false
1031
+ });
1032
+ throw transformedError;
1033
+ },
1034
+ pagingMethod: "OFFSET",
1035
+ transformationPaths: {}
1036
+ });
1037
+ }
1038
+ async function getContact2(_id, options) {
1039
+ const { httpClient, sideEffects } = arguments[2];
1040
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1041
+ id: _id,
1042
+ fields: options?.fields,
1043
+ fieldsets: options?.fieldsets
1044
+ });
1045
+ const reqOpts = getContact(payload);
1046
+ sideEffects?.onSiteCall?.();
1047
+ try {
1048
+ const result = await httpClient.request(reqOpts);
1049
+ sideEffects?.onSuccess?.(result);
1050
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1051
+ (0, import_transform_paths2.transformPaths)(result.data, [
1052
+ {
1053
+ transformFn: import_image2.transformRESTImageToSDKImage,
1054
+ paths: [
1055
+ { path: "contact.picture" },
1056
+ { path: "contact.info.picture.image" },
1057
+ { path: "contact.memberInfo.profileInfo.photo" }
1058
+ ]
1059
+ },
1060
+ {
1061
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1062
+ paths: [{ path: "contact.info.addresses.items.address" }]
1063
+ }
1064
+ ])
1065
+ )?.contact;
1066
+ } catch (err) {
1067
+ const transformedError = (0, import_transform_error.transformError)(
1068
+ err,
1069
+ {
1070
+ spreadPathsToArguments: {},
1071
+ explicitPathsToArguments: {
1072
+ id: "$[0]",
1073
+ fields: "$[1].fields",
1074
+ fieldsets: "$[1].fieldsets"
1075
+ },
1076
+ singleArgumentUnchanged: false
1077
+ },
1078
+ ["_id", "options"]
1079
+ );
1080
+ sideEffects?.onError?.(err);
1081
+ throw transformedError;
1082
+ }
1083
+ }
1084
+
1085
+ // src/contacts-v4-contact-contacts.public.ts
1086
+ function createContact3(httpClient) {
1087
+ return (info, options) => createContact2(
1088
+ info,
1089
+ options,
1090
+ // @ts-ignore
1091
+ { httpClient }
1092
+ );
1093
+ }
1094
+ function updateContact3(httpClient) {
1095
+ return (contactId, info, revision, options) => updateContact2(
1096
+ contactId,
1097
+ info,
1098
+ revision,
1099
+ options,
1100
+ // @ts-ignore
1101
+ { httpClient }
1102
+ );
1103
+ }
1104
+ function mergeContacts3(httpClient) {
1105
+ return (targetContactId, targetContactRevision, options) => mergeContacts2(
1106
+ targetContactId,
1107
+ targetContactRevision,
1108
+ options,
1109
+ // @ts-ignore
1110
+ { httpClient }
1111
+ );
1112
+ }
1113
+ function deleteContact3(httpClient) {
1114
+ return (contactId) => deleteContact2(
1115
+ contactId,
1116
+ // @ts-ignore
1117
+ { httpClient }
1118
+ );
1119
+ }
1120
+ function labelContact3(httpClient) {
1121
+ return (contactId, labelKeys) => labelContact2(
1122
+ contactId,
1123
+ labelKeys,
1124
+ // @ts-ignore
1125
+ { httpClient }
1126
+ );
1127
+ }
1128
+ function unlabelContact3(httpClient) {
1129
+ return (contactId, labelKeys) => unlabelContact2(
1130
+ contactId,
1131
+ labelKeys,
1132
+ // @ts-ignore
1133
+ { httpClient }
1134
+ );
1135
+ }
1136
+ function queryContacts3(httpClient) {
1137
+ return (options) => queryContacts2(
1138
+ options,
1139
+ // @ts-ignore
1140
+ { httpClient }
1141
+ );
1142
+ }
1143
+ function getContact3(httpClient) {
1144
+ return (_id, options) => getContact2(
1145
+ _id,
1146
+ options,
1147
+ // @ts-ignore
1148
+ { httpClient }
1149
+ );
1150
+ }
1151
+ var onContactCreated = (0, import_sdk_types.EventDefinition)(
1152
+ "wix.contacts.v4.contact_created",
1153
+ true,
1154
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1155
+ (0, import_transform_paths3.transformPaths)(event, [
1156
+ {
1157
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1158
+ paths: [
1159
+ { path: "entity.createdDate" },
1160
+ { path: "entity.updatedDate" },
1161
+ { path: "entity.lastActivity.activityDate" },
1162
+ { path: "entity.lastActivity.date" },
1163
+ { path: "entity.memberInfo.signupDate" },
1164
+ { path: "entity.memberInfo.sessionInfo.lastWebLogin" },
1165
+ { path: "entity.memberInfo.sessionInfo.lastMobileLogin" },
1166
+ { path: "metadata.eventTime" }
1167
+ ]
1168
+ },
1169
+ {
1170
+ transformFn: import_image3.transformRESTImageToSDKImage,
1171
+ paths: [
1172
+ { path: "entity.picture" },
1173
+ { path: "entity.info.picture.image" },
1174
+ { path: "entity.memberInfo.profileInfo.photo" }
1175
+ ]
1176
+ },
1177
+ {
1178
+ transformFn: import_address3.transformRESTAddressToSDKAddress,
1179
+ paths: [{ path: "entity.info.addresses.items.address" }]
1180
+ }
1181
+ ])
1182
+ )
1183
+ )();
1184
+ var onContactDeleted = (0, import_sdk_types.EventDefinition)(
1185
+ "wix.contacts.v4.contact_deleted",
1186
+ true,
1187
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1188
+ (0, import_transform_paths3.transformPaths)(event, [
1189
+ {
1190
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1191
+ paths: [
1192
+ { path: "undefined.createdDate" },
1193
+ { path: "undefined.updatedDate" },
1194
+ { path: "undefined.lastActivity.activityDate" },
1195
+ { path: "undefined.lastActivity.date" },
1196
+ { path: "undefined.memberInfo.signupDate" },
1197
+ { path: "undefined.memberInfo.sessionInfo.lastWebLogin" },
1198
+ { path: "undefined.memberInfo.sessionInfo.lastMobileLogin" },
1199
+ { path: "metadata.eventTime" }
1200
+ ]
1201
+ },
1202
+ {
1203
+ transformFn: import_image3.transformRESTImageToSDKImage,
1204
+ paths: [
1205
+ { path: "undefined.picture" },
1206
+ { path: "undefined.info.picture.image" },
1207
+ { path: "undefined.memberInfo.profileInfo.photo" }
1208
+ ]
1209
+ },
1210
+ {
1211
+ transformFn: import_address3.transformRESTAddressToSDKAddress,
1212
+ paths: [{ path: "undefined.info.addresses.items.address" }]
1213
+ }
1214
+ ])
1215
+ )
1216
+ )();
1217
+ var onContactMerged = (0, import_sdk_types.EventDefinition)(
1218
+ "wix.contacts.v4.contact_merged",
1219
+ true,
1220
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1221
+ (0, import_transform_paths3.transformPaths)(event, [
1222
+ {
1223
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1224
+ paths: [
1225
+ { path: "data.targetContact.createdDate" },
1226
+ { path: "data.targetContact.updatedDate" },
1227
+ { path: "data.targetContact.lastActivity.activityDate" },
1228
+ { path: "data.targetContact.lastActivity.date" },
1229
+ { path: "data.targetContact.memberInfo.signupDate" },
1230
+ { path: "data.targetContact.memberInfo.sessionInfo.lastWebLogin" },
1231
+ {
1232
+ path: "data.targetContact.memberInfo.sessionInfo.lastMobileLogin"
1233
+ },
1234
+ { path: "metadata.eventTime" }
1235
+ ]
1236
+ },
1237
+ {
1238
+ transformFn: import_image3.transformRESTImageToSDKImage,
1239
+ paths: [
1240
+ { path: "data.targetContact.picture" },
1241
+ { path: "data.targetContact.info.picture.image" },
1242
+ { path: "data.targetContact.memberInfo.profileInfo.photo" }
1243
+ ]
1244
+ },
1245
+ {
1246
+ transformFn: import_address3.transformRESTAddressToSDKAddress,
1247
+ paths: [{ path: "data.targetContact.info.addresses.items.address" }]
1248
+ }
1249
+ ])
1250
+ )
1251
+ )();
1252
+ var onContactUpdated = (0, import_sdk_types.EventDefinition)(
1253
+ "wix.contacts.v4.contact_updated",
1254
+ true,
1255
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1256
+ (0, import_transform_paths3.transformPaths)(event, [
1257
+ {
1258
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1259
+ paths: [
1260
+ { path: "entity.createdDate" },
1261
+ { path: "entity.updatedDate" },
1262
+ { path: "entity.lastActivity.activityDate" },
1263
+ { path: "entity.lastActivity.date" },
1264
+ { path: "entity.memberInfo.signupDate" },
1265
+ { path: "entity.memberInfo.sessionInfo.lastWebLogin" },
1266
+ { path: "entity.memberInfo.sessionInfo.lastMobileLogin" },
1267
+ { path: "metadata.eventTime" }
1268
+ ]
1269
+ },
1270
+ {
1271
+ transformFn: import_image3.transformRESTImageToSDKImage,
1272
+ paths: [
1273
+ { path: "entity.picture" },
1274
+ { path: "entity.info.picture.image" },
1275
+ { path: "entity.memberInfo.profileInfo.photo" }
1276
+ ]
1277
+ },
1278
+ {
1279
+ transformFn: import_address3.transformRESTAddressToSDKAddress,
1280
+ paths: [{ path: "entity.info.addresses.items.address" }]
1281
+ }
1282
+ ])
1283
+ )
1284
+ )();
1285
+
1286
+ // src/contacts-v4-contact-contacts.context.ts
1287
+ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
1288
+ var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
1289
+ var createContact4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createContact3);
1290
+ var updateContact4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateContact3);
1291
+ var mergeContacts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(mergeContacts3);
1292
+ var deleteContact4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteContact3);
1293
+ var labelContact4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(labelContact3);
1294
+ var unlabelContact4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(unlabelContact3);
1295
+ var queryContacts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryContacts3);
1296
+ var getContact4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getContact3);
1297
+ var onContactCreated2 = (0, import_event_definition_modules.createEventModule)(onContactCreated);
1298
+ var onContactDeleted2 = (0, import_event_definition_modules.createEventModule)(onContactDeleted);
1299
+ var onContactMerged2 = (0, import_event_definition_modules.createEventModule)(onContactMerged);
1300
+ var onContactUpdated2 = (0, import_event_definition_modules.createEventModule)(onContactUpdated);
1301
+ // Annotate the CommonJS export names for ESM import in node:
1302
+ 0 && (module.exports = {
1303
+ Action,
1304
+ AddressTag,
1305
+ ContactActivityType,
1306
+ ContactFieldSet,
1307
+ ContactSourceType,
1308
+ ContactsFacetType,
1309
+ EmailDeliverabilityStatus,
1310
+ EmailTag,
1311
+ GetContactResponseType,
1312
+ ImageProvider,
1313
+ MemberStatus,
1314
+ Mode,
1315
+ PhoneDeliverabilityStatus,
1316
+ PhoneTag,
1317
+ PrivacyStatus,
1318
+ Role,
1319
+ SortOrder,
1320
+ SubdivisionType,
1321
+ SubmitOperation,
1322
+ SubscriptionStatus,
1323
+ UpsertContactResponseAction,
1324
+ WebhookIdentityType,
1325
+ createContact,
1326
+ deleteContact,
1327
+ getContact,
1328
+ labelContact,
1329
+ mergeContacts,
1330
+ onContactCreated,
1331
+ onContactDeleted,
1332
+ onContactMerged,
1333
+ onContactUpdated,
1334
+ queryContacts,
1335
+ unlabelContact,
1336
+ updateContact
1337
+ });
1338
+ //# sourceMappingURL=index.js.map