@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,2186 @@
1
+ // src/gbp-location-v1-gbplocation-locations.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
+ function resolveWixGbpLocationV1GbpLocationsServiceUrl(opts) {
11
+ const domainToMappings = {
12
+ "bo._base_domain_": [
13
+ {
14
+ srcPath: "/_api/gbp-location-service",
15
+ destPath: ""
16
+ }
17
+ ],
18
+ "wixbo.ai": [
19
+ {
20
+ srcPath: "/_api/gbp-location-service",
21
+ destPath: ""
22
+ }
23
+ ],
24
+ "wix-bo.com": [
25
+ {
26
+ srcPath: "/_api/gbp-location-service",
27
+ destPath: ""
28
+ }
29
+ ],
30
+ "manage._base_domain_": [
31
+ {
32
+ srcPath: "/_api/gbp-location-service",
33
+ destPath: ""
34
+ }
35
+ ],
36
+ "www.wixapis.com": [
37
+ {
38
+ srcPath: "/gbp/v1/accounts",
39
+ destPath: "/v1/accounts"
40
+ },
41
+ {
42
+ srcPath: "/gbp/v1/address-schema",
43
+ destPath: "/v1/address-schema"
44
+ },
45
+ {
46
+ srcPath: "/gbp/v1/attribute-metadata",
47
+ destPath: "/v1/attribute-metadata"
48
+ },
49
+ {
50
+ srcPath: "/gbp/v1/bulk",
51
+ destPath: "/v1/bulk"
52
+ },
53
+ {
54
+ srcPath: "/gbp/v1/establishments",
55
+ destPath: "/v1/establishments"
56
+ },
57
+ {
58
+ srcPath: "/gbp/v1/google-locations",
59
+ destPath: "/v1/google-locations"
60
+ },
61
+ {
62
+ srcPath: "/gbp/v1/locations",
63
+ destPath: "/v1/locations"
64
+ },
65
+ {
66
+ srcPath: "/gbp/v1/regions",
67
+ destPath: "/v1/regions"
68
+ },
69
+ {
70
+ srcPath: "/gbp/v1/categories",
71
+ destPath: "/v1/categories"
72
+ },
73
+ {
74
+ srcPath: "/gbp/location/v1/categories",
75
+ destPath: "/v1/categories"
76
+ },
77
+ {
78
+ srcPath: "/gbp/location/v1/accounts",
79
+ destPath: "/v1/accounts"
80
+ },
81
+ {
82
+ srcPath: "/gbp/location/v1/address-schema",
83
+ destPath: "/v1/address-schema"
84
+ },
85
+ {
86
+ srcPath: "/gbp/location/v1/attribute-metadata",
87
+ destPath: "/v1/attribute-metadata"
88
+ },
89
+ {
90
+ srcPath: "/gbp/location/v1/bulk",
91
+ destPath: "/v1/bulk"
92
+ },
93
+ {
94
+ srcPath: "/gbp/location/v1/establishments",
95
+ destPath: "/v1/establishments"
96
+ },
97
+ {
98
+ srcPath: "/gbp/location/v1/google-locations",
99
+ destPath: "/v1/google-locations"
100
+ },
101
+ {
102
+ srcPath: "/gbp/location/v1/locations",
103
+ destPath: "/v1/locations"
104
+ },
105
+ {
106
+ srcPath: "/gbp/location/v1/regions",
107
+ destPath: "/v1/regions"
108
+ }
109
+ ],
110
+ "www._base_domain_": [
111
+ {
112
+ srcPath: "/gbp/location/v1/locations",
113
+ destPath: "/v1/locations"
114
+ }
115
+ ]
116
+ };
117
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
118
+ }
119
+ var PACKAGE_NAME = "@wix/auto_sdk_gbp_locations";
120
+ function getGbpLocation(payload) {
121
+ function __getGbpLocation({ host }) {
122
+ const metadata = {
123
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
124
+ method: "GET",
125
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetGBPLocation",
126
+ packageName: PACKAGE_NAME,
127
+ migrationOptions: {
128
+ optInTransformResponse: true
129
+ },
130
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
131
+ protoPath: "/v1/locations/{locationId}",
132
+ data: payload,
133
+ host
134
+ }),
135
+ params: toURLSearchParams(payload),
136
+ transformResponse: (payload2) => transformPaths(payload2, [
137
+ {
138
+ transformFn: transformRESTTimestampToSDKTimestamp,
139
+ paths: [
140
+ { path: "gbplocation.createdDate" },
141
+ { path: "gbplocation.updatedDate" }
142
+ ]
143
+ }
144
+ ])
145
+ };
146
+ return metadata;
147
+ }
148
+ return __getGbpLocation;
149
+ }
150
+ function queryGbpLocations(payload) {
151
+ function __queryGbpLocations({ host }) {
152
+ const metadata = {
153
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
154
+ method: "GET",
155
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.QueryGBPLocations",
156
+ packageName: PACKAGE_NAME,
157
+ migrationOptions: {
158
+ optInTransformResponse: true
159
+ },
160
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
161
+ protoPath: "/v1/locations/query",
162
+ data: payload,
163
+ host
164
+ }),
165
+ params: toURLSearchParams(payload, true),
166
+ transformResponse: (payload2) => transformPaths(payload2, [
167
+ {
168
+ transformFn: transformRESTTimestampToSDKTimestamp,
169
+ paths: [
170
+ { path: "locations.createdDate" },
171
+ { path: "locations.updatedDate" }
172
+ ]
173
+ }
174
+ ]),
175
+ fallback: [
176
+ {
177
+ method: "POST",
178
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
179
+ protoPath: "/v1/locations/query",
180
+ data: payload,
181
+ host
182
+ }),
183
+ data: payload
184
+ }
185
+ ]
186
+ };
187
+ return metadata;
188
+ }
189
+ return __queryGbpLocations;
190
+ }
191
+ function queryGoogleLocations(payload) {
192
+ function __queryGoogleLocations({ host }) {
193
+ const metadata = {
194
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
195
+ method: "GET",
196
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.QueryGoogleLocations",
197
+ packageName: PACKAGE_NAME,
198
+ migrationOptions: {
199
+ optInTransformResponse: true
200
+ },
201
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
202
+ protoPath: "/v1/locations/query-with-google",
203
+ data: payload,
204
+ host
205
+ }),
206
+ params: toURLSearchParams(payload, true),
207
+ transformResponse: (payload2) => transformPaths(payload2, [
208
+ {
209
+ transformFn: transformRESTFloatToSDKFloat,
210
+ paths: [
211
+ { path: "locations.googleLocation.latLng.latitude" },
212
+ { path: "locations.googleLocation.latLng.longitude" }
213
+ ]
214
+ },
215
+ {
216
+ transformFn: transformRESTTimestampToSDKTimestamp,
217
+ paths: [
218
+ { path: "locations.location.createdDate" },
219
+ { path: "locations.location.updatedDate" }
220
+ ]
221
+ }
222
+ ]),
223
+ fallback: [
224
+ {
225
+ method: "POST",
226
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
227
+ protoPath: "/v1/locations/query-with-google",
228
+ data: payload,
229
+ host
230
+ }),
231
+ data: payload
232
+ }
233
+ ]
234
+ };
235
+ return metadata;
236
+ }
237
+ return __queryGoogleLocations;
238
+ }
239
+ function getGoogleLocation(payload) {
240
+ function __getGoogleLocation({ host }) {
241
+ const metadata = {
242
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
243
+ method: "GET",
244
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetGoogleLocation",
245
+ packageName: PACKAGE_NAME,
246
+ migrationOptions: {
247
+ optInTransformResponse: true
248
+ },
249
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
250
+ protoPath: "/v1/locations/google/{locationId}",
251
+ data: payload,
252
+ host
253
+ }),
254
+ params: toURLSearchParams(payload),
255
+ transformResponse: (payload2) => transformPaths(payload2, [
256
+ {
257
+ transformFn: transformRESTFloatToSDKFloat,
258
+ paths: [
259
+ { path: "location.googleLocation.latLng.latitude" },
260
+ { path: "location.googleLocation.latLng.longitude" }
261
+ ]
262
+ },
263
+ {
264
+ transformFn: transformRESTTimestampToSDKTimestamp,
265
+ paths: [
266
+ { path: "location.location.createdDate" },
267
+ { path: "location.location.updatedDate" }
268
+ ]
269
+ }
270
+ ])
271
+ };
272
+ return metadata;
273
+ }
274
+ return __getGoogleLocation;
275
+ }
276
+ function createLocation(payload) {
277
+ function __createLocation({ host }) {
278
+ const serializedData = transformPaths(payload, [
279
+ {
280
+ transformFn: transformSDKTimestampToRESTTimestamp,
281
+ paths: [
282
+ { path: "location.createdDate" },
283
+ { path: "location.updatedDate" }
284
+ ]
285
+ }
286
+ ]);
287
+ const metadata = {
288
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
289
+ method: "POST",
290
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.CreateLocation",
291
+ packageName: PACKAGE_NAME,
292
+ migrationOptions: {
293
+ optInTransformResponse: true
294
+ },
295
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
296
+ protoPath: "/v1/locations",
297
+ data: serializedData,
298
+ host
299
+ }),
300
+ data: serializedData,
301
+ transformResponse: (payload2) => transformPaths(payload2, [
302
+ {
303
+ transformFn: transformRESTTimestampToSDKTimestamp,
304
+ paths: [
305
+ { path: "location.createdDate" },
306
+ { path: "location.updatedDate" }
307
+ ]
308
+ }
309
+ ])
310
+ };
311
+ return metadata;
312
+ }
313
+ return __createLocation;
314
+ }
315
+ function updateLocation(payload) {
316
+ function __updateLocation({ host }) {
317
+ const serializedData = transformPaths(payload, [
318
+ {
319
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
320
+ paths: [{ path: "fieldMask" }]
321
+ },
322
+ {
323
+ transformFn: transformSDKTimestampToRESTTimestamp,
324
+ paths: [
325
+ { path: "location.createdDate" },
326
+ { path: "location.updatedDate" }
327
+ ]
328
+ }
329
+ ]);
330
+ const metadata = {
331
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
332
+ method: "PATCH",
333
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateLocation",
334
+ packageName: PACKAGE_NAME,
335
+ migrationOptions: {
336
+ optInTransformResponse: true
337
+ },
338
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
339
+ protoPath: "/v1/locations/{location.id}",
340
+ data: serializedData,
341
+ host
342
+ }),
343
+ data: serializedData,
344
+ transformResponse: (payload2) => transformPaths(payload2, [
345
+ {
346
+ transformFn: transformRESTTimestampToSDKTimestamp,
347
+ paths: [
348
+ { path: "location.createdDate" },
349
+ { path: "location.updatedDate" }
350
+ ]
351
+ }
352
+ ])
353
+ };
354
+ return metadata;
355
+ }
356
+ return __updateLocation;
357
+ }
358
+ function deleteLocation(payload) {
359
+ function __deleteLocation({ host }) {
360
+ const metadata = {
361
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
362
+ method: "DELETE",
363
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.DeleteLocation",
364
+ packageName: PACKAGE_NAME,
365
+ migrationOptions: {
366
+ optInTransformResponse: true
367
+ },
368
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
369
+ protoPath: "/v1/locations/{locationId}",
370
+ data: payload,
371
+ host
372
+ }),
373
+ params: toURLSearchParams(payload)
374
+ };
375
+ return metadata;
376
+ }
377
+ return __deleteLocation;
378
+ }
379
+ function createGoogleLocation(payload) {
380
+ function __createGoogleLocation({ host }) {
381
+ const serializedData = transformPaths(payload, [
382
+ {
383
+ transformFn: transformSDKFloatToRESTFloat,
384
+ paths: [
385
+ { path: "location.latLng.latitude" },
386
+ { path: "location.latLng.longitude" }
387
+ ]
388
+ }
389
+ ]);
390
+ const metadata = {
391
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
392
+ method: "POST",
393
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.CreateGoogleLocation",
394
+ packageName: PACKAGE_NAME,
395
+ migrationOptions: {
396
+ optInTransformResponse: true
397
+ },
398
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
399
+ protoPath: "/v1/locations/google",
400
+ data: serializedData,
401
+ host
402
+ }),
403
+ data: serializedData,
404
+ transformResponse: (payload2) => transformPaths(payload2, [
405
+ {
406
+ transformFn: transformRESTTimestampToSDKTimestamp,
407
+ paths: [
408
+ { path: "location.createdDate" },
409
+ { path: "location.updatedDate" }
410
+ ]
411
+ }
412
+ ])
413
+ };
414
+ return metadata;
415
+ }
416
+ return __createGoogleLocation;
417
+ }
418
+ function deleteGoogleLocation(payload) {
419
+ function __deleteGoogleLocation({ host }) {
420
+ const metadata = {
421
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
422
+ method: "DELETE",
423
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.DeleteGoogleLocation",
424
+ packageName: PACKAGE_NAME,
425
+ migrationOptions: {
426
+ optInTransformResponse: true
427
+ },
428
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
429
+ protoPath: "/v1/locations/google/{locationId}",
430
+ data: payload,
431
+ host
432
+ }),
433
+ params: toURLSearchParams(payload)
434
+ };
435
+ return metadata;
436
+ }
437
+ return __deleteGoogleLocation;
438
+ }
439
+ function updateGoogleLocation(payload) {
440
+ function __updateGoogleLocation({ host }) {
441
+ const serializedData = transformPaths(payload, [
442
+ {
443
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
444
+ paths: [{ path: "fieldMask" }]
445
+ },
446
+ {
447
+ transformFn: transformSDKFloatToRESTFloat,
448
+ paths: [
449
+ { path: "location.latLng.latitude" },
450
+ { path: "location.latLng.longitude" }
451
+ ]
452
+ }
453
+ ]);
454
+ const metadata = {
455
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
456
+ method: "PATCH",
457
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateGoogleLocation",
458
+ packageName: PACKAGE_NAME,
459
+ migrationOptions: {
460
+ optInTransformResponse: true
461
+ },
462
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
463
+ protoPath: "/v1/locations/{locationId}/google",
464
+ data: serializedData,
465
+ host
466
+ }),
467
+ data: serializedData,
468
+ transformResponse: (payload2) => transformPaths(payload2, [
469
+ {
470
+ transformFn: transformRESTFloatToSDKFloat,
471
+ paths: [
472
+ { path: "location.latLng.latitude" },
473
+ { path: "location.latLng.longitude" }
474
+ ]
475
+ }
476
+ ])
477
+ };
478
+ return metadata;
479
+ }
480
+ return __updateGoogleLocation;
481
+ }
482
+ function bulkCreateLocations(payload) {
483
+ function __bulkCreateLocations({ host }) {
484
+ const serializedData = transformPaths(payload, [
485
+ {
486
+ transformFn: transformSDKTimestampToRESTTimestamp,
487
+ paths: [
488
+ { path: "locations.createdDate" },
489
+ { path: "locations.updatedDate" }
490
+ ]
491
+ }
492
+ ]);
493
+ const metadata = {
494
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
495
+ method: "POST",
496
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.BulkCreateLocations",
497
+ packageName: PACKAGE_NAME,
498
+ migrationOptions: {
499
+ optInTransformResponse: true
500
+ },
501
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
502
+ protoPath: "/v1/bulk/locations/create",
503
+ data: serializedData,
504
+ host
505
+ }),
506
+ data: serializedData,
507
+ transformResponse: (payload2) => transformPaths(payload2, [
508
+ {
509
+ transformFn: transformRESTTimestampToSDKTimestamp,
510
+ paths: [
511
+ { path: "results.item.createdDate" },
512
+ { path: "results.item.updatedDate" }
513
+ ]
514
+ }
515
+ ])
516
+ };
517
+ return metadata;
518
+ }
519
+ return __bulkCreateLocations;
520
+ }
521
+ function bulkDeleteLocations(payload) {
522
+ function __bulkDeleteLocations({ host }) {
523
+ const metadata = {
524
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
525
+ method: "POST",
526
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.BulkDeleteLocations",
527
+ packageName: PACKAGE_NAME,
528
+ migrationOptions: {
529
+ optInTransformResponse: true
530
+ },
531
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
532
+ protoPath: "/v1/bulk/locations/delete",
533
+ data: payload,
534
+ host
535
+ }),
536
+ data: payload
537
+ };
538
+ return metadata;
539
+ }
540
+ return __bulkDeleteLocations;
541
+ }
542
+ function listGbpAccounts(payload) {
543
+ function __listGbpAccounts({ host }) {
544
+ const metadata = {
545
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
546
+ method: "GET",
547
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListGbpAccounts",
548
+ packageName: PACKAGE_NAME,
549
+ migrationOptions: {
550
+ optInTransformResponse: true
551
+ },
552
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
553
+ protoPath: "/v1/accounts",
554
+ data: payload,
555
+ host
556
+ }),
557
+ params: toURLSearchParams(payload)
558
+ };
559
+ return metadata;
560
+ }
561
+ return __listGbpAccounts;
562
+ }
563
+ function listUnimportedLocations(payload) {
564
+ function __listUnimportedLocations({ host }) {
565
+ const metadata = {
566
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
567
+ method: "GET",
568
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListUnimportedLocations",
569
+ packageName: PACKAGE_NAME,
570
+ migrationOptions: {
571
+ optInTransformResponse: true
572
+ },
573
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
574
+ protoPath: "/v1/accounts/{accountId}/locations/unimported",
575
+ data: payload,
576
+ host
577
+ }),
578
+ params: toURLSearchParams(payload)
579
+ };
580
+ return metadata;
581
+ }
582
+ return __listUnimportedLocations;
583
+ }
584
+ function listReviews(payload) {
585
+ function __listReviews({ host }) {
586
+ const metadata = {
587
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
588
+ method: "GET",
589
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListReviews",
590
+ packageName: PACKAGE_NAME,
591
+ migrationOptions: {
592
+ optInTransformResponse: true
593
+ },
594
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
595
+ protoPath: "/v1/locations/{locationId}/reviews",
596
+ data: payload,
597
+ host
598
+ }),
599
+ params: toURLSearchParams(payload),
600
+ transformResponse: (payload2) => transformPaths(payload2, [
601
+ {
602
+ transformFn: transformRESTFloatToSDKFloat,
603
+ paths: [{ path: "metrics.averageRating" }]
604
+ }
605
+ ])
606
+ };
607
+ return metadata;
608
+ }
609
+ return __listReviews;
610
+ }
611
+ function putReviewReply(payload) {
612
+ function __putReviewReply({ host }) {
613
+ const metadata = {
614
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
615
+ method: "PUT",
616
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.PutReviewReply",
617
+ packageName: PACKAGE_NAME,
618
+ migrationOptions: {
619
+ optInTransformResponse: true
620
+ },
621
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
622
+ protoPath: "/v1/locations/{locationId}/reviews/{reviewId}/reply",
623
+ data: payload,
624
+ host
625
+ }),
626
+ data: payload
627
+ };
628
+ return metadata;
629
+ }
630
+ return __putReviewReply;
631
+ }
632
+ function deleteReviewReply(payload) {
633
+ function __deleteReviewReply({ host }) {
634
+ const metadata = {
635
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
636
+ method: "DELETE",
637
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.DeleteReviewReply",
638
+ packageName: PACKAGE_NAME,
639
+ migrationOptions: {
640
+ optInTransformResponse: true
641
+ },
642
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
643
+ protoPath: "/v1/locations/{locationId}/reviews/{reviewId}/reply",
644
+ data: payload,
645
+ host
646
+ }),
647
+ params: toURLSearchParams(payload)
648
+ };
649
+ return metadata;
650
+ }
651
+ return __deleteReviewReply;
652
+ }
653
+ function listMedia(payload) {
654
+ function __listMedia({ host }) {
655
+ const metadata = {
656
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
657
+ method: "GET",
658
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListMedia",
659
+ packageName: PACKAGE_NAME,
660
+ migrationOptions: {
661
+ optInTransformResponse: true
662
+ },
663
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
664
+ protoPath: "/v1/locations/{locationId}/media",
665
+ data: payload,
666
+ host
667
+ }),
668
+ params: toURLSearchParams(payload)
669
+ };
670
+ return metadata;
671
+ }
672
+ return __listMedia;
673
+ }
674
+ function createMedia(payload) {
675
+ function __createMedia({ host }) {
676
+ const metadata = {
677
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
678
+ method: "POST",
679
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.CreateMedia",
680
+ packageName: PACKAGE_NAME,
681
+ migrationOptions: {
682
+ optInTransformResponse: true
683
+ },
684
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
685
+ protoPath: "/v1/locations/{locationId}/media",
686
+ data: payload,
687
+ host
688
+ }),
689
+ data: payload
690
+ };
691
+ return metadata;
692
+ }
693
+ return __createMedia;
694
+ }
695
+ function deleteMedia(payload) {
696
+ function __deleteMedia({ host }) {
697
+ const metadata = {
698
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
699
+ method: "DELETE",
700
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.DeleteMedia",
701
+ packageName: PACKAGE_NAME,
702
+ migrationOptions: {
703
+ optInTransformResponse: true
704
+ },
705
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
706
+ protoPath: "/v1/locations/{locationId}/media/{mediaKey}",
707
+ data: payload,
708
+ host
709
+ }),
710
+ params: toURLSearchParams(payload)
711
+ };
712
+ return metadata;
713
+ }
714
+ return __deleteMedia;
715
+ }
716
+ function updateLocationFoodMenus(payload) {
717
+ function __updateLocationFoodMenus({ host }) {
718
+ const metadata = {
719
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
720
+ method: "PATCH",
721
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateLocationFoodMenus",
722
+ packageName: PACKAGE_NAME,
723
+ migrationOptions: {
724
+ optInTransformResponse: true
725
+ },
726
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
727
+ protoPath: "/v1/locations/{locationId}/food-menus",
728
+ data: payload,
729
+ host
730
+ }),
731
+ data: payload
732
+ };
733
+ return metadata;
734
+ }
735
+ return __updateLocationFoodMenus;
736
+ }
737
+ function updateLocationAttributes(payload) {
738
+ function __updateLocationAttributes({ host }) {
739
+ const metadata = {
740
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
741
+ method: "PATCH",
742
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateLocationAttributes",
743
+ packageName: PACKAGE_NAME,
744
+ migrationOptions: {
745
+ optInTransformResponse: true
746
+ },
747
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
748
+ protoPath: "/v1/locations/{locationId}/attributes",
749
+ data: payload,
750
+ host
751
+ }),
752
+ data: payload
753
+ };
754
+ return metadata;
755
+ }
756
+ return __updateLocationAttributes;
757
+ }
758
+ function getLocationAttributes(payload) {
759
+ function __getLocationAttributes({ host }) {
760
+ const metadata = {
761
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
762
+ method: "GET",
763
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetLocationAttributes",
764
+ packageName: PACKAGE_NAME,
765
+ migrationOptions: {
766
+ optInTransformResponse: true
767
+ },
768
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
769
+ protoPath: "/v1/locations/{locationId}/attributes",
770
+ data: payload,
771
+ host
772
+ }),
773
+ params: toURLSearchParams(payload)
774
+ };
775
+ return metadata;
776
+ }
777
+ return __getLocationAttributes;
778
+ }
779
+ function getLocationLodging(payload) {
780
+ function __getLocationLodging({ host }) {
781
+ const metadata = {
782
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
783
+ method: "GET",
784
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetLocationLodging",
785
+ packageName: PACKAGE_NAME,
786
+ migrationOptions: {
787
+ optInTransformResponse: true
788
+ },
789
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
790
+ protoPath: "/v1/locations/{locationId}/lodging",
791
+ data: payload,
792
+ host
793
+ }),
794
+ params: toURLSearchParams(payload),
795
+ transformResponse: (payload2) => transformPaths(payload2, [
796
+ {
797
+ transformFn: transformRESTFloatToSDKFloat,
798
+ paths: [
799
+ {
800
+ path: "lodging.allUnits.totalLivingAreas.layout.livingAreaSqMeters"
801
+ },
802
+ { path: "lodging.commonLivingArea.layout.livingAreaSqMeters" },
803
+ {
804
+ path: "lodging.guestUnits.features.totalLivingAreas.layout.livingAreaSqMeters"
805
+ },
806
+ {
807
+ path: "lodging.someUnits.totalLivingAreas.layout.livingAreaSqMeters"
808
+ }
809
+ ]
810
+ },
811
+ {
812
+ transformFn: transformRESTTimestampToSDKTimestamp,
813
+ paths: [{ path: "lodging.metadata.updateTime" }]
814
+ }
815
+ ])
816
+ };
817
+ return metadata;
818
+ }
819
+ return __getLocationLodging;
820
+ }
821
+ function updateLocationLodging(payload) {
822
+ function __updateLocationLodging({ host }) {
823
+ const serializedData = transformPaths(payload, [
824
+ {
825
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
826
+ paths: [{ path: "fieldMask" }]
827
+ },
828
+ {
829
+ transformFn: transformSDKFloatToRESTFloat,
830
+ paths: [
831
+ {
832
+ path: "lodging.allUnits.totalLivingAreas.layout.livingAreaSqMeters"
833
+ },
834
+ { path: "lodging.commonLivingArea.layout.livingAreaSqMeters" },
835
+ {
836
+ path: "lodging.guestUnits.features.totalLivingAreas.layout.livingAreaSqMeters"
837
+ },
838
+ {
839
+ path: "lodging.someUnits.totalLivingAreas.layout.livingAreaSqMeters"
840
+ }
841
+ ]
842
+ },
843
+ {
844
+ transformFn: transformSDKTimestampToRESTTimestamp,
845
+ paths: [{ path: "lodging.metadata.updateTime" }]
846
+ }
847
+ ]);
848
+ const metadata = {
849
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
850
+ method: "PATCH",
851
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateLocationLodging",
852
+ packageName: PACKAGE_NAME,
853
+ migrationOptions: {
854
+ optInTransformResponse: true
855
+ },
856
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
857
+ protoPath: "/v1/locations/{locationId}/lodging",
858
+ data: serializedData,
859
+ host
860
+ }),
861
+ data: serializedData,
862
+ transformResponse: (payload2) => transformPaths(payload2, [
863
+ {
864
+ transformFn: transformRESTFloatToSDKFloat,
865
+ paths: [
866
+ {
867
+ path: "lodging.allUnits.totalLivingAreas.layout.livingAreaSqMeters"
868
+ },
869
+ { path: "lodging.commonLivingArea.layout.livingAreaSqMeters" },
870
+ {
871
+ path: "lodging.guestUnits.features.totalLivingAreas.layout.livingAreaSqMeters"
872
+ },
873
+ {
874
+ path: "lodging.someUnits.totalLivingAreas.layout.livingAreaSqMeters"
875
+ }
876
+ ]
877
+ },
878
+ {
879
+ transformFn: transformRESTTimestampToSDKTimestamp,
880
+ paths: [{ path: "lodging.metadata.updateTime" }]
881
+ }
882
+ ])
883
+ };
884
+ return metadata;
885
+ }
886
+ return __updateLocationLodging;
887
+ }
888
+ function listAttributeMetadata(payload) {
889
+ function __listAttributeMetadata({ host }) {
890
+ const metadata = {
891
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
892
+ method: "GET",
893
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListAttributeMetadata",
894
+ packageName: PACKAGE_NAME,
895
+ migrationOptions: {
896
+ optInTransformResponse: true
897
+ },
898
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
899
+ protoPath: "/v1/attribute-metadata",
900
+ data: payload,
901
+ host
902
+ }),
903
+ params: toURLSearchParams(payload),
904
+ transformResponse: (payload2) => transformPaths(payload2, [
905
+ {
906
+ transformFn: transformRESTFloatToSDKFloat,
907
+ paths: [{ path: "attributeMetadata.valueMetadata.numberValue" }]
908
+ }
909
+ ])
910
+ };
911
+ return metadata;
912
+ }
913
+ return __listAttributeMetadata;
914
+ }
915
+ function listCategories(payload) {
916
+ function __listCategories({ host }) {
917
+ const metadata = {
918
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
919
+ method: "GET",
920
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListCategories",
921
+ packageName: PACKAGE_NAME,
922
+ migrationOptions: {
923
+ optInTransformResponse: true
924
+ },
925
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
926
+ protoPath: "/v1/categories",
927
+ data: payload,
928
+ host
929
+ }),
930
+ params: toURLSearchParams(payload)
931
+ };
932
+ return metadata;
933
+ }
934
+ return __listCategories;
935
+ }
936
+ function getVerificationOptions(payload) {
937
+ function __getVerificationOptions({ host }) {
938
+ const metadata = {
939
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
940
+ method: "POST",
941
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetVerificationOptions",
942
+ packageName: PACKAGE_NAME,
943
+ migrationOptions: {
944
+ optInTransformResponse: true
945
+ },
946
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
947
+ protoPath: "/v1/locations/{locationId}:getVerificationOptions",
948
+ data: payload,
949
+ host
950
+ }),
951
+ data: payload
952
+ };
953
+ return metadata;
954
+ }
955
+ return __getVerificationOptions;
956
+ }
957
+ function startVerification(payload) {
958
+ function __startVerification({ host }) {
959
+ const metadata = {
960
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
961
+ method: "POST",
962
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.StartVerification",
963
+ packageName: PACKAGE_NAME,
964
+ migrationOptions: {
965
+ optInTransformResponse: true
966
+ },
967
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
968
+ protoPath: "/v1/locations/{locationId}:startVerification",
969
+ data: payload,
970
+ host
971
+ }),
972
+ data: payload
973
+ };
974
+ return metadata;
975
+ }
976
+ return __startVerification;
977
+ }
978
+ function completeVerification(payload) {
979
+ function __completeVerification({ host }) {
980
+ const metadata = {
981
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
982
+ method: "POST",
983
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.CompleteVerification",
984
+ packageName: PACKAGE_NAME,
985
+ migrationOptions: {
986
+ optInTransformResponse: true
987
+ },
988
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
989
+ protoPath: "/v1/locations/{locationId}:completeVerification",
990
+ data: payload,
991
+ host
992
+ }),
993
+ data: payload
994
+ };
995
+ return metadata;
996
+ }
997
+ return __completeVerification;
998
+ }
999
+ function getVoiceOfMerchant(payload) {
1000
+ function __getVoiceOfMerchant({ host }) {
1001
+ const metadata = {
1002
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1003
+ method: "GET",
1004
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetVoiceOfMerchant",
1005
+ packageName: PACKAGE_NAME,
1006
+ migrationOptions: {
1007
+ optInTransformResponse: true
1008
+ },
1009
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1010
+ protoPath: "/v1/locations/{locationId}/voice-of-merchant",
1011
+ data: payload,
1012
+ host
1013
+ }),
1014
+ params: toURLSearchParams(payload)
1015
+ };
1016
+ return metadata;
1017
+ }
1018
+ return __getVoiceOfMerchant;
1019
+ }
1020
+ function getLocationInsights(payload) {
1021
+ function __getLocationInsights({ host }) {
1022
+ const serializedData = transformPaths(payload, [
1023
+ {
1024
+ transformFn: transformSDKTimestampToRESTTimestamp,
1025
+ paths: [{ path: "timeRange.startDate" }, { path: "timeRange.endDate" }]
1026
+ }
1027
+ ]);
1028
+ const metadata = {
1029
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1030
+ method: "GET",
1031
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetLocationInsights",
1032
+ packageName: PACKAGE_NAME,
1033
+ migrationOptions: {
1034
+ optInTransformResponse: true
1035
+ },
1036
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1037
+ protoPath: "/v1/locations/{locationId}/insights",
1038
+ data: serializedData,
1039
+ host
1040
+ }),
1041
+ params: toURLSearchParams(serializedData),
1042
+ transformResponse: (payload2) => transformPaths(payload2, [
1043
+ {
1044
+ transformFn: transformRESTTimestampToSDKTimestamp,
1045
+ paths: [{ path: "metrics.dailyValues.date" }]
1046
+ }
1047
+ ])
1048
+ };
1049
+ return metadata;
1050
+ }
1051
+ return __getLocationInsights;
1052
+ }
1053
+ function listSearchKeywordImpressions(payload) {
1054
+ function __listSearchKeywordImpressions({ host }) {
1055
+ const metadata = {
1056
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1057
+ method: "GET",
1058
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.ListSearchKeywordImpressions",
1059
+ packageName: PACKAGE_NAME,
1060
+ migrationOptions: {
1061
+ optInTransformResponse: true
1062
+ },
1063
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1064
+ protoPath: "/v1/locations/{locationId}/search-keyword-impressions",
1065
+ data: payload,
1066
+ host
1067
+ }),
1068
+ params: toURLSearchParams(payload)
1069
+ };
1070
+ return metadata;
1071
+ }
1072
+ return __listSearchKeywordImpressions;
1073
+ }
1074
+ function inviteAdminToLocation(payload) {
1075
+ function __inviteAdminToLocation({ host }) {
1076
+ const metadata = {
1077
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1078
+ method: "POST",
1079
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.InviteAdminToLocation",
1080
+ packageName: PACKAGE_NAME,
1081
+ migrationOptions: {
1082
+ optInTransformResponse: true
1083
+ },
1084
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1085
+ protoPath: "/v1/locations/{locationId}/invite-admin",
1086
+ data: payload,
1087
+ host
1088
+ }),
1089
+ data: payload
1090
+ };
1091
+ return metadata;
1092
+ }
1093
+ return __inviteAdminToLocation;
1094
+ }
1095
+ function getLocationAdmins(payload) {
1096
+ function __getLocationAdmins({ host }) {
1097
+ const metadata = {
1098
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1099
+ method: "GET",
1100
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetLocationAdmins",
1101
+ packageName: PACKAGE_NAME,
1102
+ migrationOptions: {
1103
+ optInTransformResponse: true
1104
+ },
1105
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1106
+ protoPath: "/v1/locations/{locationId}/admins",
1107
+ data: payload,
1108
+ host
1109
+ }),
1110
+ params: toURLSearchParams(payload)
1111
+ };
1112
+ return metadata;
1113
+ }
1114
+ return __getLocationAdmins;
1115
+ }
1116
+ function getAddressSchemaByCountryCode(payload) {
1117
+ function __getAddressSchemaByCountryCode({ host }) {
1118
+ const metadata = {
1119
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1120
+ method: "GET",
1121
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetAddressSchemaByCountryCode",
1122
+ packageName: PACKAGE_NAME,
1123
+ migrationOptions: {
1124
+ optInTransformResponse: true
1125
+ },
1126
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1127
+ protoPath: "/v1/address-schema/{countryCode}",
1128
+ data: payload,
1129
+ host
1130
+ }),
1131
+ params: toURLSearchParams(payload)
1132
+ };
1133
+ return metadata;
1134
+ }
1135
+ return __getAddressSchemaByCountryCode;
1136
+ }
1137
+ function suggestRegions(payload) {
1138
+ function __suggestRegions({ host }) {
1139
+ const metadata = {
1140
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1141
+ method: "POST",
1142
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.SuggestRegions",
1143
+ packageName: PACKAGE_NAME,
1144
+ migrationOptions: {
1145
+ optInTransformResponse: true
1146
+ },
1147
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1148
+ protoPath: "/v1/regions/suggest",
1149
+ data: payload,
1150
+ host
1151
+ }),
1152
+ data: payload
1153
+ };
1154
+ return metadata;
1155
+ }
1156
+ return __suggestRegions;
1157
+ }
1158
+ function suggestEstablishments(payload) {
1159
+ function __suggestEstablishments({ host }) {
1160
+ const metadata = {
1161
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1162
+ method: "POST",
1163
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.SuggestEstablishments",
1164
+ packageName: PACKAGE_NAME,
1165
+ migrationOptions: {
1166
+ optInTransformResponse: true
1167
+ },
1168
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1169
+ protoPath: "/v1/establishments/suggest",
1170
+ data: payload,
1171
+ host
1172
+ }),
1173
+ data: payload
1174
+ };
1175
+ return metadata;
1176
+ }
1177
+ return __suggestEstablishments;
1178
+ }
1179
+ function searchGoogleLocations(payload) {
1180
+ function __searchGoogleLocations({ host }) {
1181
+ const serializedData = transformPaths(payload, [
1182
+ {
1183
+ transformFn: transformSDKFloatToRESTFloat,
1184
+ paths: [
1185
+ { path: "location.latLng.latitude" },
1186
+ { path: "location.latLng.longitude" }
1187
+ ]
1188
+ }
1189
+ ]);
1190
+ const metadata = {
1191
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
1192
+ method: "POST",
1193
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.SearchGoogleLocations",
1194
+ packageName: PACKAGE_NAME,
1195
+ migrationOptions: {
1196
+ optInTransformResponse: true
1197
+ },
1198
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
1199
+ protoPath: "/v1/google-locations/search",
1200
+ data: serializedData,
1201
+ host
1202
+ }),
1203
+ data: serializedData,
1204
+ transformResponse: (payload2) => transformPaths(payload2, [
1205
+ {
1206
+ transformFn: transformRESTFloatToSDKFloat,
1207
+ paths: [
1208
+ { path: "matches.location.latLng.latitude" },
1209
+ { path: "matches.location.latLng.longitude" }
1210
+ ]
1211
+ }
1212
+ ])
1213
+ };
1214
+ return metadata;
1215
+ }
1216
+ return __searchGoogleLocations;
1217
+ }
1218
+
1219
+ // src/gbp-location-v1-gbplocation-locations.types.ts
1220
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1221
+ SortOrder2["ASC"] = "ASC";
1222
+ SortOrder2["DESC"] = "DESC";
1223
+ return SortOrder2;
1224
+ })(SortOrder || {});
1225
+ var BusinessType = /* @__PURE__ */ ((BusinessType2) => {
1226
+ BusinessType2["CUSTOMER_LOCATION_ONLY"] = "CUSTOMER_LOCATION_ONLY";
1227
+ BusinessType2["CUSTOMER_AND_BUSINESS_LOCATION"] = "CUSTOMER_AND_BUSINESS_LOCATION";
1228
+ return BusinessType2;
1229
+ })(BusinessType || {});
1230
+ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
1231
+ DayOfWeek2["MONDAY"] = "MONDAY";
1232
+ DayOfWeek2["TUESDAY"] = "TUESDAY";
1233
+ DayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
1234
+ DayOfWeek2["THURSDAY"] = "THURSDAY";
1235
+ DayOfWeek2["FRIDAY"] = "FRIDAY";
1236
+ DayOfWeek2["SATURDAY"] = "SATURDAY";
1237
+ DayOfWeek2["SUNDAY"] = "SUNDAY";
1238
+ return DayOfWeek2;
1239
+ })(DayOfWeek || {});
1240
+ var Status = /* @__PURE__ */ ((Status2) => {
1241
+ Status2["OPEN"] = "OPEN";
1242
+ Status2["CLOSED_PERMANENTLY"] = "CLOSED_PERMANENTLY";
1243
+ Status2["CLOSED_TEMPORARILY"] = "CLOSED_TEMPORARILY";
1244
+ return Status2;
1245
+ })(Status || {});
1246
+ var State = /* @__PURE__ */ ((State2) => {
1247
+ State2["WAIT_FOR_VOICE_OF_MERCHANT"] = "WAIT_FOR_VOICE_OF_MERCHANT";
1248
+ State2["RESOLVE_OWNERSHIP_CONFLICT"] = "RESOLVE_OWNERSHIP_CONFLICT";
1249
+ State2["COMPLY_WITH_GUIDELINES"] = "COMPLY_WITH_GUIDELINES";
1250
+ State2["VERIFY"] = "VERIFY";
1251
+ return State2;
1252
+ })(State || {});
1253
+ var RecommendationReason = /* @__PURE__ */ ((RecommendationReason2) => {
1254
+ RecommendationReason2["BUSINESS_LOCATION_SUSPENDED"] = "BUSINESS_LOCATION_SUSPENDED";
1255
+ RecommendationReason2["BUSINESS_LOCATION_DISABLED"] = "BUSINESS_LOCATION_DISABLED";
1256
+ return RecommendationReason2;
1257
+ })(RecommendationReason || {});
1258
+ var ReviewSortOrder = /* @__PURE__ */ ((ReviewSortOrder2) => {
1259
+ ReviewSortOrder2["NEWEST"] = "NEWEST";
1260
+ ReviewSortOrder2["HIGHEST_RATING"] = "HIGHEST_RATING";
1261
+ ReviewSortOrder2["LOWEST_RATING"] = "LOWEST_RATING";
1262
+ return ReviewSortOrder2;
1263
+ })(ReviewSortOrder || {});
1264
+ var MediaFormat = /* @__PURE__ */ ((MediaFormat2) => {
1265
+ MediaFormat2["PHOTO"] = "PHOTO";
1266
+ MediaFormat2["VIDEO"] = "VIDEO";
1267
+ return MediaFormat2;
1268
+ })(MediaFormat || {});
1269
+ var MediaCategory = /* @__PURE__ */ ((MediaCategory2) => {
1270
+ MediaCategory2["COVER"] = "COVER";
1271
+ MediaCategory2["PROFILE"] = "PROFILE";
1272
+ MediaCategory2["LOGO"] = "LOGO";
1273
+ MediaCategory2["EXTERIOR"] = "EXTERIOR";
1274
+ MediaCategory2["INTERIOR"] = "INTERIOR";
1275
+ MediaCategory2["PRODUCT"] = "PRODUCT";
1276
+ MediaCategory2["AT_WORK"] = "AT_WORK";
1277
+ MediaCategory2["FOOD_AND_DRINK"] = "FOOD_AND_DRINK";
1278
+ MediaCategory2["MENU"] = "MENU";
1279
+ MediaCategory2["COMMON_AREA"] = "COMMON_AREA";
1280
+ MediaCategory2["ROOMS"] = "ROOMS";
1281
+ MediaCategory2["TEAMS"] = "TEAMS";
1282
+ MediaCategory2["ADDITIONAL"] = "ADDITIONAL";
1283
+ return MediaCategory2;
1284
+ })(MediaCategory || {});
1285
+ var AmenityException = /* @__PURE__ */ ((AmenityException2) => {
1286
+ AmenityException2["UNDER_CONSTRUCTION"] = "UNDER_CONSTRUCTION";
1287
+ AmenityException2["DEPENDENT_ON_SEASON"] = "DEPENDENT_ON_SEASON";
1288
+ AmenityException2["DEPENDENT_ON_DAY_OF_WEEK"] = "DEPENDENT_ON_DAY_OF_WEEK";
1289
+ return AmenityException2;
1290
+ })(AmenityException || {});
1291
+ var EcoCertificate = /* @__PURE__ */ ((EcoCertificate2) => {
1292
+ EcoCertificate2["ISO14001"] = "ISO14001";
1293
+ EcoCertificate2["ISO50001"] = "ISO50001";
1294
+ EcoCertificate2["ASIAN_ECOTOURISM"] = "ASIAN_ECOTOURISM";
1295
+ EcoCertificate2["BIOSPHERE_RESPOSNIBLE_TOURISM"] = "BIOSPHERE_RESPOSNIBLE_TOURISM";
1296
+ EcoCertificate2["BUREAU_VERITAS"] = "BUREAU_VERITAS";
1297
+ EcoCertificate2["CONTROL_UNION"] = "CONTROL_UNION";
1298
+ EcoCertificate2["EARTHCHECK"] = "EARTHCHECK";
1299
+ EcoCertificate2["ECO_CERTIFICATION_MALTA"] = "ECO_CERTIFICATION_MALTA";
1300
+ EcoCertificate2["ECOTOURISM_AUSTRALIAS_ECO"] = "ECOTOURISM_AUSTRALIAS_ECO";
1301
+ EcoCertificate2["GREAT_GREEN_DEAL"] = "GREAT_GREEN_DEAL";
1302
+ EcoCertificate2["GREEN_GLOBE"] = "GREEN_GLOBE";
1303
+ EcoCertificate2["GREEN_GROWTH2050"] = "GREEN_GROWTH2050";
1304
+ EcoCertificate2["GREEN_KEY"] = "GREEN_KEY";
1305
+ EcoCertificate2["GREEN_KEY_ECO_RATING"] = "GREEN_KEY_ECO_RATING";
1306
+ EcoCertificate2["GREEN_SEAL"] = "GREEN_SEAL";
1307
+ EcoCertificate2["GREEN_STAR"] = "GREEN_STAR";
1308
+ EcoCertificate2["GREEN_TOURISM_ACTIVE"] = "GREEN_TOURISM_ACTIVE";
1309
+ EcoCertificate2["HILTON_LIGHTSTAY"] = "HILTON_LIGHTSTAY";
1310
+ EcoCertificate2["HOSTELLING_INTERNATIONALS_QUALITY_AND_SUSTAINABILITY"] = "HOSTELLING_INTERNATIONALS_QUALITY_AND_SUSTAINABILITY";
1311
+ EcoCertificate2["HOTELES_MAS_VERDES"] = "HOTELES_MAS_VERDES";
1312
+ EcoCertificate2["NORDIC_SWAN_ECOLABEL"] = "NORDIC_SWAN_ECOLABEL";
1313
+ EcoCertificate2["PREFERRED_BY_NATURE_SUSTAINABLE_TOURISM"] = "PREFERRED_BY_NATURE_SUSTAINABLE_TOURISM";
1314
+ EcoCertificate2["SUSTAINABLE_TRAVEL_IRELAND"] = "SUSTAINABLE_TRAVEL_IRELAND";
1315
+ EcoCertificate2["TOF_TIGERS_INITITIVES_PUG"] = "TOF_TIGERS_INITITIVES_PUG";
1316
+ EcoCertificate2["TRAVELIFE"] = "TRAVELIFE";
1317
+ EcoCertificate2["UNITED_CERTIFICATION_SYSTEMS_LIMITED"] = "UNITED_CERTIFICATION_SYSTEMS_LIMITED";
1318
+ EcoCertificate2["VIREO_SRL"] = "VIREO_SRL";
1319
+ return EcoCertificate2;
1320
+ })(EcoCertificate || {});
1321
+ var UnitTier = /* @__PURE__ */ ((UnitTier2) => {
1322
+ UnitTier2["STANDARD_UNIT"] = "STANDARD_UNIT";
1323
+ UnitTier2["DELUXE_UNIT"] = "DELUXE_UNIT";
1324
+ return UnitTier2;
1325
+ })(UnitTier || {});
1326
+ var BreeamCertification = /* @__PURE__ */ ((BreeamCertification2) => {
1327
+ BreeamCertification2["NO_BREEAM_CERTIFICATION"] = "NO_BREEAM_CERTIFICATION";
1328
+ BreeamCertification2["BREEAM_PASS"] = "BREEAM_PASS";
1329
+ BreeamCertification2["BREEAM_GOOD"] = "BREEAM_GOOD";
1330
+ BreeamCertification2["BREEAM_VERY_GOOD"] = "BREEAM_VERY_GOOD";
1331
+ BreeamCertification2["BREEAM_EXCELLENT"] = "BREEAM_EXCELLENT";
1332
+ BreeamCertification2["BREEAM_OUTSTANDING"] = "BREEAM_OUTSTANDING";
1333
+ return BreeamCertification2;
1334
+ })(BreeamCertification || {});
1335
+ var LeedCertification = /* @__PURE__ */ ((LeedCertification2) => {
1336
+ LeedCertification2["NO_LEED_CERTIFICATION"] = "NO_LEED_CERTIFICATION";
1337
+ LeedCertification2["LEED_CERTIFIED"] = "LEED_CERTIFIED";
1338
+ LeedCertification2["LEED_SILVER"] = "LEED_SILVER";
1339
+ LeedCertification2["LEED_GOLD"] = "LEED_GOLD";
1340
+ LeedCertification2["LEED_PLATINUM"] = "LEED_PLATINUM";
1341
+ return LeedCertification2;
1342
+ })(LeedCertification || {});
1343
+ var AttributeValueType = /* @__PURE__ */ ((AttributeValueType2) => {
1344
+ AttributeValueType2["BOOL"] = "BOOL";
1345
+ AttributeValueType2["ENUM"] = "ENUM";
1346
+ AttributeValueType2["URL"] = "URL";
1347
+ AttributeValueType2["REPEATED_ENUM"] = "REPEATED_ENUM";
1348
+ return AttributeValueType2;
1349
+ })(AttributeValueType || {});
1350
+ var CategoryView = /* @__PURE__ */ ((CategoryView2) => {
1351
+ CategoryView2["BASIC"] = "BASIC";
1352
+ CategoryView2["FULL"] = "FULL";
1353
+ return CategoryView2;
1354
+ })(CategoryView || {});
1355
+ var VerificationMethod = /* @__PURE__ */ ((VerificationMethod2) => {
1356
+ VerificationMethod2["ADDRESS"] = "ADDRESS";
1357
+ VerificationMethod2["EMAIL"] = "EMAIL";
1358
+ VerificationMethod2["PHONE_CALL"] = "PHONE_CALL";
1359
+ VerificationMethod2["SMS"] = "SMS";
1360
+ VerificationMethod2["AUTO"] = "AUTO";
1361
+ return VerificationMethod2;
1362
+ })(VerificationMethod || {});
1363
+ var VerificationState = /* @__PURE__ */ ((VerificationState2) => {
1364
+ VerificationState2["UNVERIFIED"] = "UNVERIFIED";
1365
+ VerificationState2["PENDING_VERIFICATION"] = "PENDING_VERIFICATION";
1366
+ VerificationState2["VERIFIED"] = "VERIFIED";
1367
+ return VerificationState2;
1368
+ })(VerificationState || {});
1369
+ var DailyMetric = /* @__PURE__ */ ((DailyMetric2) => {
1370
+ DailyMetric2["BUSINESS_IMPRESSIONS_DESKTOP_MAPS"] = "BUSINESS_IMPRESSIONS_DESKTOP_MAPS";
1371
+ DailyMetric2["BUSINESS_IMPRESSIONS_DESKTOP_SEARCH"] = "BUSINESS_IMPRESSIONS_DESKTOP_SEARCH";
1372
+ DailyMetric2["BUSINESS_IMPRESSIONS_MOBILE_MAPS"] = "BUSINESS_IMPRESSIONS_MOBILE_MAPS";
1373
+ DailyMetric2["BUSINESS_IMPRESSIONS_MOBILE_SEARCH"] = "BUSINESS_IMPRESSIONS_MOBILE_SEARCH";
1374
+ DailyMetric2["BUSINESS_CONVERSATIONS"] = "BUSINESS_CONVERSATIONS";
1375
+ DailyMetric2["BUSINESS_DIRECTION_REQUESTS"] = "BUSINESS_DIRECTION_REQUESTS";
1376
+ DailyMetric2["CALL_CLICKS"] = "CALL_CLICKS";
1377
+ DailyMetric2["WEBSITE_CLICKS"] = "WEBSITE_CLICKS";
1378
+ DailyMetric2["BUSINESS_BOOKINGS"] = "BUSINESS_BOOKINGS";
1379
+ DailyMetric2["BUSINESS_FOOD_ORDERS"] = "BUSINESS_FOOD_ORDERS";
1380
+ DailyMetric2["BUSINESS_FOOD_MENU_CLICKS"] = "BUSINESS_FOOD_MENU_CLICKS";
1381
+ return DailyMetric2;
1382
+ })(DailyMetric || {});
1383
+ var Role = /* @__PURE__ */ ((Role2) => {
1384
+ Role2["UNKNOWN"] = "UNKNOWN";
1385
+ Role2["ADMIN_ROLE_UNSPECIFIED"] = "ADMIN_ROLE_UNSPECIFIED";
1386
+ Role2["MANAGER"] = "MANAGER";
1387
+ Role2["OWNER"] = "OWNER";
1388
+ Role2["PRIMARY_OWNER"] = "PRIMARY_OWNER";
1389
+ Role2["SITE_MANAGER"] = "SITE_MANAGER";
1390
+ return Role2;
1391
+ })(Role || {});
1392
+ var AddressFieldType = /* @__PURE__ */ ((AddressFieldType2) => {
1393
+ AddressFieldType2["NAME"] = "NAME";
1394
+ AddressFieldType2["ORGANIZATION"] = "ORGANIZATION";
1395
+ AddressFieldType2["STREET_ADDRESS"] = "STREET_ADDRESS";
1396
+ AddressFieldType2["DEPENDENT_LOCALITY"] = "DEPENDENT_LOCALITY";
1397
+ AddressFieldType2["LOCALITY"] = "LOCALITY";
1398
+ AddressFieldType2["ADMIN_AREA"] = "ADMIN_AREA";
1399
+ AddressFieldType2["POSTAL_CODE"] = "POSTAL_CODE";
1400
+ AddressFieldType2["SORTING_CODE"] = "SORTING_CODE";
1401
+ return AddressFieldType2;
1402
+ })(AddressFieldType || {});
1403
+ var MatchStatus = /* @__PURE__ */ ((MatchStatus2) => {
1404
+ MatchStatus2["CLAIMABLE"] = "CLAIMABLE";
1405
+ MatchStatus2["OWNED_ELSEWHERE"] = "OWNED_ELSEWHERE";
1406
+ return MatchStatus2;
1407
+ })(MatchStatus || {});
1408
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1409
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1410
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1411
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1412
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1413
+ WebhookIdentityType2["APP"] = "APP";
1414
+ return WebhookIdentityType2;
1415
+ })(WebhookIdentityType || {});
1416
+
1417
+ // src/gbp-location-v1-gbplocation-locations.meta.ts
1418
+ function getGbpLocation2() {
1419
+ const payload = { locationId: ":locationId" };
1420
+ const getRequestOptions = getGbpLocation(payload);
1421
+ const getUrl = (context) => {
1422
+ const { url } = getRequestOptions(context);
1423
+ return url;
1424
+ };
1425
+ return {
1426
+ getUrl,
1427
+ httpMethod: "GET",
1428
+ path: "/v1/locations/{locationId}",
1429
+ pathParams: { locationId: "locationId" },
1430
+ __requestType: null,
1431
+ __originalRequestType: null,
1432
+ __responseType: null,
1433
+ __originalResponseType: null
1434
+ };
1435
+ }
1436
+ function queryGbpLocations2() {
1437
+ const payload = {};
1438
+ const getRequestOptions = queryGbpLocations(payload);
1439
+ const getUrl = (context) => {
1440
+ const { url } = getRequestOptions(context);
1441
+ return url;
1442
+ };
1443
+ return {
1444
+ getUrl,
1445
+ httpMethod: "GET",
1446
+ path: "/v1/locations/query",
1447
+ pathParams: {},
1448
+ __requestType: null,
1449
+ __originalRequestType: null,
1450
+ __responseType: null,
1451
+ __originalResponseType: null
1452
+ };
1453
+ }
1454
+ function queryGoogleLocations2() {
1455
+ const payload = {};
1456
+ const getRequestOptions = queryGoogleLocations(payload);
1457
+ const getUrl = (context) => {
1458
+ const { url } = getRequestOptions(context);
1459
+ return url;
1460
+ };
1461
+ return {
1462
+ getUrl,
1463
+ httpMethod: "GET",
1464
+ path: "/v1/locations/query-with-google",
1465
+ pathParams: {},
1466
+ __requestType: null,
1467
+ __originalRequestType: null,
1468
+ __responseType: null,
1469
+ __originalResponseType: null
1470
+ };
1471
+ }
1472
+ function getGoogleLocation2() {
1473
+ const payload = { locationId: ":locationId" };
1474
+ const getRequestOptions = getGoogleLocation(payload);
1475
+ const getUrl = (context) => {
1476
+ const { url } = getRequestOptions(context);
1477
+ return url;
1478
+ };
1479
+ return {
1480
+ getUrl,
1481
+ httpMethod: "GET",
1482
+ path: "/v1/locations/google/{locationId}",
1483
+ pathParams: { locationId: "locationId" },
1484
+ __requestType: null,
1485
+ __originalRequestType: null,
1486
+ __responseType: null,
1487
+ __originalResponseType: null
1488
+ };
1489
+ }
1490
+ function createLocation2() {
1491
+ const payload = {};
1492
+ const getRequestOptions = createLocation(payload);
1493
+ const getUrl = (context) => {
1494
+ const { url } = getRequestOptions(context);
1495
+ return url;
1496
+ };
1497
+ return {
1498
+ getUrl,
1499
+ httpMethod: "POST",
1500
+ path: "/v1/locations",
1501
+ pathParams: {},
1502
+ __requestType: null,
1503
+ __originalRequestType: null,
1504
+ __responseType: null,
1505
+ __originalResponseType: null
1506
+ };
1507
+ }
1508
+ function updateLocation2() {
1509
+ const payload = { location: { id: ":locationId" } };
1510
+ const getRequestOptions = updateLocation(payload);
1511
+ const getUrl = (context) => {
1512
+ const { url } = getRequestOptions(context);
1513
+ return url;
1514
+ };
1515
+ return {
1516
+ getUrl,
1517
+ httpMethod: "PATCH",
1518
+ path: "/v1/locations/{location.id}",
1519
+ pathParams: { locationId: "locationId" },
1520
+ __requestType: null,
1521
+ __originalRequestType: null,
1522
+ __responseType: null,
1523
+ __originalResponseType: null
1524
+ };
1525
+ }
1526
+ function deleteLocation2() {
1527
+ const payload = { locationId: ":locationId" };
1528
+ const getRequestOptions = deleteLocation(payload);
1529
+ const getUrl = (context) => {
1530
+ const { url } = getRequestOptions(context);
1531
+ return url;
1532
+ };
1533
+ return {
1534
+ getUrl,
1535
+ httpMethod: "DELETE",
1536
+ path: "/v1/locations/{locationId}",
1537
+ pathParams: { locationId: "locationId" },
1538
+ __requestType: null,
1539
+ __originalRequestType: null,
1540
+ __responseType: null,
1541
+ __originalResponseType: null
1542
+ };
1543
+ }
1544
+ function createGoogleLocation2() {
1545
+ const payload = {};
1546
+ const getRequestOptions = createGoogleLocation(payload);
1547
+ const getUrl = (context) => {
1548
+ const { url } = getRequestOptions(context);
1549
+ return url;
1550
+ };
1551
+ return {
1552
+ getUrl,
1553
+ httpMethod: "POST",
1554
+ path: "/v1/locations/google",
1555
+ pathParams: {},
1556
+ __requestType: null,
1557
+ __originalRequestType: null,
1558
+ __responseType: null,
1559
+ __originalResponseType: null
1560
+ };
1561
+ }
1562
+ function deleteGoogleLocation2() {
1563
+ const payload = { locationId: ":locationId" };
1564
+ const getRequestOptions = deleteGoogleLocation(payload);
1565
+ const getUrl = (context) => {
1566
+ const { url } = getRequestOptions(context);
1567
+ return url;
1568
+ };
1569
+ return {
1570
+ getUrl,
1571
+ httpMethod: "DELETE",
1572
+ path: "/v1/locations/google/{locationId}",
1573
+ pathParams: { locationId: "locationId" },
1574
+ __requestType: null,
1575
+ __originalRequestType: null,
1576
+ __responseType: null,
1577
+ __originalResponseType: null
1578
+ };
1579
+ }
1580
+ function updateGoogleLocation2() {
1581
+ const payload = { locationId: ":locationId" };
1582
+ const getRequestOptions = updateGoogleLocation(payload);
1583
+ const getUrl = (context) => {
1584
+ const { url } = getRequestOptions(context);
1585
+ return url;
1586
+ };
1587
+ return {
1588
+ getUrl,
1589
+ httpMethod: "PATCH",
1590
+ path: "/v1/locations/{locationId}/google",
1591
+ pathParams: { locationId: "locationId" },
1592
+ __requestType: null,
1593
+ __originalRequestType: null,
1594
+ __responseType: null,
1595
+ __originalResponseType: null
1596
+ };
1597
+ }
1598
+ function bulkCreateLocations2() {
1599
+ const payload = {};
1600
+ const getRequestOptions = bulkCreateLocations(payload);
1601
+ const getUrl = (context) => {
1602
+ const { url } = getRequestOptions(context);
1603
+ return url;
1604
+ };
1605
+ return {
1606
+ getUrl,
1607
+ httpMethod: "POST",
1608
+ path: "/v1/bulk/locations/create",
1609
+ pathParams: {},
1610
+ __requestType: null,
1611
+ __originalRequestType: null,
1612
+ __responseType: null,
1613
+ __originalResponseType: null
1614
+ };
1615
+ }
1616
+ function bulkDeleteLocations2() {
1617
+ const payload = {};
1618
+ const getRequestOptions = bulkDeleteLocations(payload);
1619
+ const getUrl = (context) => {
1620
+ const { url } = getRequestOptions(context);
1621
+ return url;
1622
+ };
1623
+ return {
1624
+ getUrl,
1625
+ httpMethod: "POST",
1626
+ path: "/v1/bulk/locations/delete",
1627
+ pathParams: {},
1628
+ __requestType: null,
1629
+ __originalRequestType: null,
1630
+ __responseType: null,
1631
+ __originalResponseType: null
1632
+ };
1633
+ }
1634
+ function listGbpAccounts2() {
1635
+ const payload = {};
1636
+ const getRequestOptions = listGbpAccounts(payload);
1637
+ const getUrl = (context) => {
1638
+ const { url } = getRequestOptions(context);
1639
+ return url;
1640
+ };
1641
+ return {
1642
+ getUrl,
1643
+ httpMethod: "GET",
1644
+ path: "/v1/accounts",
1645
+ pathParams: {},
1646
+ __requestType: null,
1647
+ __originalRequestType: null,
1648
+ __responseType: null,
1649
+ __originalResponseType: null
1650
+ };
1651
+ }
1652
+ function listUnimportedLocations2() {
1653
+ const payload = { accountId: ":accountId" };
1654
+ const getRequestOptions = listUnimportedLocations(payload);
1655
+ const getUrl = (context) => {
1656
+ const { url } = getRequestOptions(context);
1657
+ return url;
1658
+ };
1659
+ return {
1660
+ getUrl,
1661
+ httpMethod: "GET",
1662
+ path: "/v1/accounts/{accountId}/locations/unimported",
1663
+ pathParams: { accountId: "accountId" },
1664
+ __requestType: null,
1665
+ __originalRequestType: null,
1666
+ __responseType: null,
1667
+ __originalResponseType: null
1668
+ };
1669
+ }
1670
+ function listReviews2() {
1671
+ const payload = { locationId: ":locationId" };
1672
+ const getRequestOptions = listReviews(payload);
1673
+ const getUrl = (context) => {
1674
+ const { url } = getRequestOptions(context);
1675
+ return url;
1676
+ };
1677
+ return {
1678
+ getUrl,
1679
+ httpMethod: "GET",
1680
+ path: "/v1/locations/{locationId}/reviews",
1681
+ pathParams: { locationId: "locationId" },
1682
+ __requestType: null,
1683
+ __originalRequestType: null,
1684
+ __responseType: null,
1685
+ __originalResponseType: null
1686
+ };
1687
+ }
1688
+ function putReviewReply2() {
1689
+ const payload = { locationId: ":locationId", reviewId: ":reviewId" };
1690
+ const getRequestOptions = putReviewReply(payload);
1691
+ const getUrl = (context) => {
1692
+ const { url } = getRequestOptions(context);
1693
+ return url;
1694
+ };
1695
+ return {
1696
+ getUrl,
1697
+ httpMethod: "PUT",
1698
+ path: "/v1/locations/{locationId}/reviews/{reviewId}/reply",
1699
+ pathParams: { locationId: "locationId", reviewId: "reviewId" },
1700
+ __requestType: null,
1701
+ __originalRequestType: null,
1702
+ __responseType: null,
1703
+ __originalResponseType: null
1704
+ };
1705
+ }
1706
+ function deleteReviewReply2() {
1707
+ const payload = { locationId: ":locationId", reviewId: ":reviewId" };
1708
+ const getRequestOptions = deleteReviewReply(payload);
1709
+ const getUrl = (context) => {
1710
+ const { url } = getRequestOptions(context);
1711
+ return url;
1712
+ };
1713
+ return {
1714
+ getUrl,
1715
+ httpMethod: "DELETE",
1716
+ path: "/v1/locations/{locationId}/reviews/{reviewId}/reply",
1717
+ pathParams: { locationId: "locationId", reviewId: "reviewId" },
1718
+ __requestType: null,
1719
+ __originalRequestType: null,
1720
+ __responseType: null,
1721
+ __originalResponseType: null
1722
+ };
1723
+ }
1724
+ function listMedia2() {
1725
+ const payload = { locationId: ":locationId" };
1726
+ const getRequestOptions = listMedia(payload);
1727
+ const getUrl = (context) => {
1728
+ const { url } = getRequestOptions(context);
1729
+ return url;
1730
+ };
1731
+ return {
1732
+ getUrl,
1733
+ httpMethod: "GET",
1734
+ path: "/v1/locations/{locationId}/media",
1735
+ pathParams: { locationId: "locationId" },
1736
+ __requestType: null,
1737
+ __originalRequestType: null,
1738
+ __responseType: null,
1739
+ __originalResponseType: null
1740
+ };
1741
+ }
1742
+ function createMedia2() {
1743
+ const payload = { locationId: ":locationId" };
1744
+ const getRequestOptions = createMedia(payload);
1745
+ const getUrl = (context) => {
1746
+ const { url } = getRequestOptions(context);
1747
+ return url;
1748
+ };
1749
+ return {
1750
+ getUrl,
1751
+ httpMethod: "POST",
1752
+ path: "/v1/locations/{locationId}/media",
1753
+ pathParams: { locationId: "locationId" },
1754
+ __requestType: null,
1755
+ __originalRequestType: null,
1756
+ __responseType: null,
1757
+ __originalResponseType: null
1758
+ };
1759
+ }
1760
+ function deleteMedia2() {
1761
+ const payload = { locationId: ":locationId", mediaKey: ":mediaKey" };
1762
+ const getRequestOptions = deleteMedia(payload);
1763
+ const getUrl = (context) => {
1764
+ const { url } = getRequestOptions(context);
1765
+ return url;
1766
+ };
1767
+ return {
1768
+ getUrl,
1769
+ httpMethod: "DELETE",
1770
+ path: "/v1/locations/{locationId}/media/{mediaKey}",
1771
+ pathParams: { locationId: "locationId", mediaKey: "mediaKey" },
1772
+ __requestType: null,
1773
+ __originalRequestType: null,
1774
+ __responseType: null,
1775
+ __originalResponseType: null
1776
+ };
1777
+ }
1778
+ function updateLocationFoodMenus2() {
1779
+ const payload = { locationId: ":locationId" };
1780
+ const getRequestOptions = updateLocationFoodMenus(payload);
1781
+ const getUrl = (context) => {
1782
+ const { url } = getRequestOptions(context);
1783
+ return url;
1784
+ };
1785
+ return {
1786
+ getUrl,
1787
+ httpMethod: "PATCH",
1788
+ path: "/v1/locations/{locationId}/food-menus",
1789
+ pathParams: { locationId: "locationId" },
1790
+ __requestType: null,
1791
+ __originalRequestType: null,
1792
+ __responseType: null,
1793
+ __originalResponseType: null
1794
+ };
1795
+ }
1796
+ function updateLocationAttributes2() {
1797
+ const payload = { locationId: ":locationId" };
1798
+ const getRequestOptions = updateLocationAttributes(payload);
1799
+ const getUrl = (context) => {
1800
+ const { url } = getRequestOptions(context);
1801
+ return url;
1802
+ };
1803
+ return {
1804
+ getUrl,
1805
+ httpMethod: "PATCH",
1806
+ path: "/v1/locations/{locationId}/attributes",
1807
+ pathParams: { locationId: "locationId" },
1808
+ __requestType: null,
1809
+ __originalRequestType: null,
1810
+ __responseType: null,
1811
+ __originalResponseType: null
1812
+ };
1813
+ }
1814
+ function getLocationAttributes2() {
1815
+ const payload = { locationId: ":locationId" };
1816
+ const getRequestOptions = getLocationAttributes(payload);
1817
+ const getUrl = (context) => {
1818
+ const { url } = getRequestOptions(context);
1819
+ return url;
1820
+ };
1821
+ return {
1822
+ getUrl,
1823
+ httpMethod: "GET",
1824
+ path: "/v1/locations/{locationId}/attributes",
1825
+ pathParams: { locationId: "locationId" },
1826
+ __requestType: null,
1827
+ __originalRequestType: null,
1828
+ __responseType: null,
1829
+ __originalResponseType: null
1830
+ };
1831
+ }
1832
+ function getLocationLodging2() {
1833
+ const payload = { locationId: ":locationId" };
1834
+ const getRequestOptions = getLocationLodging(payload);
1835
+ const getUrl = (context) => {
1836
+ const { url } = getRequestOptions(context);
1837
+ return url;
1838
+ };
1839
+ return {
1840
+ getUrl,
1841
+ httpMethod: "GET",
1842
+ path: "/v1/locations/{locationId}/lodging",
1843
+ pathParams: { locationId: "locationId" },
1844
+ __requestType: null,
1845
+ __originalRequestType: null,
1846
+ __responseType: null,
1847
+ __originalResponseType: null
1848
+ };
1849
+ }
1850
+ function updateLocationLodging2() {
1851
+ const payload = { locationId: ":locationId" };
1852
+ const getRequestOptions = updateLocationLodging(payload);
1853
+ const getUrl = (context) => {
1854
+ const { url } = getRequestOptions(context);
1855
+ return url;
1856
+ };
1857
+ return {
1858
+ getUrl,
1859
+ httpMethod: "PATCH",
1860
+ path: "/v1/locations/{locationId}/lodging",
1861
+ pathParams: { locationId: "locationId" },
1862
+ __requestType: null,
1863
+ __originalRequestType: null,
1864
+ __responseType: null,
1865
+ __originalResponseType: null
1866
+ };
1867
+ }
1868
+ function listAttributeMetadata2() {
1869
+ const payload = {};
1870
+ const getRequestOptions = listAttributeMetadata(payload);
1871
+ const getUrl = (context) => {
1872
+ const { url } = getRequestOptions(context);
1873
+ return url;
1874
+ };
1875
+ return {
1876
+ getUrl,
1877
+ httpMethod: "GET",
1878
+ path: "/v1/attribute-metadata",
1879
+ pathParams: {},
1880
+ __requestType: null,
1881
+ __originalRequestType: null,
1882
+ __responseType: null,
1883
+ __originalResponseType: null
1884
+ };
1885
+ }
1886
+ function listCategories2() {
1887
+ const payload = {};
1888
+ const getRequestOptions = listCategories(payload);
1889
+ const getUrl = (context) => {
1890
+ const { url } = getRequestOptions(context);
1891
+ return url;
1892
+ };
1893
+ return {
1894
+ getUrl,
1895
+ httpMethod: "GET",
1896
+ path: "/v1/categories",
1897
+ pathParams: {},
1898
+ __requestType: null,
1899
+ __originalRequestType: null,
1900
+ __responseType: null,
1901
+ __originalResponseType: null
1902
+ };
1903
+ }
1904
+ function getVerificationOptions2() {
1905
+ const payload = { locationId: ":locationId" };
1906
+ const getRequestOptions = getVerificationOptions(payload);
1907
+ const getUrl = (context) => {
1908
+ const { url } = getRequestOptions(context);
1909
+ return url;
1910
+ };
1911
+ return {
1912
+ getUrl,
1913
+ httpMethod: "POST",
1914
+ path: "/v1/locations/{locationId}:getVerificationOptions",
1915
+ pathParams: { locationId: "locationId" },
1916
+ __requestType: null,
1917
+ __originalRequestType: null,
1918
+ __responseType: null,
1919
+ __originalResponseType: null
1920
+ };
1921
+ }
1922
+ function startVerification2() {
1923
+ const payload = { locationId: ":locationId" };
1924
+ const getRequestOptions = startVerification(payload);
1925
+ const getUrl = (context) => {
1926
+ const { url } = getRequestOptions(context);
1927
+ return url;
1928
+ };
1929
+ return {
1930
+ getUrl,
1931
+ httpMethod: "POST",
1932
+ path: "/v1/locations/{locationId}:startVerification",
1933
+ pathParams: { locationId: "locationId" },
1934
+ __requestType: null,
1935
+ __originalRequestType: null,
1936
+ __responseType: null,
1937
+ __originalResponseType: null
1938
+ };
1939
+ }
1940
+ function completeVerification2() {
1941
+ const payload = { locationId: ":locationId" };
1942
+ const getRequestOptions = completeVerification(payload);
1943
+ const getUrl = (context) => {
1944
+ const { url } = getRequestOptions(context);
1945
+ return url;
1946
+ };
1947
+ return {
1948
+ getUrl,
1949
+ httpMethod: "POST",
1950
+ path: "/v1/locations/{locationId}:completeVerification",
1951
+ pathParams: { locationId: "locationId" },
1952
+ __requestType: null,
1953
+ __originalRequestType: null,
1954
+ __responseType: null,
1955
+ __originalResponseType: null
1956
+ };
1957
+ }
1958
+ function getVoiceOfMerchant2() {
1959
+ const payload = { locationId: ":locationId" };
1960
+ const getRequestOptions = getVoiceOfMerchant(payload);
1961
+ const getUrl = (context) => {
1962
+ const { url } = getRequestOptions(context);
1963
+ return url;
1964
+ };
1965
+ return {
1966
+ getUrl,
1967
+ httpMethod: "GET",
1968
+ path: "/v1/locations/{locationId}/voice-of-merchant",
1969
+ pathParams: { locationId: "locationId" },
1970
+ __requestType: null,
1971
+ __originalRequestType: null,
1972
+ __responseType: null,
1973
+ __originalResponseType: null
1974
+ };
1975
+ }
1976
+ function getLocationInsights2() {
1977
+ const payload = { locationId: ":locationId" };
1978
+ const getRequestOptions = getLocationInsights(payload);
1979
+ const getUrl = (context) => {
1980
+ const { url } = getRequestOptions(context);
1981
+ return url;
1982
+ };
1983
+ return {
1984
+ getUrl,
1985
+ httpMethod: "GET",
1986
+ path: "/v1/locations/{locationId}/insights",
1987
+ pathParams: { locationId: "locationId" },
1988
+ __requestType: null,
1989
+ __originalRequestType: null,
1990
+ __responseType: null,
1991
+ __originalResponseType: null
1992
+ };
1993
+ }
1994
+ function listSearchKeywordImpressions2() {
1995
+ const payload = { locationId: ":locationId" };
1996
+ const getRequestOptions = listSearchKeywordImpressions(payload);
1997
+ const getUrl = (context) => {
1998
+ const { url } = getRequestOptions(context);
1999
+ return url;
2000
+ };
2001
+ return {
2002
+ getUrl,
2003
+ httpMethod: "GET",
2004
+ path: "/v1/locations/{locationId}/search-keyword-impressions",
2005
+ pathParams: { locationId: "locationId" },
2006
+ __requestType: null,
2007
+ __originalRequestType: null,
2008
+ __responseType: null,
2009
+ __originalResponseType: null
2010
+ };
2011
+ }
2012
+ function inviteAdminToLocation2() {
2013
+ const payload = { locationId: ":locationId" };
2014
+ const getRequestOptions = inviteAdminToLocation(payload);
2015
+ const getUrl = (context) => {
2016
+ const { url } = getRequestOptions(context);
2017
+ return url;
2018
+ };
2019
+ return {
2020
+ getUrl,
2021
+ httpMethod: "POST",
2022
+ path: "/v1/locations/{locationId}/invite-admin",
2023
+ pathParams: { locationId: "locationId" },
2024
+ __requestType: null,
2025
+ __originalRequestType: null,
2026
+ __responseType: null,
2027
+ __originalResponseType: null
2028
+ };
2029
+ }
2030
+ function getLocationAdmins2() {
2031
+ const payload = { locationId: ":locationId" };
2032
+ const getRequestOptions = getLocationAdmins(payload);
2033
+ const getUrl = (context) => {
2034
+ const { url } = getRequestOptions(context);
2035
+ return url;
2036
+ };
2037
+ return {
2038
+ getUrl,
2039
+ httpMethod: "GET",
2040
+ path: "/v1/locations/{locationId}/admins",
2041
+ pathParams: { locationId: "locationId" },
2042
+ __requestType: null,
2043
+ __originalRequestType: null,
2044
+ __responseType: null,
2045
+ __originalResponseType: null
2046
+ };
2047
+ }
2048
+ function getAddressSchemaByCountryCode2() {
2049
+ const payload = { countryCode: ":countryCode" };
2050
+ const getRequestOptions = getAddressSchemaByCountryCode(
2051
+ payload
2052
+ );
2053
+ const getUrl = (context) => {
2054
+ const { url } = getRequestOptions(context);
2055
+ return url;
2056
+ };
2057
+ return {
2058
+ getUrl,
2059
+ httpMethod: "GET",
2060
+ path: "/v1/address-schema/{countryCode}",
2061
+ pathParams: { countryCode: "countryCode" },
2062
+ __requestType: null,
2063
+ __originalRequestType: null,
2064
+ __responseType: null,
2065
+ __originalResponseType: null
2066
+ };
2067
+ }
2068
+ function suggestRegions2() {
2069
+ const payload = {};
2070
+ const getRequestOptions = suggestRegions(payload);
2071
+ const getUrl = (context) => {
2072
+ const { url } = getRequestOptions(context);
2073
+ return url;
2074
+ };
2075
+ return {
2076
+ getUrl,
2077
+ httpMethod: "POST",
2078
+ path: "/v1/regions/suggest",
2079
+ pathParams: {},
2080
+ __requestType: null,
2081
+ __originalRequestType: null,
2082
+ __responseType: null,
2083
+ __originalResponseType: null
2084
+ };
2085
+ }
2086
+ function suggestEstablishments2() {
2087
+ const payload = {};
2088
+ const getRequestOptions = suggestEstablishments(payload);
2089
+ const getUrl = (context) => {
2090
+ const { url } = getRequestOptions(context);
2091
+ return url;
2092
+ };
2093
+ return {
2094
+ getUrl,
2095
+ httpMethod: "POST",
2096
+ path: "/v1/establishments/suggest",
2097
+ pathParams: {},
2098
+ __requestType: null,
2099
+ __originalRequestType: null,
2100
+ __responseType: null,
2101
+ __originalResponseType: null
2102
+ };
2103
+ }
2104
+ function searchGoogleLocations2() {
2105
+ const payload = {};
2106
+ const getRequestOptions = searchGoogleLocations(payload);
2107
+ const getUrl = (context) => {
2108
+ const { url } = getRequestOptions(context);
2109
+ return url;
2110
+ };
2111
+ return {
2112
+ getUrl,
2113
+ httpMethod: "POST",
2114
+ path: "/v1/google-locations/search",
2115
+ pathParams: {},
2116
+ __requestType: null,
2117
+ __originalRequestType: null,
2118
+ __responseType: null,
2119
+ __originalResponseType: null
2120
+ };
2121
+ }
2122
+ export {
2123
+ AddressFieldType as AddressFieldTypeOriginal,
2124
+ AmenityException as AmenityExceptionOriginal,
2125
+ AttributeValueType as AttributeValueTypeOriginal,
2126
+ BreeamCertification as BreeamCertificationOriginal,
2127
+ BusinessType as BusinessTypeOriginal,
2128
+ CategoryView as CategoryViewOriginal,
2129
+ DailyMetric as DailyMetricOriginal,
2130
+ DayOfWeek as DayOfWeekOriginal,
2131
+ EcoCertificate as EcoCertificateOriginal,
2132
+ LeedCertification as LeedCertificationOriginal,
2133
+ MatchStatus as MatchStatusOriginal,
2134
+ MediaCategory as MediaCategoryOriginal,
2135
+ MediaFormat as MediaFormatOriginal,
2136
+ RecommendationReason as RecommendationReasonOriginal,
2137
+ ReviewSortOrder as ReviewSortOrderOriginal,
2138
+ Role as RoleOriginal,
2139
+ SortOrder as SortOrderOriginal,
2140
+ State as StateOriginal,
2141
+ Status as StatusOriginal,
2142
+ UnitTier as UnitTierOriginal,
2143
+ VerificationMethod as VerificationMethodOriginal,
2144
+ VerificationState as VerificationStateOriginal,
2145
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
2146
+ bulkCreateLocations2 as bulkCreateLocations,
2147
+ bulkDeleteLocations2 as bulkDeleteLocations,
2148
+ completeVerification2 as completeVerification,
2149
+ createGoogleLocation2 as createGoogleLocation,
2150
+ createLocation2 as createLocation,
2151
+ createMedia2 as createMedia,
2152
+ deleteGoogleLocation2 as deleteGoogleLocation,
2153
+ deleteLocation2 as deleteLocation,
2154
+ deleteMedia2 as deleteMedia,
2155
+ deleteReviewReply2 as deleteReviewReply,
2156
+ getAddressSchemaByCountryCode2 as getAddressSchemaByCountryCode,
2157
+ getGbpLocation2 as getGbpLocation,
2158
+ getGoogleLocation2 as getGoogleLocation,
2159
+ getLocationAdmins2 as getLocationAdmins,
2160
+ getLocationAttributes2 as getLocationAttributes,
2161
+ getLocationInsights2 as getLocationInsights,
2162
+ getLocationLodging2 as getLocationLodging,
2163
+ getVerificationOptions2 as getVerificationOptions,
2164
+ getVoiceOfMerchant2 as getVoiceOfMerchant,
2165
+ inviteAdminToLocation2 as inviteAdminToLocation,
2166
+ listAttributeMetadata2 as listAttributeMetadata,
2167
+ listCategories2 as listCategories,
2168
+ listGbpAccounts2 as listGbpAccounts,
2169
+ listMedia2 as listMedia,
2170
+ listReviews2 as listReviews,
2171
+ listSearchKeywordImpressions2 as listSearchKeywordImpressions,
2172
+ listUnimportedLocations2 as listUnimportedLocations,
2173
+ putReviewReply2 as putReviewReply,
2174
+ queryGbpLocations2 as queryGbpLocations,
2175
+ queryGoogleLocations2 as queryGoogleLocations,
2176
+ searchGoogleLocations2 as searchGoogleLocations,
2177
+ startVerification2 as startVerification,
2178
+ suggestEstablishments2 as suggestEstablishments,
2179
+ suggestRegions2 as suggestRegions,
2180
+ updateGoogleLocation2 as updateGoogleLocation,
2181
+ updateLocation2 as updateLocation,
2182
+ updateLocationAttributes2 as updateLocationAttributes,
2183
+ updateLocationFoodMenus2 as updateLocationFoodMenus,
2184
+ updateLocationLodging2 as updateLocationLodging
2185
+ };
2186
+ //# sourceMappingURL=meta.mjs.map