@wix/auto_sdk_bookings_resources 1.0.9 → 1.0.10

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 (126) hide show
  1. package/build/{internal/cjs/src/bookings-resources-v2-resource-resources.universal.d.ts → bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.mts} +127 -387
  2. package/build/{cjs/src/bookings-resources-v2-resource-resources.universal.d.ts → bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.ts} +127 -387
  3. package/build/{es/src/bookings-resources-v2-resource-resources.public.d.ts → index.d.mts} +38 -18
  4. package/build/{internal/cjs/src/bookings-resources-v2-resource-resources.public.d.ts → index.d.ts} +38 -18
  5. package/build/index.js +882 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +836 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/bookings-resources-v2-resource-resources.universal.d.ts → bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.mts} +127 -387
  10. package/build/{es/src/bookings-resources-v2-resource-resources.universal.d.ts → internal/bookings-resources-v2-resource-resources.universal-hYjNdpWu.d.ts} +127 -387
  11. package/build/{cjs/src/bookings-resources-v2-resource-resources.public.d.ts → internal/index.d.mts} +38 -18
  12. package/build/internal/{es/src/bookings-resources-v2-resource-resources.public.d.ts → index.d.ts} +38 -18
  13. package/build/internal/index.js +882 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +836 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/{es/src/bookings-resources-v2-resource-resources.types.d.ts → internal/meta.d.mts} +114 -351
  18. package/build/internal/{cjs/src/bookings-resources-v2-resource-resources.types.d.ts → meta.d.ts} +114 -351
  19. package/build/internal/meta.js +559 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +524 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{cjs/src/bookings-resources-v2-resource-resources.types.d.ts → meta.d.mts} +114 -351
  24. package/build/{internal/es/src/bookings-resources-v2-resource-resources.types.d.ts → meta.d.ts} +114 -351
  25. package/build/meta.js +559 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +524 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +0 -29
  40. package/build/cjs/src/bookings-resources-v2-resource-resources.context.js +0 -43
  41. package/build/cjs/src/bookings-resources-v2-resource-resources.context.js.map +0 -1
  42. package/build/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +0 -96
  43. package/build/cjs/src/bookings-resources-v2-resource-resources.http.js +0 -446
  44. package/build/cjs/src/bookings-resources-v2-resource-resources.http.js.map +0 -1
  45. package/build/cjs/src/bookings-resources-v2-resource-resources.meta.d.ts +0 -27
  46. package/build/cjs/src/bookings-resources-v2-resource-resources.meta.js +0 -199
  47. package/build/cjs/src/bookings-resources-v2-resource-resources.meta.js.map +0 -1
  48. package/build/cjs/src/bookings-resources-v2-resource-resources.public.js +0 -106
  49. package/build/cjs/src/bookings-resources-v2-resource-resources.public.js.map +0 -1
  50. package/build/cjs/src/bookings-resources-v2-resource-resources.types.js +0 -104
  51. package/build/cjs/src/bookings-resources-v2-resource-resources.types.js.map +0 -1
  52. package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js +0 -587
  53. package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +0 -1
  54. package/build/es/index.d.ts +0 -1
  55. package/build/es/index.js +0 -2
  56. package/build/es/index.js.map +0 -1
  57. package/build/es/index.typings.d.ts +0 -1
  58. package/build/es/index.typings.js +0 -2
  59. package/build/es/index.typings.js.map +0 -1
  60. package/build/es/meta.d.ts +0 -1
  61. package/build/es/meta.js +0 -2
  62. package/build/es/meta.js.map +0 -1
  63. package/build/es/package.json +0 -3
  64. package/build/es/src/bookings-resources-v2-resource-resources.context.d.ts +0 -29
  65. package/build/es/src/bookings-resources-v2-resource-resources.context.js +0 -29
  66. package/build/es/src/bookings-resources-v2-resource-resources.context.js.map +0 -1
  67. package/build/es/src/bookings-resources-v2-resource-resources.http.d.ts +0 -96
  68. package/build/es/src/bookings-resources-v2-resource-resources.http.js +0 -434
  69. package/build/es/src/bookings-resources-v2-resource-resources.http.js.map +0 -1
  70. package/build/es/src/bookings-resources-v2-resource-resources.meta.d.ts +0 -27
  71. package/build/es/src/bookings-resources-v2-resource-resources.meta.js +0 -164
  72. package/build/es/src/bookings-resources-v2-resource-resources.meta.js.map +0 -1
  73. package/build/es/src/bookings-resources-v2-resource-resources.public.js +0 -83
  74. package/build/es/src/bookings-resources-v2-resource-resources.public.js.map +0 -1
  75. package/build/es/src/bookings-resources-v2-resource-resources.types.js +0 -101
  76. package/build/es/src/bookings-resources-v2-resource-resources.types.js.map +0 -1
  77. package/build/es/src/bookings-resources-v2-resource-resources.universal.js +0 -552
  78. package/build/es/src/bookings-resources-v2-resource-resources.universal.js.map +0 -1
  79. package/build/internal/cjs/index.d.ts +0 -1
  80. package/build/internal/cjs/index.js +0 -18
  81. package/build/internal/cjs/index.js.map +0 -1
  82. package/build/internal/cjs/index.typings.d.ts +0 -1
  83. package/build/internal/cjs/index.typings.js +0 -18
  84. package/build/internal/cjs/index.typings.js.map +0 -1
  85. package/build/internal/cjs/meta.d.ts +0 -1
  86. package/build/internal/cjs/meta.js +0 -18
  87. package/build/internal/cjs/meta.js.map +0 -1
  88. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +0 -29
  89. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js +0 -43
  90. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js.map +0 -1
  91. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +0 -96
  92. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js +0 -446
  93. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js.map +0 -1
  94. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.d.ts +0 -27
  95. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.js +0 -199
  96. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.meta.js.map +0 -1
  97. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js +0 -106
  98. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js.map +0 -1
  99. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js +0 -104
  100. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js.map +0 -1
  101. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js +0 -587
  102. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +0 -1
  103. package/build/internal/es/index.d.ts +0 -1
  104. package/build/internal/es/index.js +0 -2
  105. package/build/internal/es/index.js.map +0 -1
  106. package/build/internal/es/index.typings.d.ts +0 -1
  107. package/build/internal/es/index.typings.js +0 -2
  108. package/build/internal/es/index.typings.js.map +0 -1
  109. package/build/internal/es/meta.d.ts +0 -1
  110. package/build/internal/es/meta.js +0 -2
  111. package/build/internal/es/meta.js.map +0 -1
  112. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.d.ts +0 -29
  113. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js +0 -29
  114. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js.map +0 -1
  115. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.d.ts +0 -96
  116. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js +0 -434
  117. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js.map +0 -1
  118. package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.d.ts +0 -27
  119. package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.js +0 -164
  120. package/build/internal/es/src/bookings-resources-v2-resource-resources.meta.js.map +0 -1
  121. package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js +0 -83
  122. package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js.map +0 -1
  123. package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js +0 -101
  124. package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js.map +0 -1
  125. package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js +0 -552
  126. package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js.map +0 -1
@@ -0,0 +1,524 @@
1
+ // src/bookings-resources-v2-resource-resources.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 resolveWixBookingsResourcesV2ResourcesServiceUrl(opts) {
11
+ const domainToMappings = {
12
+ "manage._base_domain_": [
13
+ {
14
+ srcPath: "/bookings/v2/resources",
15
+ destPath: "/v2/resources"
16
+ },
17
+ {
18
+ srcPath: "/_api/bookings/v2/resources",
19
+ destPath: "/v2/resources"
20
+ },
21
+ {
22
+ srcPath: "/v2/bulk/resources",
23
+ destPath: "/v2/bulk/resources"
24
+ }
25
+ ],
26
+ "api._api_base_domain_": [
27
+ {
28
+ srcPath: "/resources-2",
29
+ destPath: ""
30
+ }
31
+ ],
32
+ "www.wixapis.com": [
33
+ {
34
+ srcPath: "/bookings/v2/resources",
35
+ destPath: "/v2/resources"
36
+ },
37
+ {
38
+ srcPath: "/bookings/v2/bulk/resources",
39
+ destPath: "/v2/bulk/resources"
40
+ }
41
+ ],
42
+ "*.dev.wix-code.com": [
43
+ {
44
+ srcPath: "/_api/resources-2",
45
+ destPath: ""
46
+ }
47
+ ]
48
+ };
49
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
50
+ }
51
+ var PACKAGE_NAME = "@wix/auto_sdk_bookings_resources";
52
+ function createResource(payload) {
53
+ function __createResource({ host }) {
54
+ const serializedData = transformPaths(payload, [
55
+ {
56
+ transformFn: transformSDKTimestampToRESTTimestamp,
57
+ paths: [
58
+ { path: "resource.createdDate" },
59
+ { path: "resource.updatedDate" }
60
+ ]
61
+ }
62
+ ]);
63
+ const metadata = {
64
+ entityFqdn: "wix.bookings.resources.v2.resource",
65
+ method: "POST",
66
+ methodFqn: "wix.bookings.resources.v2.ResourcesService.CreateResource",
67
+ packageName: PACKAGE_NAME,
68
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
69
+ protoPath: "/v2/resources",
70
+ data: serializedData,
71
+ host
72
+ }),
73
+ data: serializedData,
74
+ transformResponse: (payload2) => transformPaths(payload2, [
75
+ {
76
+ transformFn: transformRESTTimestampToSDKTimestamp,
77
+ paths: [
78
+ { path: "resource.createdDate" },
79
+ { path: "resource.updatedDate" }
80
+ ]
81
+ }
82
+ ])
83
+ };
84
+ return metadata;
85
+ }
86
+ return __createResource;
87
+ }
88
+ function bulkCreateResources(payload) {
89
+ function __bulkCreateResources({ host }) {
90
+ const serializedData = transformPaths(payload, [
91
+ {
92
+ transformFn: transformSDKTimestampToRESTTimestamp,
93
+ paths: [
94
+ { path: "resources.createdDate" },
95
+ { path: "resources.updatedDate" }
96
+ ]
97
+ }
98
+ ]);
99
+ const metadata = {
100
+ entityFqdn: "wix.bookings.resources.v2.resource",
101
+ method: "POST",
102
+ methodFqn: "wix.bookings.resources.v2.ResourcesService.BulkCreateResources",
103
+ packageName: PACKAGE_NAME,
104
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
105
+ protoPath: "/v2/bulk/resources/create",
106
+ data: serializedData,
107
+ host
108
+ }),
109
+ data: serializedData,
110
+ transformResponse: (payload2) => transformPaths(payload2, [
111
+ {
112
+ transformFn: transformRESTTimestampToSDKTimestamp,
113
+ paths: [
114
+ { path: "results.item.createdDate" },
115
+ { path: "results.item.updatedDate" }
116
+ ]
117
+ }
118
+ ])
119
+ };
120
+ return metadata;
121
+ }
122
+ return __bulkCreateResources;
123
+ }
124
+ function getResource(payload) {
125
+ function __getResource({ host }) {
126
+ const metadata = {
127
+ entityFqdn: "wix.bookings.resources.v2.resource",
128
+ method: "GET",
129
+ methodFqn: "wix.bookings.resources.v2.ResourcesService.GetResource",
130
+ packageName: PACKAGE_NAME,
131
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
132
+ protoPath: "/v2/resources/{resourceId}",
133
+ data: payload,
134
+ host
135
+ }),
136
+ params: toURLSearchParams(payload),
137
+ transformResponse: (payload2) => transformPaths(payload2, [
138
+ {
139
+ transformFn: transformRESTTimestampToSDKTimestamp,
140
+ paths: [
141
+ { path: "resource.createdDate" },
142
+ { path: "resource.updatedDate" }
143
+ ]
144
+ }
145
+ ])
146
+ };
147
+ return metadata;
148
+ }
149
+ return __getResource;
150
+ }
151
+ function updateResource(payload) {
152
+ function __updateResource({ host }) {
153
+ const serializedData = transformPaths(payload, [
154
+ {
155
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
156
+ paths: [{ path: "mask" }]
157
+ },
158
+ {
159
+ transformFn: transformSDKTimestampToRESTTimestamp,
160
+ paths: [
161
+ { path: "resource.createdDate" },
162
+ { path: "resource.updatedDate" }
163
+ ]
164
+ }
165
+ ]);
166
+ const metadata = {
167
+ entityFqdn: "wix.bookings.resources.v2.resource",
168
+ method: "PATCH",
169
+ methodFqn: "wix.bookings.resources.v2.ResourcesService.UpdateResource",
170
+ packageName: PACKAGE_NAME,
171
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
172
+ protoPath: "/v2/resources/{resource.id}",
173
+ data: serializedData,
174
+ host
175
+ }),
176
+ data: serializedData,
177
+ transformResponse: (payload2) => transformPaths(payload2, [
178
+ {
179
+ transformFn: transformRESTTimestampToSDKTimestamp,
180
+ paths: [
181
+ { path: "resource.createdDate" },
182
+ { path: "resource.updatedDate" }
183
+ ]
184
+ }
185
+ ])
186
+ };
187
+ return metadata;
188
+ }
189
+ return __updateResource;
190
+ }
191
+ function deleteResource(payload) {
192
+ function __deleteResource({ host }) {
193
+ const metadata = {
194
+ entityFqdn: "wix.bookings.resources.v2.resource",
195
+ method: "DELETE",
196
+ methodFqn: "wix.bookings.resources.v2.ResourcesService.DeleteResource",
197
+ packageName: PACKAGE_NAME,
198
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
199
+ protoPath: "/v2/resources/{resourceId}",
200
+ data: payload,
201
+ host
202
+ }),
203
+ params: toURLSearchParams(payload)
204
+ };
205
+ return metadata;
206
+ }
207
+ return __deleteResource;
208
+ }
209
+ function bulkDeleteResources(payload) {
210
+ function __bulkDeleteResources({ host }) {
211
+ const metadata = {
212
+ entityFqdn: "wix.bookings.resources.v2.resource",
213
+ method: "POST",
214
+ methodFqn: "wix.bookings.resources.v2.ResourcesService.BulkDeleteResources",
215
+ packageName: PACKAGE_NAME,
216
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
217
+ protoPath: "/v2/bulk/resources/delete",
218
+ data: payload,
219
+ host
220
+ }),
221
+ data: payload,
222
+ transformResponse: (payload2) => transformPaths(payload2, [
223
+ {
224
+ transformFn: transformRESTTimestampToSDKTimestamp,
225
+ paths: [
226
+ { path: "results.item.createdDate" },
227
+ { path: "results.item.updatedDate" }
228
+ ]
229
+ }
230
+ ])
231
+ };
232
+ return metadata;
233
+ }
234
+ return __bulkDeleteResources;
235
+ }
236
+ function searchResources(payload) {
237
+ function __searchResources({ host }) {
238
+ const serializedData = transformPaths(payload, [
239
+ {
240
+ transformFn: transformSDKFloatToRESTFloat,
241
+ paths: [
242
+ { path: "search.aggregations.range.buckets.from" },
243
+ { path: "search.aggregations.range.buckets.to" },
244
+ {
245
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
246
+ },
247
+ {
248
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
249
+ }
250
+ ]
251
+ }
252
+ ]);
253
+ const metadata = {
254
+ entityFqdn: "wix.bookings.resources.v2.resource",
255
+ method: "POST",
256
+ methodFqn: "wix.bookings.resources.v2.ResourcesService.SearchResources",
257
+ packageName: PACKAGE_NAME,
258
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
259
+ protoPath: "/v2/resources/search",
260
+ data: serializedData,
261
+ host
262
+ }),
263
+ data: serializedData,
264
+ transformResponse: (payload2) => transformPaths(payload2, [
265
+ {
266
+ transformFn: transformRESTTimestampToSDKTimestamp,
267
+ paths: [
268
+ { path: "resources.createdDate" },
269
+ { path: "resources.updatedDate" }
270
+ ]
271
+ },
272
+ {
273
+ transformFn: transformRESTFloatToSDKFloat,
274
+ paths: [
275
+ { path: "aggregationData.results.ranges.results.from" },
276
+ { path: "aggregationData.results.ranges.results.to" },
277
+ {
278
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
279
+ },
280
+ {
281
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
282
+ },
283
+ {
284
+ path: "aggregationData.results.nested.results.results.*.range.from"
285
+ },
286
+ {
287
+ path: "aggregationData.results.nested.results.results.*.range.to"
288
+ },
289
+ { path: "aggregationData.results.scalar.value" },
290
+ {
291
+ path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
292
+ },
293
+ {
294
+ path: "aggregationData.results.nested.results.results.*.scalar.value"
295
+ }
296
+ ]
297
+ }
298
+ ])
299
+ };
300
+ return metadata;
301
+ }
302
+ return __searchResources;
303
+ }
304
+ function queryResources(payload) {
305
+ function __queryResources({ host }) {
306
+ const metadata = {
307
+ entityFqdn: "wix.bookings.resources.v2.resource",
308
+ method: "POST",
309
+ methodFqn: "wix.bookings.resources.v2.ResourcesService.QueryResources",
310
+ packageName: PACKAGE_NAME,
311
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
312
+ protoPath: "/v2/resources/query",
313
+ data: payload,
314
+ host
315
+ }),
316
+ data: payload,
317
+ transformResponse: (payload2) => transformPaths(payload2, [
318
+ {
319
+ transformFn: transformRESTTimestampToSDKTimestamp,
320
+ paths: [
321
+ { path: "resources.createdDate" },
322
+ { path: "resources.updatedDate" }
323
+ ]
324
+ }
325
+ ])
326
+ };
327
+ return metadata;
328
+ }
329
+ return __queryResources;
330
+ }
331
+ function countResources(payload) {
332
+ function __countResources({ host }) {
333
+ const metadata = {
334
+ entityFqdn: "wix.bookings.resources.v2.resource",
335
+ method: "POST",
336
+ methodFqn: "wix.bookings.resources.v2.ResourcesService.CountResources",
337
+ packageName: PACKAGE_NAME,
338
+ url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
339
+ protoPath: "/v2/resources/count",
340
+ data: payload,
341
+ host
342
+ }),
343
+ data: payload
344
+ };
345
+ return metadata;
346
+ }
347
+ return __countResources;
348
+ }
349
+
350
+ // src/bookings-resources-v2-resource-resources.meta.ts
351
+ function createResource2() {
352
+ const payload = {};
353
+ const getRequestOptions = createResource(payload);
354
+ const getUrl = (context) => {
355
+ const { url } = getRequestOptions(context);
356
+ return url;
357
+ };
358
+ return {
359
+ getUrl,
360
+ httpMethod: "POST",
361
+ path: "/v2/resources",
362
+ pathParams: {},
363
+ __requestType: null,
364
+ __originalRequestType: null,
365
+ __responseType: null,
366
+ __originalResponseType: null
367
+ };
368
+ }
369
+ function bulkCreateResources2() {
370
+ const payload = {};
371
+ const getRequestOptions = bulkCreateResources(payload);
372
+ const getUrl = (context) => {
373
+ const { url } = getRequestOptions(context);
374
+ return url;
375
+ };
376
+ return {
377
+ getUrl,
378
+ httpMethod: "POST",
379
+ path: "/v2/bulk/resources/create",
380
+ pathParams: {},
381
+ __requestType: null,
382
+ __originalRequestType: null,
383
+ __responseType: null,
384
+ __originalResponseType: null
385
+ };
386
+ }
387
+ function getResource2() {
388
+ const payload = { resourceId: ":resourceId" };
389
+ const getRequestOptions = getResource(payload);
390
+ const getUrl = (context) => {
391
+ const { url } = getRequestOptions(context);
392
+ return url;
393
+ };
394
+ return {
395
+ getUrl,
396
+ httpMethod: "GET",
397
+ path: "/v2/resources/{resourceId}",
398
+ pathParams: { resourceId: "resourceId" },
399
+ __requestType: null,
400
+ __originalRequestType: null,
401
+ __responseType: null,
402
+ __originalResponseType: null
403
+ };
404
+ }
405
+ function updateResource2() {
406
+ const payload = { resource: { id: ":resourceId" } };
407
+ const getRequestOptions = updateResource(payload);
408
+ const getUrl = (context) => {
409
+ const { url } = getRequestOptions(context);
410
+ return url;
411
+ };
412
+ return {
413
+ getUrl,
414
+ httpMethod: "PATCH",
415
+ path: "/v2/resources/{resource.id}",
416
+ pathParams: { resourceId: "resourceId" },
417
+ __requestType: null,
418
+ __originalRequestType: null,
419
+ __responseType: null,
420
+ __originalResponseType: null
421
+ };
422
+ }
423
+ function deleteResource2() {
424
+ const payload = { resourceId: ":resourceId" };
425
+ const getRequestOptions = deleteResource(payload);
426
+ const getUrl = (context) => {
427
+ const { url } = getRequestOptions(context);
428
+ return url;
429
+ };
430
+ return {
431
+ getUrl,
432
+ httpMethod: "DELETE",
433
+ path: "/v2/resources/{resourceId}",
434
+ pathParams: { resourceId: "resourceId" },
435
+ __requestType: null,
436
+ __originalRequestType: null,
437
+ __responseType: null,
438
+ __originalResponseType: null
439
+ };
440
+ }
441
+ function bulkDeleteResources2() {
442
+ const payload = {};
443
+ const getRequestOptions = bulkDeleteResources(payload);
444
+ const getUrl = (context) => {
445
+ const { url } = getRequestOptions(context);
446
+ return url;
447
+ };
448
+ return {
449
+ getUrl,
450
+ httpMethod: "POST",
451
+ path: "/v2/bulk/resources/delete",
452
+ pathParams: {},
453
+ __requestType: null,
454
+ __originalRequestType: null,
455
+ __responseType: null,
456
+ __originalResponseType: null
457
+ };
458
+ }
459
+ function searchResources2() {
460
+ const payload = {};
461
+ const getRequestOptions = searchResources(payload);
462
+ const getUrl = (context) => {
463
+ const { url } = getRequestOptions(context);
464
+ return url;
465
+ };
466
+ return {
467
+ getUrl,
468
+ httpMethod: "POST",
469
+ path: "/v2/resources/search",
470
+ pathParams: {},
471
+ __requestType: null,
472
+ __originalRequestType: null,
473
+ __responseType: null,
474
+ __originalResponseType: null
475
+ };
476
+ }
477
+ function queryResources2() {
478
+ const payload = {};
479
+ const getRequestOptions = queryResources(payload);
480
+ const getUrl = (context) => {
481
+ const { url } = getRequestOptions(context);
482
+ return url;
483
+ };
484
+ return {
485
+ getUrl,
486
+ httpMethod: "POST",
487
+ path: "/v2/resources/query",
488
+ pathParams: {},
489
+ __requestType: null,
490
+ __originalRequestType: null,
491
+ __responseType: null,
492
+ __originalResponseType: null
493
+ };
494
+ }
495
+ function countResources2() {
496
+ const payload = {};
497
+ const getRequestOptions = countResources(payload);
498
+ const getUrl = (context) => {
499
+ const { url } = getRequestOptions(context);
500
+ return url;
501
+ };
502
+ return {
503
+ getUrl,
504
+ httpMethod: "POST",
505
+ path: "/v2/resources/count",
506
+ pathParams: {},
507
+ __requestType: null,
508
+ __originalRequestType: null,
509
+ __responseType: null,
510
+ __originalResponseType: null
511
+ };
512
+ }
513
+ export {
514
+ bulkCreateResources2 as bulkCreateResources,
515
+ bulkDeleteResources2 as bulkDeleteResources,
516
+ countResources2 as countResources,
517
+ createResource2 as createResource,
518
+ deleteResource2 as deleteResource,
519
+ getResource2 as getResource,
520
+ queryResources2 as queryResources,
521
+ searchResources2 as searchResources,
522
+ updateResource2 as updateResource
523
+ };
524
+ //# sourceMappingURL=meta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bookings-resources-v2-resource-resources.http.ts","../../src/bookings-resources-v2-resource-resources.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBookingsResourcesV2ResourcesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/bookings/v2/resources',\n destPath: '/v2/resources',\n },\n {\n srcPath: '/_api/bookings/v2/resources',\n destPath: '/v2/resources',\n },\n {\n srcPath: '/v2/bulk/resources',\n destPath: '/v2/bulk/resources',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/resources-2',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/bookings/v2/resources',\n destPath: '/v2/resources',\n },\n {\n srcPath: '/bookings/v2/bulk/resources',\n destPath: '/v2/bulk/resources',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/resources-2',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_bookings_resources';\n\n/**\n * Creates a new resource.\n *\n *\n * ## Connected schedules\n *\n * A new event *schedule*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration))\n * is automatically created for the resource.\n *\n * ## Locations\n *\n * If you don't specify `locationOptions`, Wix Bookings automatically sets\n * `locationOptions.availableInAllLocations` to `true`.\n *\n * If you specify 1 business location ID in `locationOptions.specificLocationOptions.businessLocations`,\n * you must specify `locationOptions.specificLocationOptions.availableInBusinessLocations`\n * as `true`. Currently, you can specify only a single business location.\n */\nexport function createResource(payload: object): RequestOptionsFactory<any> {\n function __createResource({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.CreateResource',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createResource;\n}\n\n/**\n * Creates up to 50 resources.\n *\n *\n * Refer to *Create Resource*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/create-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/create-resource))\n * for more details.\n */\nexport function bulkCreateResources(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateResources({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resources.createdDate' },\n { path: 'resources.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.ResourcesService.BulkCreateResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/bulk/resources/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateResources;\n}\n\n/** Retrieves a resource. */\nexport function getResource(payload: object): RequestOptionsFactory<any> {\n function __getResource({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'GET' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.GetResource',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/{resourceId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getResource;\n}\n\n/**\n * Updates a resource.\n *\n *\n * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.\n * This ensures you're working with the latest service information and prevents unintended overwrites.\n */\nexport function updateResource(payload: object): RequestOptionsFactory<any> {\n function __updateResource({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'PATCH' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.UpdateResource',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/{resource.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateResource;\n}\n\n/**\n * Deletes a resource.\n *\n *\n * Deleting a resource cancels its event schedule and all its working hour\n * schedules that aren't shared with another resource. Learn more about\n * _how Bookings uses the Calendar APIs_\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration)).\n */\nexport function deleteResource(payload: object): RequestOptionsFactory<any> {\n function __deleteResource({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'DELETE' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.DeleteResource',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/{resourceId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteResource;\n}\n\n/**\n * Deletes multiple resources.\n *\n *\n * Refer to *Delete Resource*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/delete-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/delete-resource))\n * for more details.\n */\nexport function bulkDeleteResources(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteResources({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.ResourcesService.BulkDeleteResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/bulk/resources/delete',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkDeleteResources;\n}\n\n/**\n * Retrieves a list of resources matching the provided search criteria.\n *\n *\n * Refer to the *supported filters article*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting))\n * for a complete list of supported filters and sorting options.\n */\nexport function searchResources(payload: object): RequestOptionsFactory<any> {\n function __searchResources({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'search.aggregations.range.buckets.from' },\n { path: 'search.aggregations.range.buckets.to' },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',\n },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.SearchResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/search',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resources.createdDate' },\n { path: 'resources.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'aggregationData.results.ranges.results.from' },\n { path: 'aggregationData.results.ranges.results.to' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',\n },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.from',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.to',\n },\n { path: 'aggregationData.results.scalar.value' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.scalar.value',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchResources;\n}\n\n/**\n * Creates a query to retrieve a list of resources.\n *\n * The `queryResources()` function builds a query to retrieve a list of resources and returns a `ResourcesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/resources-query-builder/find) function.\n *\n * You can refine the query by chaining `ResourcesQueryBuilder` functions onto the query. `ResourcesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResources()` returns.\n *\n * `queryResources()` runs with the following `ResourcesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `queryResources()` are applied in the order they are called. For example, if you apply `ascending(\"typeId\")` and then `ascending(\"name\")`, the results are sorted first by the `\"typeId\"`, and then, if there are multiple results with the same `\"typeId\"`, the items are sorted by `\"name\"`.\n *\n * The following `ResourcesQueryBuilder` functions are supported for the `queryResources()` function. For a full description of the resource object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/resources-query-result/items) property in `ResourcesQueryResult`.\n */\nexport function queryResources(payload: object): RequestOptionsFactory<any> {\n function __queryResources({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.QueryResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resources.createdDate' },\n { path: 'resources.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryResources;\n}\n\n/**\n * Counts resources according to given criteria.\n *\n *\n * Refer to the *supported filters article*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting))\n * for a complete list of supported filters and sorting options.\n */\nexport function countResources(payload: object): RequestOptionsFactory<any> {\n function __countResources({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.CountResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countResources;\n}\n","import * as ambassadorWixBookingsResourcesV2Resource from './bookings-resources-v2-resource-resources.http.js';\nimport * as ambassadorWixBookingsResourcesV2ResourceTypes from './bookings-resources-v2-resource-resources.types.js';\nimport * as ambassadorWixBookingsResourcesV2ResourceUniversalTypes from './bookings-resources-v2-resource-resources.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createResource(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CreateResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.CreateResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CreateResourceResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.CreateResourceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.createResource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkCreateResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkCreateResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkCreateResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkCreateResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkCreateResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.bulkCreateResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/bulk/resources/create',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getResource(): __PublicMethodMetaInfo<\n 'GET',\n { resourceId: string },\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.GetResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.GetResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.GetResourceResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.GetResourceResponse\n> {\n const payload = { resourceId: ':resourceId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.getResource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/resources/{resourceId}',\n pathParams: { resourceId: 'resourceId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateResource(): __PublicMethodMetaInfo<\n 'PATCH',\n { resourceId: string },\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.UpdateResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.UpdateResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.UpdateResourceResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.UpdateResourceResponse\n> {\n const payload = { resource: { id: ':resourceId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.updateResource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/resources/{resource.id}',\n pathParams: { resourceId: 'resourceId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteResource(): __PublicMethodMetaInfo<\n 'DELETE',\n { resourceId: string },\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.DeleteResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.DeleteResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.DeleteResourceResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.DeleteResourceResponse\n> {\n const payload = { resourceId: ':resourceId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.deleteResource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/resources/{resourceId}',\n pathParams: { resourceId: 'resourceId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkDeleteResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkDeleteResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkDeleteResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkDeleteResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkDeleteResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.bulkDeleteResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/bulk/resources/delete',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function searchResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.SearchResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.SearchResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.SearchResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.SearchResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.searchResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/search',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.QueryResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.QueryResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.QueryResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.QueryResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.queryResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function countResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CountResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.CountResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CountResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.CountResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.countResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,iDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,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C,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","createResource","bulkCreateResources","getResource","updateResource","deleteResource","bulkDeleteResources","searchResources","queryResources","countResources"]}