@wix/auto_sdk_restaurants_sections 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/build/{cjs/src/restaurants-menus-v1-section-sections.public.d.ts → index.d.mts} +36 -19
  2. package/build/{internal/cjs/src/restaurants-menus-v1-section-sections.public.d.ts → index.d.ts} +36 -19
  3. package/build/index.js +1118 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +1080 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/{es/src/restaurants-menus-v1-section-sections.public.d.ts → index.d.mts} +36 -19
  8. package/build/{es/src/restaurants-menus-v1-section-sections.public.d.ts → internal/index.d.ts} +36 -19
  9. package/build/internal/index.js +1118 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +1080 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +357 -0
  14. package/build/internal/meta.d.ts +357 -0
  15. package/build/internal/meta.js +706 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +670 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/internal/{cjs/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.mts} +79 -307
  20. package/build/internal/{es/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.ts} +79 -307
  21. package/build/meta.d.mts +357 -0
  22. package/build/meta.d.ts +357 -0
  23. package/build/meta.js +706 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +670 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{cjs/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.mts} +79 -307
  28. package/build/{es/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.ts} +79 -307
  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/restaurants-menus-v1-section-sections.context.d.ts +0 -26
  40. package/build/cjs/src/restaurants-menus-v1-section-sections.context.js +0 -31
  41. package/build/cjs/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
  42. package/build/cjs/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
  43. package/build/cjs/src/restaurants-menus-v1-section-sections.http.js +0 -529
  44. package/build/cjs/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
  45. package/build/cjs/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
  46. package/build/cjs/src/restaurants-menus-v1-section-sections.meta.js +0 -218
  47. package/build/cjs/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
  48. package/build/cjs/src/restaurants-menus-v1-section-sections.public.js +0 -125
  49. package/build/cjs/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
  50. package/build/cjs/src/restaurants-menus-v1-section-sections.types.d.ts +0 -610
  51. package/build/cjs/src/restaurants-menus-v1-section-sections.types.js +0 -17
  52. package/build/cjs/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
  53. package/build/cjs/src/restaurants-menus-v1-section-sections.universal.js +0 -587
  54. package/build/cjs/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
  66. package/build/es/src/restaurants-menus-v1-section-sections.context.js +0 -26
  67. package/build/es/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
  68. package/build/es/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
  69. package/build/es/src/restaurants-menus-v1-section-sections.http.js +0 -516
  70. package/build/es/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
  71. package/build/es/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
  72. package/build/es/src/restaurants-menus-v1-section-sections.meta.js +0 -182
  73. package/build/es/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
  74. package/build/es/src/restaurants-menus-v1-section-sections.public.js +0 -110
  75. package/build/es/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
  76. package/build/es/src/restaurants-menus-v1-section-sections.types.d.ts +0 -610
  77. package/build/es/src/restaurants-menus-v1-section-sections.types.js +0 -14
  78. package/build/es/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
  79. package/build/es/src/restaurants-menus-v1-section-sections.universal.js +0 -551
  80. package/build/es/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
  91. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.js +0 -31
  92. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
  93. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
  94. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.js +0 -529
  95. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
  96. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
  97. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.js +0 -218
  98. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
  99. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.js +0 -125
  100. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
  101. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.d.ts +0 -610
  102. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.js +0 -17
  103. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
  104. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.js +0 -587
  105. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
  116. package/build/internal/es/src/restaurants-menus-v1-section-sections.context.js +0 -26
  117. package/build/internal/es/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
  118. package/build/internal/es/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
  119. package/build/internal/es/src/restaurants-menus-v1-section-sections.http.js +0 -516
  120. package/build/internal/es/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
  121. package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
  122. package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.js +0 -182
  123. package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
  124. package/build/internal/es/src/restaurants-menus-v1-section-sections.public.js +0 -110
  125. package/build/internal/es/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
  126. package/build/internal/es/src/restaurants-menus-v1-section-sections.types.d.ts +0 -610
  127. package/build/internal/es/src/restaurants-menus-v1-section-sections.types.js +0 -14
  128. package/build/internal/es/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
  129. package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.js +0 -551
  130. package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
package/build/meta.mjs ADDED
@@ -0,0 +1,670 @@
1
+ // src/restaurants-menus-v1-section-sections.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
4
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
5
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
6
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
7
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
8
+ function resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(opts) {
9
+ const domainToMappings = {
10
+ "manage._base_domain_": [
11
+ {
12
+ srcPath: "/_api/restaurants-menus-section",
13
+ destPath: ""
14
+ }
15
+ ],
16
+ _: [
17
+ {
18
+ srcPath: "/_api/restaurants-menus-section",
19
+ destPath: ""
20
+ },
21
+ {
22
+ srcPath: "/restaurants/menus/v1/sections",
23
+ destPath: "/v1/sections"
24
+ },
25
+ {
26
+ srcPath: "/restaurants/menus/v1/bulk/sections",
27
+ destPath: "/v1/bulk/sections"
28
+ }
29
+ ],
30
+ "editor._base_domain_": [
31
+ {
32
+ srcPath: "/_api/restaurants-menus-section",
33
+ destPath: ""
34
+ }
35
+ ],
36
+ "blocks._base_domain_": [
37
+ {
38
+ srcPath: "/_api/restaurants-menus-section",
39
+ destPath: ""
40
+ }
41
+ ],
42
+ "create.editorx": [
43
+ {
44
+ srcPath: "/_api/restaurants-menus-section",
45
+ destPath: ""
46
+ }
47
+ ],
48
+ "editor.wixapps.net": [
49
+ {
50
+ srcPath: "/_api/restaurants-menus-section",
51
+ destPath: ""
52
+ }
53
+ ],
54
+ "*.dev.wix-code.com": [
55
+ {
56
+ srcPath: "/_api/restaurants-menus-section",
57
+ destPath: ""
58
+ },
59
+ {
60
+ srcPath: "/restaurants/menus/v1/sections",
61
+ destPath: "/v1/sections"
62
+ },
63
+ {
64
+ srcPath: "/restaurants/menus/v1/bulk/sections",
65
+ destPath: "/v1/bulk/sections"
66
+ }
67
+ ],
68
+ "www._base_domain_": [
69
+ {
70
+ srcPath: "/_api/restaurants-menus-section",
71
+ destPath: ""
72
+ }
73
+ ],
74
+ "api._api_base_domain_": [
75
+ {
76
+ srcPath: "/restaurants-menus-section",
77
+ destPath: ""
78
+ }
79
+ ],
80
+ "www.wixapis.com": [
81
+ {
82
+ srcPath: "/restaurants/menus-section",
83
+ destPath: ""
84
+ },
85
+ {
86
+ srcPath: "/restaurants/menus/v1/bulk/sections",
87
+ destPath: "/v1/bulk/sections"
88
+ },
89
+ {
90
+ srcPath: "/restaurants/menus/v1/sections",
91
+ destPath: "/v1/sections"
92
+ }
93
+ ]
94
+ };
95
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
96
+ }
97
+ function resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl(opts) {
98
+ const domainToMappings = {
99
+ "manage._base_domain_": [
100
+ {
101
+ srcPath: "/_api/restaurants-menus-section",
102
+ destPath: ""
103
+ }
104
+ ],
105
+ _: [
106
+ {
107
+ srcPath: "/_api/restaurants-menus-section",
108
+ destPath: ""
109
+ },
110
+ {
111
+ srcPath: "/restaurants/menus/v1/sections",
112
+ destPath: "/v1/sections"
113
+ },
114
+ {
115
+ srcPath: "/restaurants/menus/v1/bulk/sections",
116
+ destPath: "/v1/bulk/sections"
117
+ }
118
+ ],
119
+ "editor._base_domain_": [
120
+ {
121
+ srcPath: "/_api/restaurants-menus-section",
122
+ destPath: ""
123
+ }
124
+ ],
125
+ "blocks._base_domain_": [
126
+ {
127
+ srcPath: "/_api/restaurants-menus-section",
128
+ destPath: ""
129
+ }
130
+ ],
131
+ "create.editorx": [
132
+ {
133
+ srcPath: "/_api/restaurants-menus-section",
134
+ destPath: ""
135
+ }
136
+ ],
137
+ "editor.wixapps.net": [
138
+ {
139
+ srcPath: "/_api/restaurants-menus-section",
140
+ destPath: ""
141
+ }
142
+ ],
143
+ "*.dev.wix-code.com": [
144
+ {
145
+ srcPath: "/_api/restaurants-menus-section",
146
+ destPath: ""
147
+ },
148
+ {
149
+ srcPath: "/restaurants/menus/v1/sections",
150
+ destPath: "/v1/sections"
151
+ },
152
+ {
153
+ srcPath: "/restaurants/menus/v1/bulk/sections",
154
+ destPath: "/v1/bulk/sections"
155
+ }
156
+ ],
157
+ "www._base_domain_": [
158
+ {
159
+ srcPath: "/_api/restaurants-menus-section",
160
+ destPath: ""
161
+ }
162
+ ],
163
+ "api._api_base_domain_": [
164
+ {
165
+ srcPath: "/restaurants-menus-section",
166
+ destPath: ""
167
+ }
168
+ ],
169
+ "www.wixapis.com": [
170
+ {
171
+ srcPath: "/restaurants/menus-section",
172
+ destPath: ""
173
+ },
174
+ {
175
+ srcPath: "/restaurants/menus/v1/bulk/sections",
176
+ destPath: "/v1/bulk/sections"
177
+ },
178
+ {
179
+ srcPath: "/restaurants/menus/v1/sections",
180
+ destPath: "/v1/sections"
181
+ }
182
+ ]
183
+ };
184
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
185
+ }
186
+ var PACKAGE_NAME = "@wix/auto_sdk_restaurants_sections";
187
+ function duplicateSection(payload) {
188
+ function __duplicateSection({ host }) {
189
+ const metadata = {
190
+ entityFqdn: "wix.restaurants.menus.v1.section",
191
+ method: "POST",
192
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.restaurants_duplicate_section.RestaurantsDuplicateSection.DuplicateSection",
193
+ packageName: PACKAGE_NAME,
194
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl(
195
+ { protoPath: "/v1/sections/{id}/duplicate", data: payload, host }
196
+ ),
197
+ data: payload
198
+ };
199
+ return metadata;
200
+ }
201
+ return __duplicateSection;
202
+ }
203
+ function createSection(payload) {
204
+ function __createSection({ host }) {
205
+ const serializedData = transformPaths(payload, [
206
+ {
207
+ transformFn: transformSDKTimestampToRESTTimestamp,
208
+ paths: [
209
+ { path: "section.createdDate" },
210
+ { path: "section.updatedDate" },
211
+ { path: "section.image.urlExpirationDate" },
212
+ { path: "section.additionalImages.urlExpirationDate" }
213
+ ]
214
+ }
215
+ ]);
216
+ const metadata = {
217
+ entityFqdn: "wix.restaurants.menus.v1.section",
218
+ method: "POST",
219
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.CreateSection",
220
+ packageName: PACKAGE_NAME,
221
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
222
+ { protoPath: "/v1/sections", data: serializedData, host }
223
+ ),
224
+ data: serializedData,
225
+ transformResponse: (payload2) => transformPaths(payload2, [
226
+ {
227
+ transformFn: transformRESTTimestampToSDKTimestamp,
228
+ paths: [
229
+ { path: "section.createdDate" },
230
+ { path: "section.updatedDate" },
231
+ { path: "section.image.urlExpirationDate" },
232
+ { path: "section.additionalImages.urlExpirationDate" }
233
+ ]
234
+ }
235
+ ])
236
+ };
237
+ return metadata;
238
+ }
239
+ return __createSection;
240
+ }
241
+ function bulkCreateSections(payload) {
242
+ function __bulkCreateSections({ host }) {
243
+ const serializedData = transformPaths(payload, [
244
+ {
245
+ transformFn: transformSDKTimestampToRESTTimestamp,
246
+ paths: [
247
+ { path: "sections.createdDate" },
248
+ { path: "sections.updatedDate" },
249
+ { path: "sections.image.urlExpirationDate" },
250
+ { path: "sections.additionalImages.urlExpirationDate" }
251
+ ]
252
+ }
253
+ ]);
254
+ const metadata = {
255
+ entityFqdn: "wix.restaurants.menus.v1.section",
256
+ method: "POST",
257
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkCreateSections",
258
+ packageName: PACKAGE_NAME,
259
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
260
+ { protoPath: "/v1/bulk/sections/create", data: serializedData, host }
261
+ ),
262
+ data: serializedData,
263
+ transformResponse: (payload2) => transformPaths(payload2, [
264
+ {
265
+ transformFn: transformRESTTimestampToSDKTimestamp,
266
+ paths: [
267
+ { path: "results.item.createdDate" },
268
+ { path: "results.item.updatedDate" },
269
+ { path: "results.item.image.urlExpirationDate" },
270
+ { path: "results.item.additionalImages.urlExpirationDate" }
271
+ ]
272
+ }
273
+ ])
274
+ };
275
+ return metadata;
276
+ }
277
+ return __bulkCreateSections;
278
+ }
279
+ function getSection(payload) {
280
+ function __getSection({ host }) {
281
+ const metadata = {
282
+ entityFqdn: "wix.restaurants.menus.v1.section",
283
+ method: "GET",
284
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.GetSection",
285
+ packageName: PACKAGE_NAME,
286
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
287
+ { protoPath: "/v1/sections/{sectionId}", data: payload, host }
288
+ ),
289
+ params: toURLSearchParams(payload),
290
+ transformResponse: (payload2) => transformPaths(payload2, [
291
+ {
292
+ transformFn: transformRESTTimestampToSDKTimestamp,
293
+ paths: [
294
+ { path: "section.createdDate" },
295
+ { path: "section.updatedDate" },
296
+ { path: "section.image.urlExpirationDate" },
297
+ { path: "section.additionalImages.urlExpirationDate" }
298
+ ]
299
+ }
300
+ ])
301
+ };
302
+ return metadata;
303
+ }
304
+ return __getSection;
305
+ }
306
+ function listSections(payload) {
307
+ function __listSections({ host }) {
308
+ const metadata = {
309
+ entityFqdn: "wix.restaurants.menus.v1.section",
310
+ method: "GET",
311
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.ListSections",
312
+ packageName: PACKAGE_NAME,
313
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
314
+ { protoPath: "/v1/sections", data: payload, host }
315
+ ),
316
+ params: toURLSearchParams(payload),
317
+ transformResponse: (payload2) => transformPaths(payload2, [
318
+ {
319
+ transformFn: transformRESTTimestampToSDKTimestamp,
320
+ paths: [
321
+ { path: "sections.createdDate" },
322
+ { path: "sections.updatedDate" },
323
+ { path: "sections.image.urlExpirationDate" },
324
+ { path: "sections.additionalImages.urlExpirationDate" }
325
+ ]
326
+ }
327
+ ])
328
+ };
329
+ return metadata;
330
+ }
331
+ return __listSections;
332
+ }
333
+ function querySections(payload) {
334
+ function __querySections({ host }) {
335
+ const metadata = {
336
+ entityFqdn: "wix.restaurants.menus.v1.section",
337
+ method: "POST",
338
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.QuerySections",
339
+ packageName: PACKAGE_NAME,
340
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
341
+ { protoPath: "/v1/sections/query", data: payload, host }
342
+ ),
343
+ data: payload,
344
+ transformResponse: (payload2) => transformPaths(payload2, [
345
+ {
346
+ transformFn: transformRESTTimestampToSDKTimestamp,
347
+ paths: [
348
+ { path: "sections.createdDate" },
349
+ { path: "sections.updatedDate" },
350
+ { path: "sections.image.urlExpirationDate" },
351
+ { path: "sections.additionalImages.urlExpirationDate" }
352
+ ]
353
+ }
354
+ ])
355
+ };
356
+ return metadata;
357
+ }
358
+ return __querySections;
359
+ }
360
+ function updateSection(payload) {
361
+ function __updateSection({ host }) {
362
+ const serializedData = transformPaths(payload, [
363
+ {
364
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
365
+ paths: [{ path: "mask" }]
366
+ },
367
+ {
368
+ transformFn: transformSDKTimestampToRESTTimestamp,
369
+ paths: [
370
+ { path: "section.createdDate" },
371
+ { path: "section.updatedDate" },
372
+ { path: "section.image.urlExpirationDate" },
373
+ { path: "section.additionalImages.urlExpirationDate" }
374
+ ]
375
+ }
376
+ ]);
377
+ const metadata = {
378
+ entityFqdn: "wix.restaurants.menus.v1.section",
379
+ method: "PATCH",
380
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.UpdateSection",
381
+ packageName: PACKAGE_NAME,
382
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
383
+ { protoPath: "/v1/sections/{section.id}", data: serializedData, host }
384
+ ),
385
+ data: serializedData,
386
+ transformResponse: (payload2) => transformPaths(payload2, [
387
+ {
388
+ transformFn: transformRESTTimestampToSDKTimestamp,
389
+ paths: [
390
+ { path: "section.createdDate" },
391
+ { path: "section.updatedDate" },
392
+ { path: "section.image.urlExpirationDate" },
393
+ { path: "section.additionalImages.urlExpirationDate" }
394
+ ]
395
+ }
396
+ ])
397
+ };
398
+ return metadata;
399
+ }
400
+ return __updateSection;
401
+ }
402
+ function bulkUpdateSection(payload) {
403
+ function __bulkUpdateSection({ host }) {
404
+ const serializedData = transformPaths(payload, [
405
+ {
406
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
407
+ paths: [{ path: "sections.mask" }]
408
+ },
409
+ {
410
+ transformFn: transformSDKTimestampToRESTTimestamp,
411
+ paths: [
412
+ { path: "sections.section.createdDate" },
413
+ { path: "sections.section.updatedDate" },
414
+ { path: "sections.section.image.urlExpirationDate" },
415
+ { path: "sections.section.additionalImages.urlExpirationDate" }
416
+ ]
417
+ }
418
+ ]);
419
+ const metadata = {
420
+ entityFqdn: "wix.restaurants.menus.v1.section",
421
+ method: "POST",
422
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkUpdateSection",
423
+ packageName: PACKAGE_NAME,
424
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
425
+ { protoPath: "/v1/bulk/sections/update", data: serializedData, host }
426
+ ),
427
+ data: serializedData,
428
+ transformResponse: (payload2) => transformPaths(payload2, [
429
+ {
430
+ transformFn: transformRESTTimestampToSDKTimestamp,
431
+ paths: [
432
+ { path: "results.section.createdDate" },
433
+ { path: "results.section.updatedDate" },
434
+ { path: "results.section.image.urlExpirationDate" },
435
+ { path: "results.section.additionalImages.urlExpirationDate" }
436
+ ]
437
+ }
438
+ ])
439
+ };
440
+ return metadata;
441
+ }
442
+ return __bulkUpdateSection;
443
+ }
444
+ function deleteSection(payload) {
445
+ function __deleteSection({ host }) {
446
+ const metadata = {
447
+ entityFqdn: "wix.restaurants.menus.v1.section",
448
+ method: "DELETE",
449
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.DeleteSection",
450
+ packageName: PACKAGE_NAME,
451
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
452
+ { protoPath: "/v1/sections/{sectionId}", data: payload, host }
453
+ ),
454
+ params: toURLSearchParams(payload)
455
+ };
456
+ return metadata;
457
+ }
458
+ return __deleteSection;
459
+ }
460
+ function bulkDeleteSections(payload) {
461
+ function __bulkDeleteSections({ host }) {
462
+ const metadata = {
463
+ entityFqdn: "wix.restaurants.menus.v1.section",
464
+ method: "DELETE",
465
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkDeleteSections",
466
+ packageName: PACKAGE_NAME,
467
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
468
+ { protoPath: "/v1/bulk/sections/delete", data: payload, host }
469
+ ),
470
+ params: toURLSearchParams(payload)
471
+ };
472
+ return metadata;
473
+ }
474
+ return __bulkDeleteSections;
475
+ }
476
+
477
+ // src/restaurants-menus-v1-section-sections.meta.ts
478
+ function duplicateSection2() {
479
+ const payload = { id: ":id" };
480
+ const getRequestOptions = duplicateSection(payload);
481
+ const getUrl = (context) => {
482
+ const { url } = getRequestOptions(context);
483
+ return url;
484
+ };
485
+ return {
486
+ getUrl,
487
+ httpMethod: "POST",
488
+ path: "/v1/sections/{id}/duplicate",
489
+ pathParams: { id: "id" },
490
+ __requestType: null,
491
+ __originalRequestType: null,
492
+ __responseType: null,
493
+ __originalResponseType: null
494
+ };
495
+ }
496
+ function createSection2() {
497
+ const payload = {};
498
+ const getRequestOptions = createSection(payload);
499
+ const getUrl = (context) => {
500
+ const { url } = getRequestOptions(context);
501
+ return url;
502
+ };
503
+ return {
504
+ getUrl,
505
+ httpMethod: "POST",
506
+ path: "/v1/sections",
507
+ pathParams: {},
508
+ __requestType: null,
509
+ __originalRequestType: null,
510
+ __responseType: null,
511
+ __originalResponseType: null
512
+ };
513
+ }
514
+ function bulkCreateSections2() {
515
+ const payload = {};
516
+ const getRequestOptions = bulkCreateSections(payload);
517
+ const getUrl = (context) => {
518
+ const { url } = getRequestOptions(context);
519
+ return url;
520
+ };
521
+ return {
522
+ getUrl,
523
+ httpMethod: "POST",
524
+ path: "/v1/bulk/sections/create",
525
+ pathParams: {},
526
+ __requestType: null,
527
+ __originalRequestType: null,
528
+ __responseType: null,
529
+ __originalResponseType: null
530
+ };
531
+ }
532
+ function getSection2() {
533
+ const payload = { sectionId: ":sectionId" };
534
+ const getRequestOptions = getSection(payload);
535
+ const getUrl = (context) => {
536
+ const { url } = getRequestOptions(context);
537
+ return url;
538
+ };
539
+ return {
540
+ getUrl,
541
+ httpMethod: "GET",
542
+ path: "/v1/sections/{sectionId}",
543
+ pathParams: { sectionId: "sectionId" },
544
+ __requestType: null,
545
+ __originalRequestType: null,
546
+ __responseType: null,
547
+ __originalResponseType: null
548
+ };
549
+ }
550
+ function listSections2() {
551
+ const payload = {};
552
+ const getRequestOptions = listSections(payload);
553
+ const getUrl = (context) => {
554
+ const { url } = getRequestOptions(context);
555
+ return url;
556
+ };
557
+ return {
558
+ getUrl,
559
+ httpMethod: "GET",
560
+ path: "/v1/sections",
561
+ pathParams: {},
562
+ __requestType: null,
563
+ __originalRequestType: null,
564
+ __responseType: null,
565
+ __originalResponseType: null
566
+ };
567
+ }
568
+ function querySections2() {
569
+ const payload = {};
570
+ const getRequestOptions = querySections(payload);
571
+ const getUrl = (context) => {
572
+ const { url } = getRequestOptions(context);
573
+ return url;
574
+ };
575
+ return {
576
+ getUrl,
577
+ httpMethod: "POST",
578
+ path: "/v1/sections/query",
579
+ pathParams: {},
580
+ __requestType: null,
581
+ __originalRequestType: null,
582
+ __responseType: null,
583
+ __originalResponseType: null
584
+ };
585
+ }
586
+ function updateSection2() {
587
+ const payload = { section: { id: ":sectionId" } };
588
+ const getRequestOptions = updateSection(payload);
589
+ const getUrl = (context) => {
590
+ const { url } = getRequestOptions(context);
591
+ return url;
592
+ };
593
+ return {
594
+ getUrl,
595
+ httpMethod: "PATCH",
596
+ path: "/v1/sections/{section.id}",
597
+ pathParams: { sectionId: "sectionId" },
598
+ __requestType: null,
599
+ __originalRequestType: null,
600
+ __responseType: null,
601
+ __originalResponseType: null
602
+ };
603
+ }
604
+ function bulkUpdateSection2() {
605
+ const payload = {};
606
+ const getRequestOptions = bulkUpdateSection(payload);
607
+ const getUrl = (context) => {
608
+ const { url } = getRequestOptions(context);
609
+ return url;
610
+ };
611
+ return {
612
+ getUrl,
613
+ httpMethod: "POST",
614
+ path: "/v1/bulk/sections/update",
615
+ pathParams: {},
616
+ __requestType: null,
617
+ __originalRequestType: null,
618
+ __responseType: null,
619
+ __originalResponseType: null
620
+ };
621
+ }
622
+ function deleteSection2() {
623
+ const payload = { sectionId: ":sectionId" };
624
+ const getRequestOptions = deleteSection(payload);
625
+ const getUrl = (context) => {
626
+ const { url } = getRequestOptions(context);
627
+ return url;
628
+ };
629
+ return {
630
+ getUrl,
631
+ httpMethod: "DELETE",
632
+ path: "/v1/sections/{sectionId}",
633
+ pathParams: { sectionId: "sectionId" },
634
+ __requestType: null,
635
+ __originalRequestType: null,
636
+ __responseType: null,
637
+ __originalResponseType: null
638
+ };
639
+ }
640
+ function bulkDeleteSections2() {
641
+ const payload = {};
642
+ const getRequestOptions = bulkDeleteSections(payload);
643
+ const getUrl = (context) => {
644
+ const { url } = getRequestOptions(context);
645
+ return url;
646
+ };
647
+ return {
648
+ getUrl,
649
+ httpMethod: "DELETE",
650
+ path: "/v1/bulk/sections/delete",
651
+ pathParams: {},
652
+ __requestType: null,
653
+ __originalRequestType: null,
654
+ __responseType: null,
655
+ __originalResponseType: null
656
+ };
657
+ }
658
+ export {
659
+ bulkCreateSections2 as bulkCreateSections,
660
+ bulkDeleteSections2 as bulkDeleteSections,
661
+ bulkUpdateSection2 as bulkUpdateSection,
662
+ createSection2 as createSection,
663
+ deleteSection2 as deleteSection,
664
+ duplicateSection2 as duplicateSection,
665
+ getSection2 as getSection,
666
+ listSections2 as listSections,
667
+ querySections2 as querySections,
668
+ updateSection2 as updateSection
669
+ };
670
+ //# sourceMappingURL=meta.mjs.map