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