@wix/auto_sdk_gbp_locations 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 (52) hide show
  1. package/build/cjs/index.d.ts +913 -0
  2. package/build/cjs/index.js +3088 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +6699 -0
  5. package/build/cjs/index.typings.js +2726 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +5220 -0
  8. package/build/cjs/meta.js +2274 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/schemas.d.ts +11094 -0
  11. package/build/cjs/schemas.js +15256 -0
  12. package/build/cjs/schemas.js.map +1 -0
  13. package/build/es/index.d.mts +913 -0
  14. package/build/es/index.mjs +3002 -0
  15. package/build/es/index.mjs.map +1 -0
  16. package/build/es/index.typings.d.mts +6699 -0
  17. package/build/es/index.typings.mjs +2639 -0
  18. package/build/es/index.typings.mjs.map +1 -0
  19. package/build/es/meta.d.mts +5220 -0
  20. package/build/es/meta.mjs +2186 -0
  21. package/build/es/meta.mjs.map +1 -0
  22. package/build/es/package.json +3 -0
  23. package/build/es/schemas.d.mts +11094 -0
  24. package/build/es/schemas.mjs +15144 -0
  25. package/build/es/schemas.mjs.map +1 -0
  26. package/build/internal/cjs/index.d.ts +933 -0
  27. package/build/internal/cjs/index.js +3088 -0
  28. package/build/internal/cjs/index.js.map +1 -0
  29. package/build/internal/cjs/index.typings.d.ts +6724 -0
  30. package/build/internal/cjs/index.typings.js +2726 -0
  31. package/build/internal/cjs/index.typings.js.map +1 -0
  32. package/build/internal/cjs/meta.d.ts +5267 -0
  33. package/build/internal/cjs/meta.js +2274 -0
  34. package/build/internal/cjs/meta.js.map +1 -0
  35. package/build/internal/cjs/schemas.d.ts +11094 -0
  36. package/build/internal/cjs/schemas.js +15256 -0
  37. package/build/internal/cjs/schemas.js.map +1 -0
  38. package/build/internal/es/index.d.mts +933 -0
  39. package/build/internal/es/index.mjs +3002 -0
  40. package/build/internal/es/index.mjs.map +1 -0
  41. package/build/internal/es/index.typings.d.mts +6724 -0
  42. package/build/internal/es/index.typings.mjs +2639 -0
  43. package/build/internal/es/index.typings.mjs.map +1 -0
  44. package/build/internal/es/meta.d.mts +5267 -0
  45. package/build/internal/es/meta.mjs +2186 -0
  46. package/build/internal/es/meta.mjs.map +1 -0
  47. package/build/internal/es/schemas.d.mts +11094 -0
  48. package/build/internal/es/schemas.mjs +15144 -0
  49. package/build/internal/es/schemas.mjs.map +1 -0
  50. package/meta/package.json +3 -0
  51. package/package.json +61 -0
  52. package/schemas/package.json +3 -0
@@ -0,0 +1,3088 @@
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
+ AddressFieldType: () => AddressFieldType,
24
+ AmenityException: () => AmenityException,
25
+ AttributeValueType: () => AttributeValueType,
26
+ BreeamCertification: () => BreeamCertification,
27
+ BusinessType: () => BusinessType,
28
+ CategoryView: () => CategoryView,
29
+ DailyMetric: () => DailyMetric,
30
+ DayOfWeek: () => DayOfWeek,
31
+ EcoCertificate: () => EcoCertificate,
32
+ LeedCertification: () => LeedCertification,
33
+ MatchStatus: () => MatchStatus,
34
+ MediaCategory: () => MediaCategory,
35
+ MediaFormat: () => MediaFormat,
36
+ RecommendationReason: () => RecommendationReason,
37
+ ReviewSortOrder: () => ReviewSortOrder,
38
+ Role: () => Role,
39
+ SortOrder: () => SortOrder,
40
+ State: () => State,
41
+ Status: () => Status,
42
+ UnitTier: () => UnitTier,
43
+ VerificationMethod: () => VerificationMethod,
44
+ VerificationState: () => VerificationState,
45
+ WebhookIdentityType: () => WebhookIdentityType,
46
+ bulkCreateLocations: () => bulkCreateLocations4,
47
+ bulkDeleteLocations: () => bulkDeleteLocations4,
48
+ completeVerification: () => completeVerification4,
49
+ createGoogleLocation: () => createGoogleLocation4,
50
+ createLocation: () => createLocation4,
51
+ createMedia: () => createMedia4,
52
+ deleteGoogleLocation: () => deleteGoogleLocation4,
53
+ deleteLocation: () => deleteLocation4,
54
+ deleteMedia: () => deleteMedia4,
55
+ deleteReviewReply: () => deleteReviewReply4,
56
+ getAddressSchemaByCountryCode: () => getAddressSchemaByCountryCode4,
57
+ getGbpLocation: () => getGbpLocation4,
58
+ getGoogleLocation: () => getGoogleLocation4,
59
+ getLocationAdmins: () => getLocationAdmins4,
60
+ getLocationAttributes: () => getLocationAttributes4,
61
+ getLocationInsights: () => getLocationInsights4,
62
+ getLocationLodging: () => getLocationLodging4,
63
+ getVerificationOptions: () => getVerificationOptions4,
64
+ getVoiceOfMerchant: () => getVoiceOfMerchant4,
65
+ inviteAdminToLocation: () => inviteAdminToLocation4,
66
+ listAttributeMetadata: () => listAttributeMetadata4,
67
+ listCategories: () => listCategories4,
68
+ listGbpAccounts: () => listGbpAccounts4,
69
+ listMedia: () => listMedia4,
70
+ listReviews: () => listReviews4,
71
+ listSearchKeywordImpressions: () => listSearchKeywordImpressions4,
72
+ listUnimportedLocations: () => listUnimportedLocations4,
73
+ putReviewReply: () => putReviewReply4,
74
+ queryGbpLocations: () => queryGbpLocations4,
75
+ queryGoogleLocations: () => queryGoogleLocations4,
76
+ searchGoogleLocations: () => searchGoogleLocations4,
77
+ startVerification: () => startVerification4,
78
+ suggestEstablishments: () => suggestEstablishments4,
79
+ suggestRegions: () => suggestRegions4,
80
+ updateGoogleLocation: () => updateGoogleLocation4,
81
+ updateLocation: () => updateLocation4,
82
+ updateLocationAttributes: () => updateLocationAttributes4,
83
+ updateLocationFoodMenus: () => updateLocationFoodMenus4,
84
+ updateLocationLodging: () => updateLocationLodging4,
85
+ utils: () => utils
86
+ });
87
+ module.exports = __toCommonJS(index_exports);
88
+
89
+ // src/gbp-location-v1-gbplocation-locations.universal.ts
90
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
91
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
92
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
93
+
94
+ // src/gbp-location-v1-gbplocation-locations.http.ts
95
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
96
+ var import_float = require("@wix/sdk-runtime/transformations/float");
97
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
98
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
99
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
100
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
101
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
102
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
103
+ function resolveWixGbpLocationV1GbpLocationsServiceUrl(opts) {
104
+ const domainToMappings = {
105
+ "bo._base_domain_": [
106
+ {
107
+ srcPath: "/_api/gbp-location-service",
108
+ destPath: ""
109
+ }
110
+ ],
111
+ "wixbo.ai": [
112
+ {
113
+ srcPath: "/_api/gbp-location-service",
114
+ destPath: ""
115
+ }
116
+ ],
117
+ "wix-bo.com": [
118
+ {
119
+ srcPath: "/_api/gbp-location-service",
120
+ destPath: ""
121
+ }
122
+ ],
123
+ "manage._base_domain_": [
124
+ {
125
+ srcPath: "/_api/gbp-location-service",
126
+ destPath: ""
127
+ }
128
+ ],
129
+ "www.wixapis.com": [
130
+ {
131
+ srcPath: "/gbp/v1/accounts",
132
+ destPath: "/v1/accounts"
133
+ },
134
+ {
135
+ srcPath: "/gbp/v1/address-schema",
136
+ destPath: "/v1/address-schema"
137
+ },
138
+ {
139
+ srcPath: "/gbp/v1/attribute-metadata",
140
+ destPath: "/v1/attribute-metadata"
141
+ },
142
+ {
143
+ srcPath: "/gbp/v1/bulk",
144
+ destPath: "/v1/bulk"
145
+ },
146
+ {
147
+ srcPath: "/gbp/v1/establishments",
148
+ destPath: "/v1/establishments"
149
+ },
150
+ {
151
+ srcPath: "/gbp/v1/google-locations",
152
+ destPath: "/v1/google-locations"
153
+ },
154
+ {
155
+ srcPath: "/gbp/v1/locations",
156
+ destPath: "/v1/locations"
157
+ },
158
+ {
159
+ srcPath: "/gbp/v1/regions",
160
+ destPath: "/v1/regions"
161
+ },
162
+ {
163
+ srcPath: "/gbp/v1/categories",
164
+ destPath: "/v1/categories"
165
+ },
166
+ {
167
+ srcPath: "/gbp/location/v1/categories",
168
+ destPath: "/v1/categories"
169
+ },
170
+ {
171
+ srcPath: "/gbp/location/v1/accounts",
172
+ destPath: "/v1/accounts"
173
+ },
174
+ {
175
+ srcPath: "/gbp/location/v1/address-schema",
176
+ destPath: "/v1/address-schema"
177
+ },
178
+ {
179
+ srcPath: "/gbp/location/v1/attribute-metadata",
180
+ destPath: "/v1/attribute-metadata"
181
+ },
182
+ {
183
+ srcPath: "/gbp/location/v1/bulk",
184
+ destPath: "/v1/bulk"
185
+ },
186
+ {
187
+ srcPath: "/gbp/location/v1/establishments",
188
+ destPath: "/v1/establishments"
189
+ },
190
+ {
191
+ srcPath: "/gbp/location/v1/google-locations",
192
+ destPath: "/v1/google-locations"
193
+ },
194
+ {
195
+ srcPath: "/gbp/location/v1/locations",
196
+ destPath: "/v1/locations"
197
+ },
198
+ {
199
+ srcPath: "/gbp/location/v1/regions",
200
+ destPath: "/v1/regions"
201
+ }
202
+ ],
203
+ "www._base_domain_": [
204
+ {
205
+ srcPath: "/gbp/location/v1/locations",
206
+ destPath: "/v1/locations"
207
+ }
208
+ ]
209
+ };
210
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
211
+ }
212
+ var PACKAGE_NAME = "@wix/auto_sdk_gbp_locations";
213
+ function getGbpLocation(payload) {
214
+ function __getGbpLocation({ host }) {
215
+ const metadata = {
216
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
217
+ method: "GET",
218
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetGBPLocation",
219
+ packageName: PACKAGE_NAME,
220
+ migrationOptions: {
221
+ optInTransformResponse: true
222
+ },
223
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
224
+ protoPath: "/v1/locations/{locationId}",
225
+ data: payload,
226
+ host
227
+ }),
228
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
229
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
230
+ {
231
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
232
+ paths: [
233
+ { path: "gbplocation.createdDate" },
234
+ { path: "gbplocation.updatedDate" }
235
+ ]
236
+ }
237
+ ])
238
+ };
239
+ return metadata;
240
+ }
241
+ return __getGbpLocation;
242
+ }
243
+ function queryGbpLocations(payload) {
244
+ function __queryGbpLocations({ host }) {
245
+ const metadata = {
246
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
247
+ method: "GET",
248
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.QueryGBPLocations",
249
+ packageName: PACKAGE_NAME,
250
+ migrationOptions: {
251
+ optInTransformResponse: true
252
+ },
253
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
254
+ protoPath: "/v1/locations/query",
255
+ data: payload,
256
+ host
257
+ }),
258
+ params: (0, import_rest_modules.toURLSearchParams)(payload, true),
259
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
260
+ {
261
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
262
+ paths: [
263
+ { path: "locations.createdDate" },
264
+ { path: "locations.updatedDate" }
265
+ ]
266
+ }
267
+ ]),
268
+ fallback: [
269
+ {
270
+ method: "POST",
271
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
272
+ protoPath: "/v1/locations/query",
273
+ data: payload,
274
+ host
275
+ }),
276
+ data: payload
277
+ }
278
+ ]
279
+ };
280
+ return metadata;
281
+ }
282
+ return __queryGbpLocations;
283
+ }
284
+ function queryGoogleLocations(payload) {
285
+ function __queryGoogleLocations({ host }) {
286
+ const metadata = {
287
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
288
+ method: "GET",
289
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.QueryGoogleLocations",
290
+ packageName: PACKAGE_NAME,
291
+ migrationOptions: {
292
+ optInTransformResponse: true
293
+ },
294
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
295
+ protoPath: "/v1/locations/query-with-google",
296
+ data: payload,
297
+ host
298
+ }),
299
+ params: (0, import_rest_modules.toURLSearchParams)(payload, true),
300
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
301
+ {
302
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
303
+ paths: [
304
+ { path: "locations.googleLocation.latLng.latitude" },
305
+ { path: "locations.googleLocation.latLng.longitude" }
306
+ ]
307
+ },
308
+ {
309
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
310
+ paths: [
311
+ { path: "locations.location.createdDate" },
312
+ { path: "locations.location.updatedDate" }
313
+ ]
314
+ }
315
+ ]),
316
+ fallback: [
317
+ {
318
+ method: "POST",
319
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
320
+ protoPath: "/v1/locations/query-with-google",
321
+ data: payload,
322
+ host
323
+ }),
324
+ data: payload
325
+ }
326
+ ]
327
+ };
328
+ return metadata;
329
+ }
330
+ return __queryGoogleLocations;
331
+ }
332
+ function getGoogleLocation(payload) {
333
+ function __getGoogleLocation({ host }) {
334
+ const metadata = {
335
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
336
+ method: "GET",
337
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetGoogleLocation",
338
+ packageName: PACKAGE_NAME,
339
+ migrationOptions: {
340
+ optInTransformResponse: true
341
+ },
342
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
343
+ protoPath: "/v1/locations/google/{locationId}",
344
+ data: payload,
345
+ host
346
+ }),
347
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
348
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
349
+ {
350
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
351
+ paths: [
352
+ { path: "location.googleLocation.latLng.latitude" },
353
+ { path: "location.googleLocation.latLng.longitude" }
354
+ ]
355
+ },
356
+ {
357
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
358
+ paths: [
359
+ { path: "location.location.createdDate" },
360
+ { path: "location.location.updatedDate" }
361
+ ]
362
+ }
363
+ ])
364
+ };
365
+ return metadata;
366
+ }
367
+ return __getGoogleLocation;
368
+ }
369
+ function createLocation(payload) {
370
+ function __createLocation({ host }) {
371
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
372
+ {
373
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
374
+ paths: [
375
+ { path: "location.createdDate" },
376
+ { path: "location.updatedDate" }
377
+ ]
378
+ }
379
+ ]);
380
+ const metadata = {
381
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
382
+ method: "POST",
383
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.CreateLocation",
384
+ packageName: PACKAGE_NAME,
385
+ migrationOptions: {
386
+ optInTransformResponse: true
387
+ },
388
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
389
+ protoPath: "/v1/locations",
390
+ data: serializedData,
391
+ host
392
+ }),
393
+ data: serializedData,
394
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
395
+ {
396
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
397
+ paths: [
398
+ { path: "location.createdDate" },
399
+ { path: "location.updatedDate" }
400
+ ]
401
+ }
402
+ ])
403
+ };
404
+ return metadata;
405
+ }
406
+ return __createLocation;
407
+ }
408
+ function updateLocation(payload) {
409
+ function __updateLocation({ host }) {
410
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
411
+ {
412
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
413
+ paths: [{ path: "fieldMask" }]
414
+ },
415
+ {
416
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
417
+ paths: [
418
+ { path: "location.createdDate" },
419
+ { path: "location.updatedDate" }
420
+ ]
421
+ }
422
+ ]);
423
+ const metadata = {
424
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
425
+ method: "PATCH",
426
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateLocation",
427
+ packageName: PACKAGE_NAME,
428
+ migrationOptions: {
429
+ optInTransformResponse: true
430
+ },
431
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
432
+ protoPath: "/v1/locations/{location.id}",
433
+ data: serializedData,
434
+ host
435
+ }),
436
+ data: serializedData,
437
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
438
+ {
439
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
440
+ paths: [
441
+ { path: "location.createdDate" },
442
+ { path: "location.updatedDate" }
443
+ ]
444
+ }
445
+ ])
446
+ };
447
+ return metadata;
448
+ }
449
+ return __updateLocation;
450
+ }
451
+ function deleteLocation(payload) {
452
+ function __deleteLocation({ host }) {
453
+ const metadata = {
454
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
455
+ method: "DELETE",
456
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.DeleteLocation",
457
+ packageName: PACKAGE_NAME,
458
+ migrationOptions: {
459
+ optInTransformResponse: true
460
+ },
461
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
462
+ protoPath: "/v1/locations/{locationId}",
463
+ data: payload,
464
+ host
465
+ }),
466
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
467
+ };
468
+ return metadata;
469
+ }
470
+ return __deleteLocation;
471
+ }
472
+ function createGoogleLocation(payload) {
473
+ function __createGoogleLocation({ host }) {
474
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
475
+ {
476
+ transformFn: import_float.transformSDKFloatToRESTFloat,
477
+ paths: [
478
+ { path: "location.latLng.latitude" },
479
+ { path: "location.latLng.longitude" }
480
+ ]
481
+ }
482
+ ]);
483
+ const metadata = {
484
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
485
+ method: "POST",
486
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.CreateGoogleLocation",
487
+ packageName: PACKAGE_NAME,
488
+ migrationOptions: {
489
+ optInTransformResponse: true
490
+ },
491
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
492
+ protoPath: "/v1/locations/google",
493
+ data: serializedData,
494
+ host
495
+ }),
496
+ data: serializedData,
497
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
498
+ {
499
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
500
+ paths: [
501
+ { path: "location.createdDate" },
502
+ { path: "location.updatedDate" }
503
+ ]
504
+ }
505
+ ])
506
+ };
507
+ return metadata;
508
+ }
509
+ return __createGoogleLocation;
510
+ }
511
+ function deleteGoogleLocation(payload) {
512
+ function __deleteGoogleLocation({ host }) {
513
+ const metadata = {
514
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
515
+ method: "DELETE",
516
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.DeleteGoogleLocation",
517
+ packageName: PACKAGE_NAME,
518
+ migrationOptions: {
519
+ optInTransformResponse: true
520
+ },
521
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
522
+ protoPath: "/v1/locations/google/{locationId}",
523
+ data: payload,
524
+ host
525
+ }),
526
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
527
+ };
528
+ return metadata;
529
+ }
530
+ return __deleteGoogleLocation;
531
+ }
532
+ function updateGoogleLocation(payload) {
533
+ function __updateGoogleLocation({ host }) {
534
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
535
+ {
536
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
537
+ paths: [{ path: "fieldMask" }]
538
+ },
539
+ {
540
+ transformFn: import_float.transformSDKFloatToRESTFloat,
541
+ paths: [
542
+ { path: "location.latLng.latitude" },
543
+ { path: "location.latLng.longitude" }
544
+ ]
545
+ }
546
+ ]);
547
+ const metadata = {
548
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
549
+ method: "PATCH",
550
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateGoogleLocation",
551
+ packageName: PACKAGE_NAME,
552
+ migrationOptions: {
553
+ optInTransformResponse: true
554
+ },
555
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
556
+ protoPath: "/v1/locations/{locationId}/google",
557
+ data: serializedData,
558
+ host
559
+ }),
560
+ data: serializedData,
561
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
562
+ {
563
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
564
+ paths: [
565
+ { path: "location.latLng.latitude" },
566
+ { path: "location.latLng.longitude" }
567
+ ]
568
+ }
569
+ ])
570
+ };
571
+ return metadata;
572
+ }
573
+ return __updateGoogleLocation;
574
+ }
575
+ function bulkCreateLocations(payload) {
576
+ function __bulkCreateLocations({ host }) {
577
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
578
+ {
579
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
580
+ paths: [
581
+ { path: "locations.createdDate" },
582
+ { path: "locations.updatedDate" }
583
+ ]
584
+ }
585
+ ]);
586
+ const metadata = {
587
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
588
+ method: "POST",
589
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.BulkCreateLocations",
590
+ packageName: PACKAGE_NAME,
591
+ migrationOptions: {
592
+ optInTransformResponse: true
593
+ },
594
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
595
+ protoPath: "/v1/bulk/locations/create",
596
+ data: serializedData,
597
+ host
598
+ }),
599
+ data: serializedData,
600
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
601
+ {
602
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
603
+ paths: [
604
+ { path: "results.item.createdDate" },
605
+ { path: "results.item.updatedDate" }
606
+ ]
607
+ }
608
+ ])
609
+ };
610
+ return metadata;
611
+ }
612
+ return __bulkCreateLocations;
613
+ }
614
+ function bulkDeleteLocations(payload) {
615
+ function __bulkDeleteLocations({ host }) {
616
+ const metadata = {
617
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
618
+ method: "POST",
619
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.BulkDeleteLocations",
620
+ packageName: PACKAGE_NAME,
621
+ migrationOptions: {
622
+ optInTransformResponse: true
623
+ },
624
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
625
+ protoPath: "/v1/bulk/locations/delete",
626
+ data: payload,
627
+ host
628
+ }),
629
+ data: payload
630
+ };
631
+ return metadata;
632
+ }
633
+ return __bulkDeleteLocations;
634
+ }
635
+ function listGbpAccounts(payload) {
636
+ function __listGbpAccounts({ host }) {
637
+ const metadata = {
638
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
639
+ method: "GET",
640
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListGbpAccounts",
641
+ packageName: PACKAGE_NAME,
642
+ migrationOptions: {
643
+ optInTransformResponse: true
644
+ },
645
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
646
+ protoPath: "/v1/accounts",
647
+ data: payload,
648
+ host
649
+ }),
650
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
651
+ };
652
+ return metadata;
653
+ }
654
+ return __listGbpAccounts;
655
+ }
656
+ function listUnimportedLocations(payload) {
657
+ function __listUnimportedLocations({ host }) {
658
+ const metadata = {
659
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
660
+ method: "GET",
661
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListUnimportedLocations",
662
+ packageName: PACKAGE_NAME,
663
+ migrationOptions: {
664
+ optInTransformResponse: true
665
+ },
666
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
667
+ protoPath: "/v1/accounts/{accountId}/locations/unimported",
668
+ data: payload,
669
+ host
670
+ }),
671
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
672
+ };
673
+ return metadata;
674
+ }
675
+ return __listUnimportedLocations;
676
+ }
677
+ function listReviews(payload) {
678
+ function __listReviews({ host }) {
679
+ const metadata = {
680
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
681
+ method: "GET",
682
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListReviews",
683
+ packageName: PACKAGE_NAME,
684
+ migrationOptions: {
685
+ optInTransformResponse: true
686
+ },
687
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
688
+ protoPath: "/v1/locations/{locationId}/reviews",
689
+ data: payload,
690
+ host
691
+ }),
692
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
693
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
694
+ {
695
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
696
+ paths: [{ path: "metrics.averageRating" }]
697
+ }
698
+ ])
699
+ };
700
+ return metadata;
701
+ }
702
+ return __listReviews;
703
+ }
704
+ function putReviewReply(payload) {
705
+ function __putReviewReply({ host }) {
706
+ const metadata = {
707
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
708
+ method: "PUT",
709
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.PutReviewReply",
710
+ packageName: PACKAGE_NAME,
711
+ migrationOptions: {
712
+ optInTransformResponse: true
713
+ },
714
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
715
+ protoPath: "/v1/locations/{locationId}/reviews/{reviewId}/reply",
716
+ data: payload,
717
+ host
718
+ }),
719
+ data: payload
720
+ };
721
+ return metadata;
722
+ }
723
+ return __putReviewReply;
724
+ }
725
+ function deleteReviewReply(payload) {
726
+ function __deleteReviewReply({ host }) {
727
+ const metadata = {
728
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
729
+ method: "DELETE",
730
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.DeleteReviewReply",
731
+ packageName: PACKAGE_NAME,
732
+ migrationOptions: {
733
+ optInTransformResponse: true
734
+ },
735
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
736
+ protoPath: "/v1/locations/{locationId}/reviews/{reviewId}/reply",
737
+ data: payload,
738
+ host
739
+ }),
740
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
741
+ };
742
+ return metadata;
743
+ }
744
+ return __deleteReviewReply;
745
+ }
746
+ function listMedia(payload) {
747
+ function __listMedia({ host }) {
748
+ const metadata = {
749
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
750
+ method: "GET",
751
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListMedia",
752
+ packageName: PACKAGE_NAME,
753
+ migrationOptions: {
754
+ optInTransformResponse: true
755
+ },
756
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
757
+ protoPath: "/v1/locations/{locationId}/media",
758
+ data: payload,
759
+ host
760
+ }),
761
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
762
+ };
763
+ return metadata;
764
+ }
765
+ return __listMedia;
766
+ }
767
+ function createMedia(payload) {
768
+ function __createMedia({ host }) {
769
+ const metadata = {
770
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
771
+ method: "POST",
772
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.CreateMedia",
773
+ packageName: PACKAGE_NAME,
774
+ migrationOptions: {
775
+ optInTransformResponse: true
776
+ },
777
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
778
+ protoPath: "/v1/locations/{locationId}/media",
779
+ data: payload,
780
+ host
781
+ }),
782
+ data: payload
783
+ };
784
+ return metadata;
785
+ }
786
+ return __createMedia;
787
+ }
788
+ function deleteMedia(payload) {
789
+ function __deleteMedia({ host }) {
790
+ const metadata = {
791
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
792
+ method: "DELETE",
793
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.DeleteMedia",
794
+ packageName: PACKAGE_NAME,
795
+ migrationOptions: {
796
+ optInTransformResponse: true
797
+ },
798
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
799
+ protoPath: "/v1/locations/{locationId}/media/{mediaKey}",
800
+ data: payload,
801
+ host
802
+ }),
803
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
804
+ };
805
+ return metadata;
806
+ }
807
+ return __deleteMedia;
808
+ }
809
+ function updateLocationFoodMenus(payload) {
810
+ function __updateLocationFoodMenus({ host }) {
811
+ const metadata = {
812
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
813
+ method: "PATCH",
814
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateLocationFoodMenus",
815
+ packageName: PACKAGE_NAME,
816
+ migrationOptions: {
817
+ optInTransformResponse: true
818
+ },
819
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
820
+ protoPath: "/v1/locations/{locationId}/food-menus",
821
+ data: payload,
822
+ host
823
+ }),
824
+ data: payload
825
+ };
826
+ return metadata;
827
+ }
828
+ return __updateLocationFoodMenus;
829
+ }
830
+ function updateLocationAttributes(payload) {
831
+ function __updateLocationAttributes({ host }) {
832
+ const metadata = {
833
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
834
+ method: "PATCH",
835
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateLocationAttributes",
836
+ packageName: PACKAGE_NAME,
837
+ migrationOptions: {
838
+ optInTransformResponse: true
839
+ },
840
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
841
+ protoPath: "/v1/locations/{locationId}/attributes",
842
+ data: payload,
843
+ host
844
+ }),
845
+ data: payload
846
+ };
847
+ return metadata;
848
+ }
849
+ return __updateLocationAttributes;
850
+ }
851
+ function getLocationAttributes(payload) {
852
+ function __getLocationAttributes({ host }) {
853
+ const metadata = {
854
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
855
+ method: "GET",
856
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetLocationAttributes",
857
+ packageName: PACKAGE_NAME,
858
+ migrationOptions: {
859
+ optInTransformResponse: true
860
+ },
861
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
862
+ protoPath: "/v1/locations/{locationId}/attributes",
863
+ data: payload,
864
+ host
865
+ }),
866
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
867
+ };
868
+ return metadata;
869
+ }
870
+ return __getLocationAttributes;
871
+ }
872
+ function getLocationLodging(payload) {
873
+ function __getLocationLodging({ host }) {
874
+ const metadata = {
875
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
876
+ method: "GET",
877
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetLocationLodging",
878
+ packageName: PACKAGE_NAME,
879
+ migrationOptions: {
880
+ optInTransformResponse: true
881
+ },
882
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
883
+ protoPath: "/v1/locations/{locationId}/lodging",
884
+ data: payload,
885
+ host
886
+ }),
887
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
888
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
889
+ {
890
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
891
+ paths: [
892
+ {
893
+ path: "lodging.allUnits.totalLivingAreas.layout.livingAreaSqMeters"
894
+ },
895
+ { path: "lodging.commonLivingArea.layout.livingAreaSqMeters" },
896
+ {
897
+ path: "lodging.guestUnits.features.totalLivingAreas.layout.livingAreaSqMeters"
898
+ },
899
+ {
900
+ path: "lodging.someUnits.totalLivingAreas.layout.livingAreaSqMeters"
901
+ }
902
+ ]
903
+ },
904
+ {
905
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
906
+ paths: [{ path: "lodging.metadata.updateTime" }]
907
+ }
908
+ ])
909
+ };
910
+ return metadata;
911
+ }
912
+ return __getLocationLodging;
913
+ }
914
+ function updateLocationLodging(payload) {
915
+ function __updateLocationLodging({ host }) {
916
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
917
+ {
918
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
919
+ paths: [{ path: "fieldMask" }]
920
+ },
921
+ {
922
+ transformFn: import_float.transformSDKFloatToRESTFloat,
923
+ paths: [
924
+ {
925
+ path: "lodging.allUnits.totalLivingAreas.layout.livingAreaSqMeters"
926
+ },
927
+ { path: "lodging.commonLivingArea.layout.livingAreaSqMeters" },
928
+ {
929
+ path: "lodging.guestUnits.features.totalLivingAreas.layout.livingAreaSqMeters"
930
+ },
931
+ {
932
+ path: "lodging.someUnits.totalLivingAreas.layout.livingAreaSqMeters"
933
+ }
934
+ ]
935
+ },
936
+ {
937
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
938
+ paths: [{ path: "lodging.metadata.updateTime" }]
939
+ }
940
+ ]);
941
+ const metadata = {
942
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
943
+ method: "PATCH",
944
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateLocationLodging",
945
+ packageName: PACKAGE_NAME,
946
+ migrationOptions: {
947
+ optInTransformResponse: true
948
+ },
949
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
950
+ protoPath: "/v1/locations/{locationId}/lodging",
951
+ data: serializedData,
952
+ host
953
+ }),
954
+ data: serializedData,
955
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
956
+ {
957
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
958
+ paths: [
959
+ {
960
+ path: "lodging.allUnits.totalLivingAreas.layout.livingAreaSqMeters"
961
+ },
962
+ { path: "lodging.commonLivingArea.layout.livingAreaSqMeters" },
963
+ {
964
+ path: "lodging.guestUnits.features.totalLivingAreas.layout.livingAreaSqMeters"
965
+ },
966
+ {
967
+ path: "lodging.someUnits.totalLivingAreas.layout.livingAreaSqMeters"
968
+ }
969
+ ]
970
+ },
971
+ {
972
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
973
+ paths: [{ path: "lodging.metadata.updateTime" }]
974
+ }
975
+ ])
976
+ };
977
+ return metadata;
978
+ }
979
+ return __updateLocationLodging;
980
+ }
981
+ function listAttributeMetadata(payload) {
982
+ function __listAttributeMetadata({ host }) {
983
+ const metadata = {
984
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
985
+ method: "GET",
986
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListAttributeMetadata",
987
+ packageName: PACKAGE_NAME,
988
+ migrationOptions: {
989
+ optInTransformResponse: true
990
+ },
991
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
992
+ protoPath: "/v1/attribute-metadata",
993
+ data: payload,
994
+ host
995
+ }),
996
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
997
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
998
+ {
999
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1000
+ paths: [{ path: "attributeMetadata.valueMetadata.numberValue" }]
1001
+ }
1002
+ ])
1003
+ };
1004
+ return metadata;
1005
+ }
1006
+ return __listAttributeMetadata;
1007
+ }
1008
+ function listCategories(payload) {
1009
+ function __listCategories({ host }) {
1010
+ const metadata = {
1011
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1012
+ method: "GET",
1013
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListCategories",
1014
+ packageName: PACKAGE_NAME,
1015
+ migrationOptions: {
1016
+ optInTransformResponse: true
1017
+ },
1018
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1019
+ protoPath: "/v1/categories",
1020
+ data: payload,
1021
+ host
1022
+ }),
1023
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
1024
+ };
1025
+ return metadata;
1026
+ }
1027
+ return __listCategories;
1028
+ }
1029
+ function getVerificationOptions(payload) {
1030
+ function __getVerificationOptions({ host }) {
1031
+ const metadata = {
1032
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1033
+ method: "POST",
1034
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetVerificationOptions",
1035
+ packageName: PACKAGE_NAME,
1036
+ migrationOptions: {
1037
+ optInTransformResponse: true
1038
+ },
1039
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1040
+ protoPath: "/v1/locations/{locationId}:getVerificationOptions",
1041
+ data: payload,
1042
+ host
1043
+ }),
1044
+ data: payload
1045
+ };
1046
+ return metadata;
1047
+ }
1048
+ return __getVerificationOptions;
1049
+ }
1050
+ function startVerification(payload) {
1051
+ function __startVerification({ host }) {
1052
+ const metadata = {
1053
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1054
+ method: "POST",
1055
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.StartVerification",
1056
+ packageName: PACKAGE_NAME,
1057
+ migrationOptions: {
1058
+ optInTransformResponse: true
1059
+ },
1060
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1061
+ protoPath: "/v1/locations/{locationId}:startVerification",
1062
+ data: payload,
1063
+ host
1064
+ }),
1065
+ data: payload
1066
+ };
1067
+ return metadata;
1068
+ }
1069
+ return __startVerification;
1070
+ }
1071
+ function completeVerification(payload) {
1072
+ function __completeVerification({ host }) {
1073
+ const metadata = {
1074
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1075
+ method: "POST",
1076
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.CompleteVerification",
1077
+ packageName: PACKAGE_NAME,
1078
+ migrationOptions: {
1079
+ optInTransformResponse: true
1080
+ },
1081
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1082
+ protoPath: "/v1/locations/{locationId}:completeVerification",
1083
+ data: payload,
1084
+ host
1085
+ }),
1086
+ data: payload
1087
+ };
1088
+ return metadata;
1089
+ }
1090
+ return __completeVerification;
1091
+ }
1092
+ function getVoiceOfMerchant(payload) {
1093
+ function __getVoiceOfMerchant({ host }) {
1094
+ const metadata = {
1095
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1096
+ method: "GET",
1097
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetVoiceOfMerchant",
1098
+ packageName: PACKAGE_NAME,
1099
+ migrationOptions: {
1100
+ optInTransformResponse: true
1101
+ },
1102
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1103
+ protoPath: "/v1/locations/{locationId}/voice-of-merchant",
1104
+ data: payload,
1105
+ host
1106
+ }),
1107
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
1108
+ };
1109
+ return metadata;
1110
+ }
1111
+ return __getVoiceOfMerchant;
1112
+ }
1113
+ function getLocationInsights(payload) {
1114
+ function __getLocationInsights({ host }) {
1115
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
1116
+ {
1117
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
1118
+ paths: [{ path: "timeRange.startDate" }, { path: "timeRange.endDate" }]
1119
+ }
1120
+ ]);
1121
+ const metadata = {
1122
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1123
+ method: "GET",
1124
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetLocationInsights",
1125
+ packageName: PACKAGE_NAME,
1126
+ migrationOptions: {
1127
+ optInTransformResponse: true
1128
+ },
1129
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1130
+ protoPath: "/v1/locations/{locationId}/insights",
1131
+ data: serializedData,
1132
+ host
1133
+ }),
1134
+ params: (0, import_rest_modules.toURLSearchParams)(serializedData),
1135
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1136
+ {
1137
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1138
+ paths: [{ path: "metrics.dailyValues.date" }]
1139
+ }
1140
+ ])
1141
+ };
1142
+ return metadata;
1143
+ }
1144
+ return __getLocationInsights;
1145
+ }
1146
+ function listSearchKeywordImpressions(payload) {
1147
+ function __listSearchKeywordImpressions({ host }) {
1148
+ const metadata = {
1149
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1150
+ method: "GET",
1151
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListSearchKeywordImpressions",
1152
+ packageName: PACKAGE_NAME,
1153
+ migrationOptions: {
1154
+ optInTransformResponse: true
1155
+ },
1156
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1157
+ protoPath: "/v1/locations/{locationId}/search-keyword-impressions",
1158
+ data: payload,
1159
+ host
1160
+ }),
1161
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
1162
+ };
1163
+ return metadata;
1164
+ }
1165
+ return __listSearchKeywordImpressions;
1166
+ }
1167
+ function inviteAdminToLocation(payload) {
1168
+ function __inviteAdminToLocation({ host }) {
1169
+ const metadata = {
1170
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1171
+ method: "POST",
1172
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.InviteAdminToLocation",
1173
+ packageName: PACKAGE_NAME,
1174
+ migrationOptions: {
1175
+ optInTransformResponse: true
1176
+ },
1177
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1178
+ protoPath: "/v1/locations/{locationId}/invite-admin",
1179
+ data: payload,
1180
+ host
1181
+ }),
1182
+ data: payload
1183
+ };
1184
+ return metadata;
1185
+ }
1186
+ return __inviteAdminToLocation;
1187
+ }
1188
+ function getLocationAdmins(payload) {
1189
+ function __getLocationAdmins({ host }) {
1190
+ const metadata = {
1191
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1192
+ method: "GET",
1193
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetLocationAdmins",
1194
+ packageName: PACKAGE_NAME,
1195
+ migrationOptions: {
1196
+ optInTransformResponse: true
1197
+ },
1198
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1199
+ protoPath: "/v1/locations/{locationId}/admins",
1200
+ data: payload,
1201
+ host
1202
+ }),
1203
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
1204
+ };
1205
+ return metadata;
1206
+ }
1207
+ return __getLocationAdmins;
1208
+ }
1209
+ function getAddressSchemaByCountryCode(payload) {
1210
+ function __getAddressSchemaByCountryCode({ host }) {
1211
+ const metadata = {
1212
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1213
+ method: "GET",
1214
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetAddressSchemaByCountryCode",
1215
+ packageName: PACKAGE_NAME,
1216
+ migrationOptions: {
1217
+ optInTransformResponse: true
1218
+ },
1219
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1220
+ protoPath: "/v1/address-schema/{countryCode}",
1221
+ data: payload,
1222
+ host
1223
+ }),
1224
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
1225
+ };
1226
+ return metadata;
1227
+ }
1228
+ return __getAddressSchemaByCountryCode;
1229
+ }
1230
+ function suggestRegions(payload) {
1231
+ function __suggestRegions({ host }) {
1232
+ const metadata = {
1233
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1234
+ method: "POST",
1235
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.SuggestRegions",
1236
+ packageName: PACKAGE_NAME,
1237
+ migrationOptions: {
1238
+ optInTransformResponse: true
1239
+ },
1240
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1241
+ protoPath: "/v1/regions/suggest",
1242
+ data: payload,
1243
+ host
1244
+ }),
1245
+ data: payload
1246
+ };
1247
+ return metadata;
1248
+ }
1249
+ return __suggestRegions;
1250
+ }
1251
+ function suggestEstablishments(payload) {
1252
+ function __suggestEstablishments({ host }) {
1253
+ const metadata = {
1254
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1255
+ method: "POST",
1256
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.SuggestEstablishments",
1257
+ packageName: PACKAGE_NAME,
1258
+ migrationOptions: {
1259
+ optInTransformResponse: true
1260
+ },
1261
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1262
+ protoPath: "/v1/establishments/suggest",
1263
+ data: payload,
1264
+ host
1265
+ }),
1266
+ data: payload
1267
+ };
1268
+ return metadata;
1269
+ }
1270
+ return __suggestEstablishments;
1271
+ }
1272
+ function searchGoogleLocations(payload) {
1273
+ function __searchGoogleLocations({ host }) {
1274
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
1275
+ {
1276
+ transformFn: import_float.transformSDKFloatToRESTFloat,
1277
+ paths: [
1278
+ { path: "location.latLng.latitude" },
1279
+ { path: "location.latLng.longitude" }
1280
+ ]
1281
+ }
1282
+ ]);
1283
+ const metadata = {
1284
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1285
+ method: "POST",
1286
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.SearchGoogleLocations",
1287
+ packageName: PACKAGE_NAME,
1288
+ migrationOptions: {
1289
+ optInTransformResponse: true
1290
+ },
1291
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1292
+ protoPath: "/v1/google-locations/search",
1293
+ data: serializedData,
1294
+ host
1295
+ }),
1296
+ data: serializedData,
1297
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1298
+ {
1299
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1300
+ paths: [
1301
+ { path: "matches.location.latLng.latitude" },
1302
+ { path: "matches.location.latLng.longitude" }
1303
+ ]
1304
+ }
1305
+ ])
1306
+ };
1307
+ return metadata;
1308
+ }
1309
+ return __searchGoogleLocations;
1310
+ }
1311
+
1312
+ // src/gbp-location-v1-gbplocation-locations.universal.ts
1313
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
1314
+ var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
1315
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1316
+ SortOrder2["ASC"] = "ASC";
1317
+ SortOrder2["DESC"] = "DESC";
1318
+ return SortOrder2;
1319
+ })(SortOrder || {});
1320
+ var BusinessType = /* @__PURE__ */ ((BusinessType2) => {
1321
+ BusinessType2["CUSTOMER_LOCATION_ONLY"] = "CUSTOMER_LOCATION_ONLY";
1322
+ BusinessType2["CUSTOMER_AND_BUSINESS_LOCATION"] = "CUSTOMER_AND_BUSINESS_LOCATION";
1323
+ return BusinessType2;
1324
+ })(BusinessType || {});
1325
+ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
1326
+ DayOfWeek2["MONDAY"] = "MONDAY";
1327
+ DayOfWeek2["TUESDAY"] = "TUESDAY";
1328
+ DayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
1329
+ DayOfWeek2["THURSDAY"] = "THURSDAY";
1330
+ DayOfWeek2["FRIDAY"] = "FRIDAY";
1331
+ DayOfWeek2["SATURDAY"] = "SATURDAY";
1332
+ DayOfWeek2["SUNDAY"] = "SUNDAY";
1333
+ return DayOfWeek2;
1334
+ })(DayOfWeek || {});
1335
+ var Status = /* @__PURE__ */ ((Status2) => {
1336
+ Status2["OPEN"] = "OPEN";
1337
+ Status2["CLOSED_PERMANENTLY"] = "CLOSED_PERMANENTLY";
1338
+ Status2["CLOSED_TEMPORARILY"] = "CLOSED_TEMPORARILY";
1339
+ return Status2;
1340
+ })(Status || {});
1341
+ var State = /* @__PURE__ */ ((State2) => {
1342
+ State2["WAIT_FOR_VOICE_OF_MERCHANT"] = "WAIT_FOR_VOICE_OF_MERCHANT";
1343
+ State2["RESOLVE_OWNERSHIP_CONFLICT"] = "RESOLVE_OWNERSHIP_CONFLICT";
1344
+ State2["COMPLY_WITH_GUIDELINES"] = "COMPLY_WITH_GUIDELINES";
1345
+ State2["VERIFY"] = "VERIFY";
1346
+ return State2;
1347
+ })(State || {});
1348
+ var RecommendationReason = /* @__PURE__ */ ((RecommendationReason2) => {
1349
+ RecommendationReason2["BUSINESS_LOCATION_SUSPENDED"] = "BUSINESS_LOCATION_SUSPENDED";
1350
+ RecommendationReason2["BUSINESS_LOCATION_DISABLED"] = "BUSINESS_LOCATION_DISABLED";
1351
+ return RecommendationReason2;
1352
+ })(RecommendationReason || {});
1353
+ var ReviewSortOrder = /* @__PURE__ */ ((ReviewSortOrder2) => {
1354
+ ReviewSortOrder2["NEWEST"] = "NEWEST";
1355
+ ReviewSortOrder2["HIGHEST_RATING"] = "HIGHEST_RATING";
1356
+ ReviewSortOrder2["LOWEST_RATING"] = "LOWEST_RATING";
1357
+ return ReviewSortOrder2;
1358
+ })(ReviewSortOrder || {});
1359
+ var MediaFormat = /* @__PURE__ */ ((MediaFormat2) => {
1360
+ MediaFormat2["PHOTO"] = "PHOTO";
1361
+ MediaFormat2["VIDEO"] = "VIDEO";
1362
+ return MediaFormat2;
1363
+ })(MediaFormat || {});
1364
+ var MediaCategory = /* @__PURE__ */ ((MediaCategory2) => {
1365
+ MediaCategory2["COVER"] = "COVER";
1366
+ MediaCategory2["PROFILE"] = "PROFILE";
1367
+ MediaCategory2["LOGO"] = "LOGO";
1368
+ MediaCategory2["EXTERIOR"] = "EXTERIOR";
1369
+ MediaCategory2["INTERIOR"] = "INTERIOR";
1370
+ MediaCategory2["PRODUCT"] = "PRODUCT";
1371
+ MediaCategory2["AT_WORK"] = "AT_WORK";
1372
+ MediaCategory2["FOOD_AND_DRINK"] = "FOOD_AND_DRINK";
1373
+ MediaCategory2["MENU"] = "MENU";
1374
+ MediaCategory2["COMMON_AREA"] = "COMMON_AREA";
1375
+ MediaCategory2["ROOMS"] = "ROOMS";
1376
+ MediaCategory2["TEAMS"] = "TEAMS";
1377
+ MediaCategory2["ADDITIONAL"] = "ADDITIONAL";
1378
+ return MediaCategory2;
1379
+ })(MediaCategory || {});
1380
+ var AmenityException = /* @__PURE__ */ ((AmenityException2) => {
1381
+ AmenityException2["UNDER_CONSTRUCTION"] = "UNDER_CONSTRUCTION";
1382
+ AmenityException2["DEPENDENT_ON_SEASON"] = "DEPENDENT_ON_SEASON";
1383
+ AmenityException2["DEPENDENT_ON_DAY_OF_WEEK"] = "DEPENDENT_ON_DAY_OF_WEEK";
1384
+ return AmenityException2;
1385
+ })(AmenityException || {});
1386
+ var EcoCertificate = /* @__PURE__ */ ((EcoCertificate2) => {
1387
+ EcoCertificate2["ISO14001"] = "ISO14001";
1388
+ EcoCertificate2["ISO50001"] = "ISO50001";
1389
+ EcoCertificate2["ASIAN_ECOTOURISM"] = "ASIAN_ECOTOURISM";
1390
+ EcoCertificate2["BIOSPHERE_RESPOSNIBLE_TOURISM"] = "BIOSPHERE_RESPOSNIBLE_TOURISM";
1391
+ EcoCertificate2["BUREAU_VERITAS"] = "BUREAU_VERITAS";
1392
+ EcoCertificate2["CONTROL_UNION"] = "CONTROL_UNION";
1393
+ EcoCertificate2["EARTHCHECK"] = "EARTHCHECK";
1394
+ EcoCertificate2["ECO_CERTIFICATION_MALTA"] = "ECO_CERTIFICATION_MALTA";
1395
+ EcoCertificate2["ECOTOURISM_AUSTRALIAS_ECO"] = "ECOTOURISM_AUSTRALIAS_ECO";
1396
+ EcoCertificate2["GREAT_GREEN_DEAL"] = "GREAT_GREEN_DEAL";
1397
+ EcoCertificate2["GREEN_GLOBE"] = "GREEN_GLOBE";
1398
+ EcoCertificate2["GREEN_GROWTH2050"] = "GREEN_GROWTH2050";
1399
+ EcoCertificate2["GREEN_KEY"] = "GREEN_KEY";
1400
+ EcoCertificate2["GREEN_KEY_ECO_RATING"] = "GREEN_KEY_ECO_RATING";
1401
+ EcoCertificate2["GREEN_SEAL"] = "GREEN_SEAL";
1402
+ EcoCertificate2["GREEN_STAR"] = "GREEN_STAR";
1403
+ EcoCertificate2["GREEN_TOURISM_ACTIVE"] = "GREEN_TOURISM_ACTIVE";
1404
+ EcoCertificate2["HILTON_LIGHTSTAY"] = "HILTON_LIGHTSTAY";
1405
+ EcoCertificate2["HOSTELLING_INTERNATIONALS_QUALITY_AND_SUSTAINABILITY"] = "HOSTELLING_INTERNATIONALS_QUALITY_AND_SUSTAINABILITY";
1406
+ EcoCertificate2["HOTELES_MAS_VERDES"] = "HOTELES_MAS_VERDES";
1407
+ EcoCertificate2["NORDIC_SWAN_ECOLABEL"] = "NORDIC_SWAN_ECOLABEL";
1408
+ EcoCertificate2["PREFERRED_BY_NATURE_SUSTAINABLE_TOURISM"] = "PREFERRED_BY_NATURE_SUSTAINABLE_TOURISM";
1409
+ EcoCertificate2["SUSTAINABLE_TRAVEL_IRELAND"] = "SUSTAINABLE_TRAVEL_IRELAND";
1410
+ EcoCertificate2["TOF_TIGERS_INITITIVES_PUG"] = "TOF_TIGERS_INITITIVES_PUG";
1411
+ EcoCertificate2["TRAVELIFE"] = "TRAVELIFE";
1412
+ EcoCertificate2["UNITED_CERTIFICATION_SYSTEMS_LIMITED"] = "UNITED_CERTIFICATION_SYSTEMS_LIMITED";
1413
+ EcoCertificate2["VIREO_SRL"] = "VIREO_SRL";
1414
+ return EcoCertificate2;
1415
+ })(EcoCertificate || {});
1416
+ var UnitTier = /* @__PURE__ */ ((UnitTier2) => {
1417
+ UnitTier2["STANDARD_UNIT"] = "STANDARD_UNIT";
1418
+ UnitTier2["DELUXE_UNIT"] = "DELUXE_UNIT";
1419
+ return UnitTier2;
1420
+ })(UnitTier || {});
1421
+ var BreeamCertification = /* @__PURE__ */ ((BreeamCertification2) => {
1422
+ BreeamCertification2["NO_BREEAM_CERTIFICATION"] = "NO_BREEAM_CERTIFICATION";
1423
+ BreeamCertification2["BREEAM_PASS"] = "BREEAM_PASS";
1424
+ BreeamCertification2["BREEAM_GOOD"] = "BREEAM_GOOD";
1425
+ BreeamCertification2["BREEAM_VERY_GOOD"] = "BREEAM_VERY_GOOD";
1426
+ BreeamCertification2["BREEAM_EXCELLENT"] = "BREEAM_EXCELLENT";
1427
+ BreeamCertification2["BREEAM_OUTSTANDING"] = "BREEAM_OUTSTANDING";
1428
+ return BreeamCertification2;
1429
+ })(BreeamCertification || {});
1430
+ var LeedCertification = /* @__PURE__ */ ((LeedCertification2) => {
1431
+ LeedCertification2["NO_LEED_CERTIFICATION"] = "NO_LEED_CERTIFICATION";
1432
+ LeedCertification2["LEED_CERTIFIED"] = "LEED_CERTIFIED";
1433
+ LeedCertification2["LEED_SILVER"] = "LEED_SILVER";
1434
+ LeedCertification2["LEED_GOLD"] = "LEED_GOLD";
1435
+ LeedCertification2["LEED_PLATINUM"] = "LEED_PLATINUM";
1436
+ return LeedCertification2;
1437
+ })(LeedCertification || {});
1438
+ var AttributeValueType = /* @__PURE__ */ ((AttributeValueType2) => {
1439
+ AttributeValueType2["BOOL"] = "BOOL";
1440
+ AttributeValueType2["ENUM"] = "ENUM";
1441
+ AttributeValueType2["URL"] = "URL";
1442
+ AttributeValueType2["REPEATED_ENUM"] = "REPEATED_ENUM";
1443
+ return AttributeValueType2;
1444
+ })(AttributeValueType || {});
1445
+ var CategoryView = /* @__PURE__ */ ((CategoryView2) => {
1446
+ CategoryView2["BASIC"] = "BASIC";
1447
+ CategoryView2["FULL"] = "FULL";
1448
+ return CategoryView2;
1449
+ })(CategoryView || {});
1450
+ var VerificationMethod = /* @__PURE__ */ ((VerificationMethod2) => {
1451
+ VerificationMethod2["ADDRESS"] = "ADDRESS";
1452
+ VerificationMethod2["EMAIL"] = "EMAIL";
1453
+ VerificationMethod2["PHONE_CALL"] = "PHONE_CALL";
1454
+ VerificationMethod2["SMS"] = "SMS";
1455
+ VerificationMethod2["AUTO"] = "AUTO";
1456
+ return VerificationMethod2;
1457
+ })(VerificationMethod || {});
1458
+ var VerificationState = /* @__PURE__ */ ((VerificationState2) => {
1459
+ VerificationState2["UNVERIFIED"] = "UNVERIFIED";
1460
+ VerificationState2["PENDING_VERIFICATION"] = "PENDING_VERIFICATION";
1461
+ VerificationState2["VERIFIED"] = "VERIFIED";
1462
+ return VerificationState2;
1463
+ })(VerificationState || {});
1464
+ var DailyMetric = /* @__PURE__ */ ((DailyMetric2) => {
1465
+ DailyMetric2["BUSINESS_IMPRESSIONS_DESKTOP_MAPS"] = "BUSINESS_IMPRESSIONS_DESKTOP_MAPS";
1466
+ DailyMetric2["BUSINESS_IMPRESSIONS_DESKTOP_SEARCH"] = "BUSINESS_IMPRESSIONS_DESKTOP_SEARCH";
1467
+ DailyMetric2["BUSINESS_IMPRESSIONS_MOBILE_MAPS"] = "BUSINESS_IMPRESSIONS_MOBILE_MAPS";
1468
+ DailyMetric2["BUSINESS_IMPRESSIONS_MOBILE_SEARCH"] = "BUSINESS_IMPRESSIONS_MOBILE_SEARCH";
1469
+ DailyMetric2["BUSINESS_CONVERSATIONS"] = "BUSINESS_CONVERSATIONS";
1470
+ DailyMetric2["BUSINESS_DIRECTION_REQUESTS"] = "BUSINESS_DIRECTION_REQUESTS";
1471
+ DailyMetric2["CALL_CLICKS"] = "CALL_CLICKS";
1472
+ DailyMetric2["WEBSITE_CLICKS"] = "WEBSITE_CLICKS";
1473
+ DailyMetric2["BUSINESS_BOOKINGS"] = "BUSINESS_BOOKINGS";
1474
+ DailyMetric2["BUSINESS_FOOD_ORDERS"] = "BUSINESS_FOOD_ORDERS";
1475
+ DailyMetric2["BUSINESS_FOOD_MENU_CLICKS"] = "BUSINESS_FOOD_MENU_CLICKS";
1476
+ return DailyMetric2;
1477
+ })(DailyMetric || {});
1478
+ var Role = /* @__PURE__ */ ((Role2) => {
1479
+ Role2["UNKNOWN"] = "UNKNOWN";
1480
+ Role2["ADMIN_ROLE_UNSPECIFIED"] = "ADMIN_ROLE_UNSPECIFIED";
1481
+ Role2["MANAGER"] = "MANAGER";
1482
+ Role2["OWNER"] = "OWNER";
1483
+ Role2["PRIMARY_OWNER"] = "PRIMARY_OWNER";
1484
+ Role2["SITE_MANAGER"] = "SITE_MANAGER";
1485
+ return Role2;
1486
+ })(Role || {});
1487
+ var AddressFieldType = /* @__PURE__ */ ((AddressFieldType2) => {
1488
+ AddressFieldType2["NAME"] = "NAME";
1489
+ AddressFieldType2["ORGANIZATION"] = "ORGANIZATION";
1490
+ AddressFieldType2["STREET_ADDRESS"] = "STREET_ADDRESS";
1491
+ AddressFieldType2["DEPENDENT_LOCALITY"] = "DEPENDENT_LOCALITY";
1492
+ AddressFieldType2["LOCALITY"] = "LOCALITY";
1493
+ AddressFieldType2["ADMIN_AREA"] = "ADMIN_AREA";
1494
+ AddressFieldType2["POSTAL_CODE"] = "POSTAL_CODE";
1495
+ AddressFieldType2["SORTING_CODE"] = "SORTING_CODE";
1496
+ return AddressFieldType2;
1497
+ })(AddressFieldType || {});
1498
+ var MatchStatus = /* @__PURE__ */ ((MatchStatus2) => {
1499
+ MatchStatus2["CLAIMABLE"] = "CLAIMABLE";
1500
+ MatchStatus2["OWNED_ELSEWHERE"] = "OWNED_ELSEWHERE";
1501
+ return MatchStatus2;
1502
+ })(MatchStatus || {});
1503
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1504
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1505
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1506
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1507
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1508
+ WebhookIdentityType2["APP"] = "APP";
1509
+ return WebhookIdentityType2;
1510
+ })(WebhookIdentityType || {});
1511
+ async function getGbpLocation2(locationId) {
1512
+ const { httpClient, sideEffects } = arguments[1];
1513
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1514
+ locationId
1515
+ });
1516
+ const reqOpts = getGbpLocation(payload);
1517
+ sideEffects?.onSiteCall?.();
1518
+ try {
1519
+ const result = await httpClient.request(reqOpts);
1520
+ sideEffects?.onSuccess?.(result);
1521
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.gbplocation;
1522
+ } catch (err) {
1523
+ const transformedError = (0, import_transform_error.transformError)(
1524
+ err,
1525
+ {
1526
+ spreadPathsToArguments: {},
1527
+ explicitPathsToArguments: { locationId: "$[0]" },
1528
+ singleArgumentUnchanged: false
1529
+ },
1530
+ ["locationId"]
1531
+ );
1532
+ sideEffects?.onError?.(err);
1533
+ throw transformedError;
1534
+ }
1535
+ }
1536
+ function queryGbpLocations2() {
1537
+ const { httpClient, sideEffects } = arguments[0];
1538
+ return (0, import_query_builder.queryBuilder)({
1539
+ func: async (payload) => {
1540
+ const reqOpts = queryGbpLocations(payload);
1541
+ sideEffects?.onSiteCall?.();
1542
+ try {
1543
+ const result = await httpClient.request(reqOpts);
1544
+ sideEffects?.onSuccess?.(result);
1545
+ return result;
1546
+ } catch (err) {
1547
+ sideEffects?.onError?.(err);
1548
+ throw err;
1549
+ }
1550
+ },
1551
+ requestTransformer: (query) => {
1552
+ const args = [query, {}];
1553
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1554
+ ...args?.[1],
1555
+ query: args?.[0]
1556
+ });
1557
+ },
1558
+ responseTransformer: ({
1559
+ data
1560
+ }) => {
1561
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1562
+ (0, import_transform_paths2.transformPaths)(data, [])
1563
+ );
1564
+ return {
1565
+ items: transformedData?.locations,
1566
+ pagingMetadata: transformedData?.pagingMetadata
1567
+ };
1568
+ },
1569
+ errorTransformer: (err) => {
1570
+ const transformedError = (0, import_transform_error.transformError)(err, {
1571
+ spreadPathsToArguments: {},
1572
+ explicitPathsToArguments: { query: "$[0]" },
1573
+ singleArgumentUnchanged: false
1574
+ });
1575
+ throw transformedError;
1576
+ },
1577
+ pagingMethod: "CURSOR",
1578
+ transformationPaths: {}
1579
+ });
1580
+ }
1581
+ async function typedQueryGbpLocations(query) {
1582
+ const { httpClient, sideEffects } = arguments[1];
1583
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
1584
+ const reqOpts = queryGbpLocations(payload);
1585
+ sideEffects?.onSiteCall?.();
1586
+ try {
1587
+ const result = await httpClient.request(reqOpts);
1588
+ sideEffects?.onSuccess?.(result);
1589
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1590
+ } catch (err) {
1591
+ const transformedError = (0, import_transform_error.transformError)(
1592
+ err,
1593
+ {
1594
+ spreadPathsToArguments: {},
1595
+ explicitPathsToArguments: { query: "$[0]" },
1596
+ singleArgumentUnchanged: false
1597
+ },
1598
+ ["query"]
1599
+ );
1600
+ sideEffects?.onError?.(err);
1601
+ throw transformedError;
1602
+ }
1603
+ }
1604
+ var utils = {
1605
+ query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
1606
+ };
1607
+ async function queryGoogleLocations2(options) {
1608
+ const { httpClient, sideEffects } = arguments[1];
1609
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1610
+ query: options?.query
1611
+ });
1612
+ const reqOpts = queryGoogleLocations(payload);
1613
+ sideEffects?.onSiteCall?.();
1614
+ try {
1615
+ const result = await httpClient.request(reqOpts);
1616
+ sideEffects?.onSuccess?.(result);
1617
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1618
+ } catch (err) {
1619
+ const transformedError = (0, import_transform_error.transformError)(
1620
+ err,
1621
+ {
1622
+ spreadPathsToArguments: {},
1623
+ explicitPathsToArguments: { query: "$[0].query" },
1624
+ singleArgumentUnchanged: false
1625
+ },
1626
+ ["options"]
1627
+ );
1628
+ sideEffects?.onError?.(err);
1629
+ throw transformedError;
1630
+ }
1631
+ }
1632
+ async function getGoogleLocation2(locationId) {
1633
+ const { httpClient, sideEffects } = arguments[1];
1634
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1635
+ locationId
1636
+ });
1637
+ const reqOpts = getGoogleLocation(payload);
1638
+ sideEffects?.onSiteCall?.();
1639
+ try {
1640
+ const result = await httpClient.request(reqOpts);
1641
+ sideEffects?.onSuccess?.(result);
1642
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1643
+ } catch (err) {
1644
+ const transformedError = (0, import_transform_error.transformError)(
1645
+ err,
1646
+ {
1647
+ spreadPathsToArguments: {},
1648
+ explicitPathsToArguments: { locationId: "$[0]" },
1649
+ singleArgumentUnchanged: false
1650
+ },
1651
+ ["locationId"]
1652
+ );
1653
+ sideEffects?.onError?.(err);
1654
+ throw transformedError;
1655
+ }
1656
+ }
1657
+ async function createLocation2(location) {
1658
+ const { httpClient, sideEffects } = arguments[1];
1659
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ location });
1660
+ const reqOpts = createLocation(payload);
1661
+ sideEffects?.onSiteCall?.();
1662
+ try {
1663
+ const result = await httpClient.request(reqOpts);
1664
+ sideEffects?.onSuccess?.(result);
1665
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.location;
1666
+ } catch (err) {
1667
+ const transformedError = (0, import_transform_error.transformError)(
1668
+ err,
1669
+ {
1670
+ spreadPathsToArguments: {},
1671
+ explicitPathsToArguments: { location: "$[0]" },
1672
+ singleArgumentUnchanged: false
1673
+ },
1674
+ ["location"]
1675
+ );
1676
+ sideEffects?.onError?.(err);
1677
+ throw transformedError;
1678
+ }
1679
+ }
1680
+ async function updateLocation2(_id, location) {
1681
+ const { httpClient, sideEffects } = arguments[2];
1682
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1683
+ location: { ...location, id: _id }
1684
+ });
1685
+ const reqOpts = updateLocation(payload);
1686
+ sideEffects?.onSiteCall?.();
1687
+ try {
1688
+ const result = await httpClient.request(reqOpts);
1689
+ sideEffects?.onSuccess?.(result);
1690
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.location;
1691
+ } catch (err) {
1692
+ const transformedError = (0, import_transform_error.transformError)(
1693
+ err,
1694
+ {
1695
+ spreadPathsToArguments: { location: "$[1]" },
1696
+ explicitPathsToArguments: { "location.id": "$[0]" },
1697
+ singleArgumentUnchanged: false
1698
+ },
1699
+ ["_id", "location"]
1700
+ );
1701
+ sideEffects?.onError?.(err);
1702
+ throw transformedError;
1703
+ }
1704
+ }
1705
+ async function deleteLocation2(locationId) {
1706
+ const { httpClient, sideEffects } = arguments[1];
1707
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1708
+ locationId
1709
+ });
1710
+ const reqOpts = deleteLocation(payload);
1711
+ sideEffects?.onSiteCall?.();
1712
+ try {
1713
+ const result = await httpClient.request(reqOpts);
1714
+ sideEffects?.onSuccess?.(result);
1715
+ } catch (err) {
1716
+ const transformedError = (0, import_transform_error.transformError)(
1717
+ err,
1718
+ {
1719
+ spreadPathsToArguments: {},
1720
+ explicitPathsToArguments: { locationId: "$[0]" },
1721
+ singleArgumentUnchanged: false
1722
+ },
1723
+ ["locationId"]
1724
+ );
1725
+ sideEffects?.onError?.(err);
1726
+ throw transformedError;
1727
+ }
1728
+ }
1729
+ async function createGoogleLocation2(accountId, options) {
1730
+ const { httpClient, sideEffects } = arguments[2];
1731
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1732
+ accountId,
1733
+ location: options?.location,
1734
+ validateOnly: options?.validateOnly
1735
+ });
1736
+ const reqOpts = createGoogleLocation(payload);
1737
+ sideEffects?.onSiteCall?.();
1738
+ try {
1739
+ const result = await httpClient.request(reqOpts);
1740
+ sideEffects?.onSuccess?.(result);
1741
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1742
+ } catch (err) {
1743
+ const transformedError = (0, import_transform_error.transformError)(
1744
+ err,
1745
+ {
1746
+ spreadPathsToArguments: {},
1747
+ explicitPathsToArguments: {
1748
+ accountId: "$[0]",
1749
+ location: "$[1].location",
1750
+ validateOnly: "$[1].validateOnly"
1751
+ },
1752
+ singleArgumentUnchanged: false
1753
+ },
1754
+ ["accountId", "options"]
1755
+ );
1756
+ sideEffects?.onError?.(err);
1757
+ throw transformedError;
1758
+ }
1759
+ }
1760
+ async function deleteGoogleLocation2(locationId) {
1761
+ const { httpClient, sideEffects } = arguments[1];
1762
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1763
+ locationId
1764
+ });
1765
+ const reqOpts = deleteGoogleLocation(payload);
1766
+ sideEffects?.onSiteCall?.();
1767
+ try {
1768
+ const result = await httpClient.request(reqOpts);
1769
+ sideEffects?.onSuccess?.(result);
1770
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1771
+ } catch (err) {
1772
+ const transformedError = (0, import_transform_error.transformError)(
1773
+ err,
1774
+ {
1775
+ spreadPathsToArguments: {},
1776
+ explicitPathsToArguments: { locationId: "$[0]" },
1777
+ singleArgumentUnchanged: false
1778
+ },
1779
+ ["locationId"]
1780
+ );
1781
+ sideEffects?.onError?.(err);
1782
+ throw transformedError;
1783
+ }
1784
+ }
1785
+ async function updateGoogleLocation2(locationId, location, options) {
1786
+ const { httpClient, sideEffects } = arguments[3];
1787
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1788
+ locationId,
1789
+ location,
1790
+ fieldMask: options?.fieldMask
1791
+ });
1792
+ const reqOpts = updateGoogleLocation(payload);
1793
+ sideEffects?.onSiteCall?.();
1794
+ try {
1795
+ const result = await httpClient.request(reqOpts);
1796
+ sideEffects?.onSuccess?.(result);
1797
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1798
+ } catch (err) {
1799
+ const transformedError = (0, import_transform_error.transformError)(
1800
+ err,
1801
+ {
1802
+ spreadPathsToArguments: {},
1803
+ explicitPathsToArguments: {
1804
+ locationId: "$[0]",
1805
+ location: "$[1]",
1806
+ fieldMask: "$[2].fieldMask"
1807
+ },
1808
+ singleArgumentUnchanged: false
1809
+ },
1810
+ ["locationId", "location", "options"]
1811
+ );
1812
+ sideEffects?.onError?.(err);
1813
+ throw transformedError;
1814
+ }
1815
+ }
1816
+ async function bulkCreateLocations2(locations, options) {
1817
+ const { httpClient, sideEffects } = arguments[2];
1818
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1819
+ locations,
1820
+ returnEntity: options?.returnEntity
1821
+ });
1822
+ const reqOpts = bulkCreateLocations(payload);
1823
+ sideEffects?.onSiteCall?.();
1824
+ try {
1825
+ const result = await httpClient.request(reqOpts);
1826
+ sideEffects?.onSuccess?.(result);
1827
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1828
+ } catch (err) {
1829
+ const transformedError = (0, import_transform_error.transformError)(
1830
+ err,
1831
+ {
1832
+ spreadPathsToArguments: {},
1833
+ explicitPathsToArguments: {
1834
+ locations: "$[0]",
1835
+ returnEntity: "$[1].returnEntity"
1836
+ },
1837
+ singleArgumentUnchanged: false
1838
+ },
1839
+ ["locations", "options"]
1840
+ );
1841
+ sideEffects?.onError?.(err);
1842
+ throw transformedError;
1843
+ }
1844
+ }
1845
+ async function bulkDeleteLocations2(locationIds) {
1846
+ const { httpClient, sideEffects } = arguments[1];
1847
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1848
+ locationIds
1849
+ });
1850
+ const reqOpts = bulkDeleteLocations(payload);
1851
+ sideEffects?.onSiteCall?.();
1852
+ try {
1853
+ const result = await httpClient.request(reqOpts);
1854
+ sideEffects?.onSuccess?.(result);
1855
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1856
+ } catch (err) {
1857
+ const transformedError = (0, import_transform_error.transformError)(
1858
+ err,
1859
+ {
1860
+ spreadPathsToArguments: {},
1861
+ explicitPathsToArguments: { locationIds: "$[0]" },
1862
+ singleArgumentUnchanged: false
1863
+ },
1864
+ ["locationIds"]
1865
+ );
1866
+ sideEffects?.onError?.(err);
1867
+ throw transformedError;
1868
+ }
1869
+ }
1870
+ async function listGbpAccounts2(options) {
1871
+ const { httpClient, sideEffects } = arguments[1];
1872
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1873
+ paging: options?.paging
1874
+ });
1875
+ const reqOpts = listGbpAccounts(payload);
1876
+ sideEffects?.onSiteCall?.();
1877
+ try {
1878
+ const result = await httpClient.request(reqOpts);
1879
+ sideEffects?.onSuccess?.(result);
1880
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1881
+ } catch (err) {
1882
+ const transformedError = (0, import_transform_error.transformError)(
1883
+ err,
1884
+ {
1885
+ spreadPathsToArguments: {},
1886
+ explicitPathsToArguments: { paging: "$[0].paging" },
1887
+ singleArgumentUnchanged: false
1888
+ },
1889
+ ["options"]
1890
+ );
1891
+ sideEffects?.onError?.(err);
1892
+ throw transformedError;
1893
+ }
1894
+ }
1895
+ async function listUnimportedLocations2(accountId, options) {
1896
+ const { httpClient, sideEffects } = arguments[2];
1897
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1898
+ accountId,
1899
+ paging: options?.paging
1900
+ });
1901
+ const reqOpts = listUnimportedLocations(payload);
1902
+ sideEffects?.onSiteCall?.();
1903
+ try {
1904
+ const result = await httpClient.request(reqOpts);
1905
+ sideEffects?.onSuccess?.(result);
1906
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1907
+ } catch (err) {
1908
+ const transformedError = (0, import_transform_error.transformError)(
1909
+ err,
1910
+ {
1911
+ spreadPathsToArguments: {},
1912
+ explicitPathsToArguments: { accountId: "$[0]", paging: "$[1].paging" },
1913
+ singleArgumentUnchanged: false
1914
+ },
1915
+ ["accountId", "options"]
1916
+ );
1917
+ sideEffects?.onError?.(err);
1918
+ throw transformedError;
1919
+ }
1920
+ }
1921
+ async function listReviews2(locationId, options) {
1922
+ const { httpClient, sideEffects } = arguments[2];
1923
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1924
+ locationId,
1925
+ orderBy: options?.orderBy,
1926
+ paging: options?.paging
1927
+ });
1928
+ const reqOpts = listReviews(payload);
1929
+ sideEffects?.onSiteCall?.();
1930
+ try {
1931
+ const result = await httpClient.request(reqOpts);
1932
+ sideEffects?.onSuccess?.(result);
1933
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1934
+ } catch (err) {
1935
+ const transformedError = (0, import_transform_error.transformError)(
1936
+ err,
1937
+ {
1938
+ spreadPathsToArguments: {},
1939
+ explicitPathsToArguments: {
1940
+ locationId: "$[0]",
1941
+ orderBy: "$[1].orderBy",
1942
+ paging: "$[1].paging"
1943
+ },
1944
+ singleArgumentUnchanged: false
1945
+ },
1946
+ ["locationId", "options"]
1947
+ );
1948
+ sideEffects?.onError?.(err);
1949
+ throw transformedError;
1950
+ }
1951
+ }
1952
+ async function putReviewReply2(identifiers, text) {
1953
+ const { httpClient, sideEffects } = arguments[2];
1954
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1955
+ locationId: identifiers?.locationId,
1956
+ reviewId: identifiers?.reviewId,
1957
+ text
1958
+ });
1959
+ const reqOpts = putReviewReply(payload);
1960
+ sideEffects?.onSiteCall?.();
1961
+ try {
1962
+ const result = await httpClient.request(reqOpts);
1963
+ sideEffects?.onSuccess?.(result);
1964
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1965
+ } catch (err) {
1966
+ const transformedError = (0, import_transform_error.transformError)(
1967
+ err,
1968
+ {
1969
+ spreadPathsToArguments: {},
1970
+ explicitPathsToArguments: {
1971
+ locationId: "$[0].locationId",
1972
+ reviewId: "$[0].reviewId",
1973
+ text: "$[1]"
1974
+ },
1975
+ singleArgumentUnchanged: false
1976
+ },
1977
+ ["identifiers", "text"]
1978
+ );
1979
+ sideEffects?.onError?.(err);
1980
+ throw transformedError;
1981
+ }
1982
+ }
1983
+ async function deleteReviewReply2(identifiers) {
1984
+ const { httpClient, sideEffects } = arguments[1];
1985
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1986
+ locationId: identifiers?.locationId,
1987
+ reviewId: identifiers?.reviewId
1988
+ });
1989
+ const reqOpts = deleteReviewReply(payload);
1990
+ sideEffects?.onSiteCall?.();
1991
+ try {
1992
+ const result = await httpClient.request(reqOpts);
1993
+ sideEffects?.onSuccess?.(result);
1994
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1995
+ } catch (err) {
1996
+ const transformedError = (0, import_transform_error.transformError)(
1997
+ err,
1998
+ {
1999
+ spreadPathsToArguments: {},
2000
+ explicitPathsToArguments: {
2001
+ locationId: "$[0].locationId",
2002
+ reviewId: "$[0].reviewId"
2003
+ },
2004
+ singleArgumentUnchanged: false
2005
+ },
2006
+ ["identifiers"]
2007
+ );
2008
+ sideEffects?.onError?.(err);
2009
+ throw transformedError;
2010
+ }
2011
+ }
2012
+ async function listMedia2(locationId, options) {
2013
+ const { httpClient, sideEffects } = arguments[2];
2014
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2015
+ locationId,
2016
+ paging: options?.paging
2017
+ });
2018
+ const reqOpts = listMedia(payload);
2019
+ sideEffects?.onSiteCall?.();
2020
+ try {
2021
+ const result = await httpClient.request(reqOpts);
2022
+ sideEffects?.onSuccess?.(result);
2023
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2024
+ } catch (err) {
2025
+ const transformedError = (0, import_transform_error.transformError)(
2026
+ err,
2027
+ {
2028
+ spreadPathsToArguments: {},
2029
+ explicitPathsToArguments: { locationId: "$[0]", paging: "$[1].paging" },
2030
+ singleArgumentUnchanged: false
2031
+ },
2032
+ ["locationId", "options"]
2033
+ );
2034
+ sideEffects?.onError?.(err);
2035
+ throw transformedError;
2036
+ }
2037
+ }
2038
+ async function createMedia2(locationId, sourceUrl, options) {
2039
+ const { httpClient, sideEffects } = arguments[3];
2040
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2041
+ locationId,
2042
+ sourceUrl,
2043
+ category: options?.category,
2044
+ format: options?.format
2045
+ });
2046
+ const reqOpts = createMedia(payload);
2047
+ sideEffects?.onSiteCall?.();
2048
+ try {
2049
+ const result = await httpClient.request(reqOpts);
2050
+ sideEffects?.onSuccess?.(result);
2051
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2052
+ } catch (err) {
2053
+ const transformedError = (0, import_transform_error.transformError)(
2054
+ err,
2055
+ {
2056
+ spreadPathsToArguments: {},
2057
+ explicitPathsToArguments: {
2058
+ locationId: "$[0]",
2059
+ sourceUrl: "$[1]",
2060
+ category: "$[2].category",
2061
+ format: "$[2].format"
2062
+ },
2063
+ singleArgumentUnchanged: false
2064
+ },
2065
+ ["locationId", "sourceUrl", "options"]
2066
+ );
2067
+ sideEffects?.onError?.(err);
2068
+ throw transformedError;
2069
+ }
2070
+ }
2071
+ async function deleteMedia2(identifiers) {
2072
+ const { httpClient, sideEffects } = arguments[1];
2073
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2074
+ locationId: identifiers?.locationId,
2075
+ mediaKey: identifiers?.mediaKey
2076
+ });
2077
+ const reqOpts = deleteMedia(payload);
2078
+ sideEffects?.onSiteCall?.();
2079
+ try {
2080
+ const result = await httpClient.request(reqOpts);
2081
+ sideEffects?.onSuccess?.(result);
2082
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2083
+ } catch (err) {
2084
+ const transformedError = (0, import_transform_error.transformError)(
2085
+ err,
2086
+ {
2087
+ spreadPathsToArguments: {},
2088
+ explicitPathsToArguments: {
2089
+ locationId: "$[0].locationId",
2090
+ mediaKey: "$[0].mediaKey"
2091
+ },
2092
+ singleArgumentUnchanged: false
2093
+ },
2094
+ ["identifiers"]
2095
+ );
2096
+ sideEffects?.onError?.(err);
2097
+ throw transformedError;
2098
+ }
2099
+ }
2100
+ async function updateLocationFoodMenus2(locationId, options) {
2101
+ const { httpClient, sideEffects } = arguments[2];
2102
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2103
+ locationId,
2104
+ menuIds: options?.menuIds
2105
+ });
2106
+ const reqOpts = updateLocationFoodMenus(payload);
2107
+ sideEffects?.onSiteCall?.();
2108
+ try {
2109
+ const result = await httpClient.request(reqOpts);
2110
+ sideEffects?.onSuccess?.(result);
2111
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2112
+ } catch (err) {
2113
+ const transformedError = (0, import_transform_error.transformError)(
2114
+ err,
2115
+ {
2116
+ spreadPathsToArguments: {},
2117
+ explicitPathsToArguments: {
2118
+ locationId: "$[0]",
2119
+ menuIds: "$[1].menuIds"
2120
+ },
2121
+ singleArgumentUnchanged: false
2122
+ },
2123
+ ["locationId", "options"]
2124
+ );
2125
+ sideEffects?.onError?.(err);
2126
+ throw transformedError;
2127
+ }
2128
+ }
2129
+ async function updateLocationAttributes2(locationId, attributes) {
2130
+ const { httpClient, sideEffects } = arguments[2];
2131
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2132
+ locationId,
2133
+ attributes
2134
+ });
2135
+ const reqOpts = updateLocationAttributes(payload);
2136
+ sideEffects?.onSiteCall?.();
2137
+ try {
2138
+ const result = await httpClient.request(reqOpts);
2139
+ sideEffects?.onSuccess?.(result);
2140
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2141
+ } catch (err) {
2142
+ const transformedError = (0, import_transform_error.transformError)(
2143
+ err,
2144
+ {
2145
+ spreadPathsToArguments: {},
2146
+ explicitPathsToArguments: { locationId: "$[0]", attributes: "$[1]" },
2147
+ singleArgumentUnchanged: false
2148
+ },
2149
+ ["locationId", "attributes"]
2150
+ );
2151
+ sideEffects?.onError?.(err);
2152
+ throw transformedError;
2153
+ }
2154
+ }
2155
+ async function getLocationAttributes2(locationId) {
2156
+ const { httpClient, sideEffects } = arguments[1];
2157
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2158
+ locationId
2159
+ });
2160
+ const reqOpts = getLocationAttributes(payload);
2161
+ sideEffects?.onSiteCall?.();
2162
+ try {
2163
+ const result = await httpClient.request(reqOpts);
2164
+ sideEffects?.onSuccess?.(result);
2165
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2166
+ } catch (err) {
2167
+ const transformedError = (0, import_transform_error.transformError)(
2168
+ err,
2169
+ {
2170
+ spreadPathsToArguments: {},
2171
+ explicitPathsToArguments: { locationId: "$[0]" },
2172
+ singleArgumentUnchanged: false
2173
+ },
2174
+ ["locationId"]
2175
+ );
2176
+ sideEffects?.onError?.(err);
2177
+ throw transformedError;
2178
+ }
2179
+ }
2180
+ async function getLocationLodging2(locationId) {
2181
+ const { httpClient, sideEffects } = arguments[1];
2182
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2183
+ locationId
2184
+ });
2185
+ const reqOpts = getLocationLodging(payload);
2186
+ sideEffects?.onSiteCall?.();
2187
+ try {
2188
+ const result = await httpClient.request(reqOpts);
2189
+ sideEffects?.onSuccess?.(result);
2190
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2191
+ } catch (err) {
2192
+ const transformedError = (0, import_transform_error.transformError)(
2193
+ err,
2194
+ {
2195
+ spreadPathsToArguments: {},
2196
+ explicitPathsToArguments: { locationId: "$[0]" },
2197
+ singleArgumentUnchanged: false
2198
+ },
2199
+ ["locationId"]
2200
+ );
2201
+ sideEffects?.onError?.(err);
2202
+ throw transformedError;
2203
+ }
2204
+ }
2205
+ async function updateLocationLodging2(locationId, lodging, options) {
2206
+ const { httpClient, sideEffects } = arguments[3];
2207
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2208
+ locationId,
2209
+ lodging,
2210
+ fieldMask: options?.fieldMask
2211
+ });
2212
+ const reqOpts = updateLocationLodging(payload);
2213
+ sideEffects?.onSiteCall?.();
2214
+ try {
2215
+ const result = await httpClient.request(reqOpts);
2216
+ sideEffects?.onSuccess?.(result);
2217
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2218
+ } catch (err) {
2219
+ const transformedError = (0, import_transform_error.transformError)(
2220
+ err,
2221
+ {
2222
+ spreadPathsToArguments: {},
2223
+ explicitPathsToArguments: {
2224
+ locationId: "$[0]",
2225
+ lodging: "$[1]",
2226
+ fieldMask: "$[2].fieldMask"
2227
+ },
2228
+ singleArgumentUnchanged: false
2229
+ },
2230
+ ["locationId", "lodging", "options"]
2231
+ );
2232
+ sideEffects?.onError?.(err);
2233
+ throw transformedError;
2234
+ }
2235
+ }
2236
+ async function listAttributeMetadata2(options) {
2237
+ const { httpClient, sideEffects } = arguments[1];
2238
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2239
+ locationId: options?.locationId,
2240
+ categoryRegion: options?.categoryRegion,
2241
+ languageCode: options?.languageCode,
2242
+ paging: options?.paging
2243
+ });
2244
+ const reqOpts = listAttributeMetadata(payload);
2245
+ sideEffects?.onSiteCall?.();
2246
+ try {
2247
+ const result = await httpClient.request(reqOpts);
2248
+ sideEffects?.onSuccess?.(result);
2249
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2250
+ } catch (err) {
2251
+ const transformedError = (0, import_transform_error.transformError)(
2252
+ err,
2253
+ {
2254
+ spreadPathsToArguments: {},
2255
+ explicitPathsToArguments: {
2256
+ locationId: "$[0].locationId",
2257
+ categoryRegion: "$[0].categoryRegion",
2258
+ languageCode: "$[0].languageCode",
2259
+ paging: "$[0].paging"
2260
+ },
2261
+ singleArgumentUnchanged: false
2262
+ },
2263
+ ["options"]
2264
+ );
2265
+ sideEffects?.onError?.(err);
2266
+ throw transformedError;
2267
+ }
2268
+ }
2269
+ async function listCategories2(regionCode, options) {
2270
+ const { httpClient, sideEffects } = arguments[2];
2271
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2272
+ regionCode,
2273
+ languageCode: options?.languageCode,
2274
+ searchTerm: options?.searchTerm,
2275
+ view: options?.view,
2276
+ paging: options?.paging,
2277
+ locationId: options?.locationId
2278
+ });
2279
+ const reqOpts = listCategories(payload);
2280
+ sideEffects?.onSiteCall?.();
2281
+ try {
2282
+ const result = await httpClient.request(reqOpts);
2283
+ sideEffects?.onSuccess?.(result);
2284
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2285
+ } catch (err) {
2286
+ const transformedError = (0, import_transform_error.transformError)(
2287
+ err,
2288
+ {
2289
+ spreadPathsToArguments: {},
2290
+ explicitPathsToArguments: {
2291
+ regionCode: "$[0]",
2292
+ languageCode: "$[1].languageCode",
2293
+ searchTerm: "$[1].searchTerm",
2294
+ view: "$[1].view",
2295
+ paging: "$[1].paging",
2296
+ locationId: "$[1].locationId"
2297
+ },
2298
+ singleArgumentUnchanged: false
2299
+ },
2300
+ ["regionCode", "options"]
2301
+ );
2302
+ sideEffects?.onError?.(err);
2303
+ throw transformedError;
2304
+ }
2305
+ }
2306
+ async function getVerificationOptions2(locationId) {
2307
+ const { httpClient, sideEffects } = arguments[1];
2308
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2309
+ locationId
2310
+ });
2311
+ const reqOpts = getVerificationOptions(payload);
2312
+ sideEffects?.onSiteCall?.();
2313
+ try {
2314
+ const result = await httpClient.request(reqOpts);
2315
+ sideEffects?.onSuccess?.(result);
2316
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2317
+ } catch (err) {
2318
+ const transformedError = (0, import_transform_error.transformError)(
2319
+ err,
2320
+ {
2321
+ spreadPathsToArguments: {},
2322
+ explicitPathsToArguments: { locationId: "$[0]" },
2323
+ singleArgumentUnchanged: false
2324
+ },
2325
+ ["locationId"]
2326
+ );
2327
+ sideEffects?.onError?.(err);
2328
+ throw transformedError;
2329
+ }
2330
+ }
2331
+ async function startVerification2(locationId, method, options) {
2332
+ const { httpClient, sideEffects } = arguments[3];
2333
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2334
+ locationId,
2335
+ method,
2336
+ methodInput: options?.methodInput
2337
+ });
2338
+ const reqOpts = startVerification(payload);
2339
+ sideEffects?.onSiteCall?.();
2340
+ try {
2341
+ const result = await httpClient.request(reqOpts);
2342
+ sideEffects?.onSuccess?.(result);
2343
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2344
+ } catch (err) {
2345
+ const transformedError = (0, import_transform_error.transformError)(
2346
+ err,
2347
+ {
2348
+ spreadPathsToArguments: {},
2349
+ explicitPathsToArguments: {
2350
+ locationId: "$[0]",
2351
+ method: "$[1]",
2352
+ methodInput: "$[2].methodInput"
2353
+ },
2354
+ singleArgumentUnchanged: false
2355
+ },
2356
+ ["locationId", "method", "options"]
2357
+ );
2358
+ sideEffects?.onError?.(err);
2359
+ throw transformedError;
2360
+ }
2361
+ }
2362
+ async function completeVerification2(locationId, pin, options) {
2363
+ const { httpClient, sideEffects } = arguments[3];
2364
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2365
+ locationId,
2366
+ pin,
2367
+ pendingVerificationId: options?.pendingVerificationId
2368
+ });
2369
+ const reqOpts = completeVerification(payload);
2370
+ sideEffects?.onSiteCall?.();
2371
+ try {
2372
+ const result = await httpClient.request(reqOpts);
2373
+ sideEffects?.onSuccess?.(result);
2374
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2375
+ } catch (err) {
2376
+ const transformedError = (0, import_transform_error.transformError)(
2377
+ err,
2378
+ {
2379
+ spreadPathsToArguments: {},
2380
+ explicitPathsToArguments: {
2381
+ locationId: "$[0]",
2382
+ pin: "$[1]",
2383
+ pendingVerificationId: "$[2].pendingVerificationId"
2384
+ },
2385
+ singleArgumentUnchanged: false
2386
+ },
2387
+ ["locationId", "pin", "options"]
2388
+ );
2389
+ sideEffects?.onError?.(err);
2390
+ throw transformedError;
2391
+ }
2392
+ }
2393
+ async function getVoiceOfMerchant2(locationId) {
2394
+ const { httpClient, sideEffects } = arguments[1];
2395
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2396
+ locationId
2397
+ });
2398
+ const reqOpts = getVoiceOfMerchant(payload);
2399
+ sideEffects?.onSiteCall?.();
2400
+ try {
2401
+ const result = await httpClient.request(reqOpts);
2402
+ sideEffects?.onSuccess?.(result);
2403
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2404
+ } catch (err) {
2405
+ const transformedError = (0, import_transform_error.transformError)(
2406
+ err,
2407
+ {
2408
+ spreadPathsToArguments: {},
2409
+ explicitPathsToArguments: { locationId: "$[0]" },
2410
+ singleArgumentUnchanged: false
2411
+ },
2412
+ ["locationId"]
2413
+ );
2414
+ sideEffects?.onError?.(err);
2415
+ throw transformedError;
2416
+ }
2417
+ }
2418
+ async function getLocationInsights2(locationId, timeRange, options) {
2419
+ const { httpClient, sideEffects } = arguments[3];
2420
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2421
+ locationId,
2422
+ timeRange,
2423
+ metricTypes: options?.metricTypes
2424
+ });
2425
+ const reqOpts = getLocationInsights(payload);
2426
+ sideEffects?.onSiteCall?.();
2427
+ try {
2428
+ const result = await httpClient.request(reqOpts);
2429
+ sideEffects?.onSuccess?.(result);
2430
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2431
+ } catch (err) {
2432
+ const transformedError = (0, import_transform_error.transformError)(
2433
+ err,
2434
+ {
2435
+ spreadPathsToArguments: {},
2436
+ explicitPathsToArguments: {
2437
+ locationId: "$[0]",
2438
+ timeRange: "$[1]",
2439
+ metricTypes: "$[2].metricTypes"
2440
+ },
2441
+ singleArgumentUnchanged: false
2442
+ },
2443
+ ["locationId", "timeRange", "options"]
2444
+ );
2445
+ sideEffects?.onError?.(err);
2446
+ throw transformedError;
2447
+ }
2448
+ }
2449
+ async function listSearchKeywordImpressions2(locationId, monthlyRange, options) {
2450
+ const { httpClient, sideEffects } = arguments[3];
2451
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2452
+ locationId,
2453
+ monthlyRange,
2454
+ paging: options?.paging
2455
+ });
2456
+ const reqOpts = listSearchKeywordImpressions(payload);
2457
+ sideEffects?.onSiteCall?.();
2458
+ try {
2459
+ const result = await httpClient.request(reqOpts);
2460
+ sideEffects?.onSuccess?.(result);
2461
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2462
+ } catch (err) {
2463
+ const transformedError = (0, import_transform_error.transformError)(
2464
+ err,
2465
+ {
2466
+ spreadPathsToArguments: {},
2467
+ explicitPathsToArguments: {
2468
+ locationId: "$[0]",
2469
+ monthlyRange: "$[1]",
2470
+ paging: "$[2].paging"
2471
+ },
2472
+ singleArgumentUnchanged: false
2473
+ },
2474
+ ["locationId", "monthlyRange", "options"]
2475
+ );
2476
+ sideEffects?.onError?.(err);
2477
+ throw transformedError;
2478
+ }
2479
+ }
2480
+ async function inviteAdminToLocation2(locationId, email, options) {
2481
+ const { httpClient, sideEffects } = arguments[3];
2482
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2483
+ locationId,
2484
+ email,
2485
+ role: options?.role
2486
+ });
2487
+ const reqOpts = inviteAdminToLocation(payload);
2488
+ sideEffects?.onSiteCall?.();
2489
+ try {
2490
+ const result = await httpClient.request(reqOpts);
2491
+ sideEffects?.onSuccess?.(result);
2492
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2493
+ } catch (err) {
2494
+ const transformedError = (0, import_transform_error.transformError)(
2495
+ err,
2496
+ {
2497
+ spreadPathsToArguments: {},
2498
+ explicitPathsToArguments: {
2499
+ locationId: "$[0]",
2500
+ email: "$[1]",
2501
+ role: "$[2].role"
2502
+ },
2503
+ singleArgumentUnchanged: false
2504
+ },
2505
+ ["locationId", "email", "options"]
2506
+ );
2507
+ sideEffects?.onError?.(err);
2508
+ throw transformedError;
2509
+ }
2510
+ }
2511
+ async function getLocationAdmins2(locationId) {
2512
+ const { httpClient, sideEffects } = arguments[1];
2513
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2514
+ locationId
2515
+ });
2516
+ const reqOpts = getLocationAdmins(payload);
2517
+ sideEffects?.onSiteCall?.();
2518
+ try {
2519
+ const result = await httpClient.request(reqOpts);
2520
+ sideEffects?.onSuccess?.(result);
2521
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2522
+ } catch (err) {
2523
+ const transformedError = (0, import_transform_error.transformError)(
2524
+ err,
2525
+ {
2526
+ spreadPathsToArguments: {},
2527
+ explicitPathsToArguments: { locationId: "$[0]" },
2528
+ singleArgumentUnchanged: false
2529
+ },
2530
+ ["locationId"]
2531
+ );
2532
+ sideEffects?.onError?.(err);
2533
+ throw transformedError;
2534
+ }
2535
+ }
2536
+ async function getAddressSchemaByCountryCode2(countryCode, options) {
2537
+ const { httpClient, sideEffects } = arguments[2];
2538
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2539
+ countryCode,
2540
+ locale: options?.locale
2541
+ });
2542
+ const reqOpts = getAddressSchemaByCountryCode(
2543
+ payload
2544
+ );
2545
+ sideEffects?.onSiteCall?.();
2546
+ try {
2547
+ const result = await httpClient.request(reqOpts);
2548
+ sideEffects?.onSuccess?.(result);
2549
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2550
+ } catch (err) {
2551
+ const transformedError = (0, import_transform_error.transformError)(
2552
+ err,
2553
+ {
2554
+ spreadPathsToArguments: {},
2555
+ explicitPathsToArguments: {
2556
+ countryCode: "$[0]",
2557
+ locale: "$[1].locale"
2558
+ },
2559
+ singleArgumentUnchanged: false
2560
+ },
2561
+ ["countryCode", "options"]
2562
+ );
2563
+ sideEffects?.onError?.(err);
2564
+ throw transformedError;
2565
+ }
2566
+ }
2567
+ async function suggestRegions2(query, options) {
2568
+ const { httpClient, sideEffects } = arguments[2];
2569
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2570
+ query,
2571
+ countryCode: options?.countryCode,
2572
+ languageCode: options?.languageCode
2573
+ });
2574
+ const reqOpts = suggestRegions(payload);
2575
+ sideEffects?.onSiteCall?.();
2576
+ try {
2577
+ const result = await httpClient.request(reqOpts);
2578
+ sideEffects?.onSuccess?.(result);
2579
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2580
+ } catch (err) {
2581
+ const transformedError = (0, import_transform_error.transformError)(
2582
+ err,
2583
+ {
2584
+ spreadPathsToArguments: {},
2585
+ explicitPathsToArguments: {
2586
+ query: "$[0]",
2587
+ countryCode: "$[1].countryCode",
2588
+ languageCode: "$[1].languageCode"
2589
+ },
2590
+ singleArgumentUnchanged: false
2591
+ },
2592
+ ["query", "options"]
2593
+ );
2594
+ sideEffects?.onError?.(err);
2595
+ throw transformedError;
2596
+ }
2597
+ }
2598
+ async function suggestEstablishments2(query, options) {
2599
+ const { httpClient, sideEffects } = arguments[2];
2600
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2601
+ query,
2602
+ countryCode: options?.countryCode,
2603
+ languageCode: options?.languageCode
2604
+ });
2605
+ const reqOpts = suggestEstablishments(payload);
2606
+ sideEffects?.onSiteCall?.();
2607
+ try {
2608
+ const result = await httpClient.request(reqOpts);
2609
+ sideEffects?.onSuccess?.(result);
2610
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2611
+ } catch (err) {
2612
+ const transformedError = (0, import_transform_error.transformError)(
2613
+ err,
2614
+ {
2615
+ spreadPathsToArguments: {},
2616
+ explicitPathsToArguments: {
2617
+ query: "$[0]",
2618
+ countryCode: "$[1].countryCode",
2619
+ languageCode: "$[1].languageCode"
2620
+ },
2621
+ singleArgumentUnchanged: false
2622
+ },
2623
+ ["query", "options"]
2624
+ );
2625
+ sideEffects?.onError?.(err);
2626
+ throw transformedError;
2627
+ }
2628
+ }
2629
+ async function searchGoogleLocations2(options) {
2630
+ const { httpClient, sideEffects } = arguments[1];
2631
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2632
+ query: options?.query,
2633
+ location: options?.location
2634
+ });
2635
+ const reqOpts = searchGoogleLocations(payload);
2636
+ sideEffects?.onSiteCall?.();
2637
+ try {
2638
+ const result = await httpClient.request(reqOpts);
2639
+ sideEffects?.onSuccess?.(result);
2640
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2641
+ } catch (err) {
2642
+ const transformedError = (0, import_transform_error.transformError)(
2643
+ err,
2644
+ {
2645
+ spreadPathsToArguments: {},
2646
+ explicitPathsToArguments: {
2647
+ query: "$[0].query",
2648
+ location: "$[0].location"
2649
+ },
2650
+ singleArgumentUnchanged: false
2651
+ },
2652
+ ["options"]
2653
+ );
2654
+ sideEffects?.onError?.(err);
2655
+ throw transformedError;
2656
+ }
2657
+ }
2658
+
2659
+ // src/gbp-location-v1-gbplocation-locations.public.ts
2660
+ function getGbpLocation3(httpClient) {
2661
+ return (locationId) => getGbpLocation2(
2662
+ locationId,
2663
+ // @ts-ignore
2664
+ { httpClient }
2665
+ );
2666
+ }
2667
+ function queryGbpLocations3(httpClient) {
2668
+ return () => queryGbpLocations2(
2669
+ // @ts-ignore
2670
+ { httpClient }
2671
+ );
2672
+ }
2673
+ function typedQueryGbpLocations2(httpClient) {
2674
+ return (query) => typedQueryGbpLocations(
2675
+ query,
2676
+ // @ts-ignore
2677
+ { httpClient }
2678
+ );
2679
+ }
2680
+ function queryGoogleLocations3(httpClient) {
2681
+ return (options) => queryGoogleLocations2(
2682
+ options,
2683
+ // @ts-ignore
2684
+ { httpClient }
2685
+ );
2686
+ }
2687
+ function getGoogleLocation3(httpClient) {
2688
+ return (locationId) => getGoogleLocation2(
2689
+ locationId,
2690
+ // @ts-ignore
2691
+ { httpClient }
2692
+ );
2693
+ }
2694
+ function createLocation3(httpClient) {
2695
+ return (location) => createLocation2(
2696
+ location,
2697
+ // @ts-ignore
2698
+ { httpClient }
2699
+ );
2700
+ }
2701
+ function updateLocation3(httpClient) {
2702
+ return (_id, location) => updateLocation2(
2703
+ _id,
2704
+ location,
2705
+ // @ts-ignore
2706
+ { httpClient }
2707
+ );
2708
+ }
2709
+ function deleteLocation3(httpClient) {
2710
+ return (locationId) => deleteLocation2(
2711
+ locationId,
2712
+ // @ts-ignore
2713
+ { httpClient }
2714
+ );
2715
+ }
2716
+ function createGoogleLocation3(httpClient) {
2717
+ return (accountId, options) => createGoogleLocation2(
2718
+ accountId,
2719
+ options,
2720
+ // @ts-ignore
2721
+ { httpClient }
2722
+ );
2723
+ }
2724
+ function deleteGoogleLocation3(httpClient) {
2725
+ return (locationId) => deleteGoogleLocation2(
2726
+ locationId,
2727
+ // @ts-ignore
2728
+ { httpClient }
2729
+ );
2730
+ }
2731
+ function updateGoogleLocation3(httpClient) {
2732
+ return (locationId, location, options) => updateGoogleLocation2(
2733
+ locationId,
2734
+ location,
2735
+ options,
2736
+ // @ts-ignore
2737
+ { httpClient }
2738
+ );
2739
+ }
2740
+ function bulkCreateLocations3(httpClient) {
2741
+ return (locations, options) => bulkCreateLocations2(
2742
+ locations,
2743
+ options,
2744
+ // @ts-ignore
2745
+ { httpClient }
2746
+ );
2747
+ }
2748
+ function bulkDeleteLocations3(httpClient) {
2749
+ return (locationIds) => bulkDeleteLocations2(
2750
+ locationIds,
2751
+ // @ts-ignore
2752
+ { httpClient }
2753
+ );
2754
+ }
2755
+ function listGbpAccounts3(httpClient) {
2756
+ return (options) => listGbpAccounts2(
2757
+ options,
2758
+ // @ts-ignore
2759
+ { httpClient }
2760
+ );
2761
+ }
2762
+ function listUnimportedLocations3(httpClient) {
2763
+ return (accountId, options) => listUnimportedLocations2(
2764
+ accountId,
2765
+ options,
2766
+ // @ts-ignore
2767
+ { httpClient }
2768
+ );
2769
+ }
2770
+ function listReviews3(httpClient) {
2771
+ return (locationId, options) => listReviews2(
2772
+ locationId,
2773
+ options,
2774
+ // @ts-ignore
2775
+ { httpClient }
2776
+ );
2777
+ }
2778
+ function putReviewReply3(httpClient) {
2779
+ return (identifiers, text) => putReviewReply2(
2780
+ identifiers,
2781
+ text,
2782
+ // @ts-ignore
2783
+ { httpClient }
2784
+ );
2785
+ }
2786
+ function deleteReviewReply3(httpClient) {
2787
+ return (identifiers) => deleteReviewReply2(
2788
+ identifiers,
2789
+ // @ts-ignore
2790
+ { httpClient }
2791
+ );
2792
+ }
2793
+ function listMedia3(httpClient) {
2794
+ return (locationId, options) => listMedia2(
2795
+ locationId,
2796
+ options,
2797
+ // @ts-ignore
2798
+ { httpClient }
2799
+ );
2800
+ }
2801
+ function createMedia3(httpClient) {
2802
+ return (locationId, sourceUrl, options) => createMedia2(
2803
+ locationId,
2804
+ sourceUrl,
2805
+ options,
2806
+ // @ts-ignore
2807
+ { httpClient }
2808
+ );
2809
+ }
2810
+ function deleteMedia3(httpClient) {
2811
+ return (identifiers) => deleteMedia2(
2812
+ identifiers,
2813
+ // @ts-ignore
2814
+ { httpClient }
2815
+ );
2816
+ }
2817
+ function updateLocationFoodMenus3(httpClient) {
2818
+ return (locationId, options) => updateLocationFoodMenus2(
2819
+ locationId,
2820
+ options,
2821
+ // @ts-ignore
2822
+ { httpClient }
2823
+ );
2824
+ }
2825
+ function updateLocationAttributes3(httpClient) {
2826
+ return (locationId, attributes) => updateLocationAttributes2(
2827
+ locationId,
2828
+ attributes,
2829
+ // @ts-ignore
2830
+ { httpClient }
2831
+ );
2832
+ }
2833
+ function getLocationAttributes3(httpClient) {
2834
+ return (locationId) => getLocationAttributes2(
2835
+ locationId,
2836
+ // @ts-ignore
2837
+ { httpClient }
2838
+ );
2839
+ }
2840
+ function getLocationLodging3(httpClient) {
2841
+ return (locationId) => getLocationLodging2(
2842
+ locationId,
2843
+ // @ts-ignore
2844
+ { httpClient }
2845
+ );
2846
+ }
2847
+ function updateLocationLodging3(httpClient) {
2848
+ return (locationId, lodging, options) => updateLocationLodging2(
2849
+ locationId,
2850
+ lodging,
2851
+ options,
2852
+ // @ts-ignore
2853
+ { httpClient }
2854
+ );
2855
+ }
2856
+ function listAttributeMetadata3(httpClient) {
2857
+ return (options) => listAttributeMetadata2(
2858
+ options,
2859
+ // @ts-ignore
2860
+ { httpClient }
2861
+ );
2862
+ }
2863
+ function listCategories3(httpClient) {
2864
+ return (regionCode, options) => listCategories2(
2865
+ regionCode,
2866
+ options,
2867
+ // @ts-ignore
2868
+ { httpClient }
2869
+ );
2870
+ }
2871
+ function getVerificationOptions3(httpClient) {
2872
+ return (locationId) => getVerificationOptions2(
2873
+ locationId,
2874
+ // @ts-ignore
2875
+ { httpClient }
2876
+ );
2877
+ }
2878
+ function startVerification3(httpClient) {
2879
+ return (locationId, method, options) => startVerification2(
2880
+ locationId,
2881
+ method,
2882
+ options,
2883
+ // @ts-ignore
2884
+ { httpClient }
2885
+ );
2886
+ }
2887
+ function completeVerification3(httpClient) {
2888
+ return (locationId, pin, options) => completeVerification2(
2889
+ locationId,
2890
+ pin,
2891
+ options,
2892
+ // @ts-ignore
2893
+ { httpClient }
2894
+ );
2895
+ }
2896
+ function getVoiceOfMerchant3(httpClient) {
2897
+ return (locationId) => getVoiceOfMerchant2(
2898
+ locationId,
2899
+ // @ts-ignore
2900
+ { httpClient }
2901
+ );
2902
+ }
2903
+ function getLocationInsights3(httpClient) {
2904
+ return (locationId, timeRange, options) => getLocationInsights2(
2905
+ locationId,
2906
+ timeRange,
2907
+ options,
2908
+ // @ts-ignore
2909
+ { httpClient }
2910
+ );
2911
+ }
2912
+ function listSearchKeywordImpressions3(httpClient) {
2913
+ return (locationId, monthlyRange, options) => listSearchKeywordImpressions2(
2914
+ locationId,
2915
+ monthlyRange,
2916
+ options,
2917
+ // @ts-ignore
2918
+ { httpClient }
2919
+ );
2920
+ }
2921
+ function inviteAdminToLocation3(httpClient) {
2922
+ return (locationId, email, options) => inviteAdminToLocation2(
2923
+ locationId,
2924
+ email,
2925
+ options,
2926
+ // @ts-ignore
2927
+ { httpClient }
2928
+ );
2929
+ }
2930
+ function getLocationAdmins3(httpClient) {
2931
+ return (locationId) => getLocationAdmins2(
2932
+ locationId,
2933
+ // @ts-ignore
2934
+ { httpClient }
2935
+ );
2936
+ }
2937
+ function getAddressSchemaByCountryCode3(httpClient) {
2938
+ return (countryCode, options) => getAddressSchemaByCountryCode2(
2939
+ countryCode,
2940
+ options,
2941
+ // @ts-ignore
2942
+ { httpClient }
2943
+ );
2944
+ }
2945
+ function suggestRegions3(httpClient) {
2946
+ return (query, options) => suggestRegions2(
2947
+ query,
2948
+ options,
2949
+ // @ts-ignore
2950
+ { httpClient }
2951
+ );
2952
+ }
2953
+ function suggestEstablishments3(httpClient) {
2954
+ return (query, options) => suggestEstablishments2(
2955
+ query,
2956
+ options,
2957
+ // @ts-ignore
2958
+ { httpClient }
2959
+ );
2960
+ }
2961
+ function searchGoogleLocations3(httpClient) {
2962
+ return (options) => searchGoogleLocations2(
2963
+ options,
2964
+ // @ts-ignore
2965
+ { httpClient }
2966
+ );
2967
+ }
2968
+
2969
+ // src/gbp-location-v1-gbplocation-locations.context.ts
2970
+ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
2971
+ var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
2972
+ function customQueryGbpLocations(httpClient) {
2973
+ const router = /* @__PURE__ */ (0, import_query_method_router.createQueryOverloadRouter)({
2974
+ builderQueryFunction: () => queryGbpLocations3(httpClient)(),
2975
+ typedQueryFunction: (query) => typedQueryGbpLocations2(httpClient)(query),
2976
+ hasOptionsParameter: false
2977
+ });
2978
+ function overloadedQuery(query) {
2979
+ return router(...arguments);
2980
+ }
2981
+ return overloadedQuery;
2982
+ }
2983
+ var getGbpLocation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getGbpLocation3);
2984
+ var queryGoogleLocations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryGoogleLocations3);
2985
+ var getGoogleLocation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getGoogleLocation3);
2986
+ var createLocation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createLocation3);
2987
+ var updateLocation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateLocation3);
2988
+ var deleteLocation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteLocation3);
2989
+ var createGoogleLocation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createGoogleLocation3);
2990
+ var deleteGoogleLocation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteGoogleLocation3);
2991
+ var updateGoogleLocation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateGoogleLocation3);
2992
+ var bulkCreateLocations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateLocations3);
2993
+ var bulkDeleteLocations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteLocations3);
2994
+ var listGbpAccounts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listGbpAccounts3);
2995
+ var listUnimportedLocations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listUnimportedLocations3);
2996
+ var listReviews4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listReviews3);
2997
+ var putReviewReply4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(putReviewReply3);
2998
+ var deleteReviewReply4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteReviewReply3);
2999
+ var listMedia4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listMedia3);
3000
+ var createMedia4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createMedia3);
3001
+ var deleteMedia4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteMedia3);
3002
+ var updateLocationFoodMenus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateLocationFoodMenus3);
3003
+ var updateLocationAttributes4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateLocationAttributes3);
3004
+ var getLocationAttributes4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getLocationAttributes3);
3005
+ var getLocationLodging4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getLocationLodging3);
3006
+ var updateLocationLodging4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateLocationLodging3);
3007
+ var listAttributeMetadata4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listAttributeMetadata3);
3008
+ var listCategories4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listCategories3);
3009
+ var getVerificationOptions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getVerificationOptions3);
3010
+ var startVerification4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(startVerification3);
3011
+ var completeVerification4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(completeVerification3);
3012
+ var getVoiceOfMerchant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getVoiceOfMerchant3);
3013
+ var getLocationInsights4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getLocationInsights3);
3014
+ var listSearchKeywordImpressions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listSearchKeywordImpressions3);
3015
+ var inviteAdminToLocation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(inviteAdminToLocation3);
3016
+ var getLocationAdmins4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getLocationAdmins3);
3017
+ var getAddressSchemaByCountryCode4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAddressSchemaByCountryCode3);
3018
+ var suggestRegions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(suggestRegions3);
3019
+ var suggestEstablishments4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(suggestEstablishments3);
3020
+ var searchGoogleLocations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchGoogleLocations3);
3021
+ var queryGbpLocations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryGbpLocations);
3022
+ // Annotate the CommonJS export names for ESM import in node:
3023
+ 0 && (module.exports = {
3024
+ AddressFieldType,
3025
+ AmenityException,
3026
+ AttributeValueType,
3027
+ BreeamCertification,
3028
+ BusinessType,
3029
+ CategoryView,
3030
+ DailyMetric,
3031
+ DayOfWeek,
3032
+ EcoCertificate,
3033
+ LeedCertification,
3034
+ MatchStatus,
3035
+ MediaCategory,
3036
+ MediaFormat,
3037
+ RecommendationReason,
3038
+ ReviewSortOrder,
3039
+ Role,
3040
+ SortOrder,
3041
+ State,
3042
+ Status,
3043
+ UnitTier,
3044
+ VerificationMethod,
3045
+ VerificationState,
3046
+ WebhookIdentityType,
3047
+ bulkCreateLocations,
3048
+ bulkDeleteLocations,
3049
+ completeVerification,
3050
+ createGoogleLocation,
3051
+ createLocation,
3052
+ createMedia,
3053
+ deleteGoogleLocation,
3054
+ deleteLocation,
3055
+ deleteMedia,
3056
+ deleteReviewReply,
3057
+ getAddressSchemaByCountryCode,
3058
+ getGbpLocation,
3059
+ getGoogleLocation,
3060
+ getLocationAdmins,
3061
+ getLocationAttributes,
3062
+ getLocationInsights,
3063
+ getLocationLodging,
3064
+ getVerificationOptions,
3065
+ getVoiceOfMerchant,
3066
+ inviteAdminToLocation,
3067
+ listAttributeMetadata,
3068
+ listCategories,
3069
+ listGbpAccounts,
3070
+ listMedia,
3071
+ listReviews,
3072
+ listSearchKeywordImpressions,
3073
+ listUnimportedLocations,
3074
+ putReviewReply,
3075
+ queryGbpLocations,
3076
+ queryGoogleLocations,
3077
+ searchGoogleLocations,
3078
+ startVerification,
3079
+ suggestEstablishments,
3080
+ suggestRegions,
3081
+ updateGoogleLocation,
3082
+ updateLocation,
3083
+ updateLocationAttributes,
3084
+ updateLocationFoodMenus,
3085
+ updateLocationLodging,
3086
+ utils
3087
+ });
3088
+ //# sourceMappingURL=index.js.map