@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/index.js ADDED
@@ -0,0 +1,1118 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ SortOrder: () => SortOrder,
24
+ WebhookIdentityType: () => WebhookIdentityType,
25
+ bulkCreateSections: () => bulkCreateSections4,
26
+ bulkDeleteSections: () => bulkDeleteSections4,
27
+ bulkUpdateSection: () => bulkUpdateSection4,
28
+ createSection: () => createSection4,
29
+ deleteSection: () => deleteSection4,
30
+ duplicateSection: () => duplicateSection4,
31
+ getSection: () => getSection4,
32
+ listSections: () => listSections4,
33
+ onSectionCreated: () => onSectionCreated2,
34
+ onSectionDeleted: () => onSectionDeleted2,
35
+ onSectionUpdated: () => onSectionUpdated2,
36
+ querySections: () => querySections4,
37
+ updateSection: () => updateSection4
38
+ });
39
+ module.exports = __toCommonJS(index_exports);
40
+
41
+ // src/restaurants-menus-v1-section-sections.public.ts
42
+ var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
43
+ var import_image3 = require("@wix/sdk-runtime/transformations/image");
44
+ var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
45
+ var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
46
+ var import_sdk_types = require("@wix/sdk-types");
47
+
48
+ // src/restaurants-menus-v1-section-sections.universal.ts
49
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
50
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
51
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
52
+
53
+ // src/restaurants-menus-v1-section-sections.http.ts
54
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
55
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
56
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
57
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
58
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
59
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
60
+ function resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(opts) {
61
+ const domainToMappings = {
62
+ "manage._base_domain_": [
63
+ {
64
+ srcPath: "/_api/restaurants-menus-section",
65
+ destPath: ""
66
+ }
67
+ ],
68
+ _: [
69
+ {
70
+ srcPath: "/_api/restaurants-menus-section",
71
+ destPath: ""
72
+ },
73
+ {
74
+ srcPath: "/restaurants/menus/v1/sections",
75
+ destPath: "/v1/sections"
76
+ },
77
+ {
78
+ srcPath: "/restaurants/menus/v1/bulk/sections",
79
+ destPath: "/v1/bulk/sections"
80
+ }
81
+ ],
82
+ "editor._base_domain_": [
83
+ {
84
+ srcPath: "/_api/restaurants-menus-section",
85
+ destPath: ""
86
+ }
87
+ ],
88
+ "blocks._base_domain_": [
89
+ {
90
+ srcPath: "/_api/restaurants-menus-section",
91
+ destPath: ""
92
+ }
93
+ ],
94
+ "create.editorx": [
95
+ {
96
+ srcPath: "/_api/restaurants-menus-section",
97
+ destPath: ""
98
+ }
99
+ ],
100
+ "editor.wixapps.net": [
101
+ {
102
+ srcPath: "/_api/restaurants-menus-section",
103
+ destPath: ""
104
+ }
105
+ ],
106
+ "*.dev.wix-code.com": [
107
+ {
108
+ srcPath: "/_api/restaurants-menus-section",
109
+ destPath: ""
110
+ },
111
+ {
112
+ srcPath: "/restaurants/menus/v1/sections",
113
+ destPath: "/v1/sections"
114
+ },
115
+ {
116
+ srcPath: "/restaurants/menus/v1/bulk/sections",
117
+ destPath: "/v1/bulk/sections"
118
+ }
119
+ ],
120
+ "www._base_domain_": [
121
+ {
122
+ srcPath: "/_api/restaurants-menus-section",
123
+ destPath: ""
124
+ }
125
+ ],
126
+ "api._api_base_domain_": [
127
+ {
128
+ srcPath: "/restaurants-menus-section",
129
+ destPath: ""
130
+ }
131
+ ],
132
+ "www.wixapis.com": [
133
+ {
134
+ srcPath: "/restaurants/menus-section",
135
+ destPath: ""
136
+ },
137
+ {
138
+ srcPath: "/restaurants/menus/v1/bulk/sections",
139
+ destPath: "/v1/bulk/sections"
140
+ },
141
+ {
142
+ srcPath: "/restaurants/menus/v1/sections",
143
+ destPath: "/v1/sections"
144
+ }
145
+ ]
146
+ };
147
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
148
+ }
149
+ function resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl(opts) {
150
+ const domainToMappings = {
151
+ "manage._base_domain_": [
152
+ {
153
+ srcPath: "/_api/restaurants-menus-section",
154
+ destPath: ""
155
+ }
156
+ ],
157
+ _: [
158
+ {
159
+ srcPath: "/_api/restaurants-menus-section",
160
+ destPath: ""
161
+ },
162
+ {
163
+ srcPath: "/restaurants/menus/v1/sections",
164
+ destPath: "/v1/sections"
165
+ },
166
+ {
167
+ srcPath: "/restaurants/menus/v1/bulk/sections",
168
+ destPath: "/v1/bulk/sections"
169
+ }
170
+ ],
171
+ "editor._base_domain_": [
172
+ {
173
+ srcPath: "/_api/restaurants-menus-section",
174
+ destPath: ""
175
+ }
176
+ ],
177
+ "blocks._base_domain_": [
178
+ {
179
+ srcPath: "/_api/restaurants-menus-section",
180
+ destPath: ""
181
+ }
182
+ ],
183
+ "create.editorx": [
184
+ {
185
+ srcPath: "/_api/restaurants-menus-section",
186
+ destPath: ""
187
+ }
188
+ ],
189
+ "editor.wixapps.net": [
190
+ {
191
+ srcPath: "/_api/restaurants-menus-section",
192
+ destPath: ""
193
+ }
194
+ ],
195
+ "*.dev.wix-code.com": [
196
+ {
197
+ srcPath: "/_api/restaurants-menus-section",
198
+ destPath: ""
199
+ },
200
+ {
201
+ srcPath: "/restaurants/menus/v1/sections",
202
+ destPath: "/v1/sections"
203
+ },
204
+ {
205
+ srcPath: "/restaurants/menus/v1/bulk/sections",
206
+ destPath: "/v1/bulk/sections"
207
+ }
208
+ ],
209
+ "www._base_domain_": [
210
+ {
211
+ srcPath: "/_api/restaurants-menus-section",
212
+ destPath: ""
213
+ }
214
+ ],
215
+ "api._api_base_domain_": [
216
+ {
217
+ srcPath: "/restaurants-menus-section",
218
+ destPath: ""
219
+ }
220
+ ],
221
+ "www.wixapis.com": [
222
+ {
223
+ srcPath: "/restaurants/menus-section",
224
+ destPath: ""
225
+ },
226
+ {
227
+ srcPath: "/restaurants/menus/v1/bulk/sections",
228
+ destPath: "/v1/bulk/sections"
229
+ },
230
+ {
231
+ srcPath: "/restaurants/menus/v1/sections",
232
+ destPath: "/v1/sections"
233
+ }
234
+ ]
235
+ };
236
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
237
+ }
238
+ var PACKAGE_NAME = "@wix/auto_sdk_restaurants_sections";
239
+ function duplicateSection(payload) {
240
+ function __duplicateSection({ host }) {
241
+ const metadata = {
242
+ entityFqdn: "wix.restaurants.menus.v1.section",
243
+ method: "POST",
244
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.restaurants_duplicate_section.RestaurantsDuplicateSection.DuplicateSection",
245
+ packageName: PACKAGE_NAME,
246
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl(
247
+ { protoPath: "/v1/sections/{id}/duplicate", data: payload, host }
248
+ ),
249
+ data: payload
250
+ };
251
+ return metadata;
252
+ }
253
+ return __duplicateSection;
254
+ }
255
+ function createSection(payload) {
256
+ function __createSection({ host }) {
257
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
258
+ {
259
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
260
+ paths: [
261
+ { path: "section.createdDate" },
262
+ { path: "section.updatedDate" },
263
+ { path: "section.image.urlExpirationDate" },
264
+ { path: "section.additionalImages.urlExpirationDate" }
265
+ ]
266
+ }
267
+ ]);
268
+ const metadata = {
269
+ entityFqdn: "wix.restaurants.menus.v1.section",
270
+ method: "POST",
271
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.CreateSection",
272
+ packageName: PACKAGE_NAME,
273
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
274
+ { protoPath: "/v1/sections", data: serializedData, host }
275
+ ),
276
+ data: serializedData,
277
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
278
+ {
279
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
280
+ paths: [
281
+ { path: "section.createdDate" },
282
+ { path: "section.updatedDate" },
283
+ { path: "section.image.urlExpirationDate" },
284
+ { path: "section.additionalImages.urlExpirationDate" }
285
+ ]
286
+ }
287
+ ])
288
+ };
289
+ return metadata;
290
+ }
291
+ return __createSection;
292
+ }
293
+ function bulkCreateSections(payload) {
294
+ function __bulkCreateSections({ host }) {
295
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
296
+ {
297
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
298
+ paths: [
299
+ { path: "sections.createdDate" },
300
+ { path: "sections.updatedDate" },
301
+ { path: "sections.image.urlExpirationDate" },
302
+ { path: "sections.additionalImages.urlExpirationDate" }
303
+ ]
304
+ }
305
+ ]);
306
+ const metadata = {
307
+ entityFqdn: "wix.restaurants.menus.v1.section",
308
+ method: "POST",
309
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkCreateSections",
310
+ packageName: PACKAGE_NAME,
311
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
312
+ { protoPath: "/v1/bulk/sections/create", data: serializedData, host }
313
+ ),
314
+ data: serializedData,
315
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
316
+ {
317
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
318
+ paths: [
319
+ { path: "results.item.createdDate" },
320
+ { path: "results.item.updatedDate" },
321
+ { path: "results.item.image.urlExpirationDate" },
322
+ { path: "results.item.additionalImages.urlExpirationDate" }
323
+ ]
324
+ }
325
+ ])
326
+ };
327
+ return metadata;
328
+ }
329
+ return __bulkCreateSections;
330
+ }
331
+ function getSection(payload) {
332
+ function __getSection({ host }) {
333
+ const metadata = {
334
+ entityFqdn: "wix.restaurants.menus.v1.section",
335
+ method: "GET",
336
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.GetSection",
337
+ packageName: PACKAGE_NAME,
338
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
339
+ { protoPath: "/v1/sections/{sectionId}", data: payload, host }
340
+ ),
341
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
342
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
343
+ {
344
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
345
+ paths: [
346
+ { path: "section.createdDate" },
347
+ { path: "section.updatedDate" },
348
+ { path: "section.image.urlExpirationDate" },
349
+ { path: "section.additionalImages.urlExpirationDate" }
350
+ ]
351
+ }
352
+ ])
353
+ };
354
+ return metadata;
355
+ }
356
+ return __getSection;
357
+ }
358
+ function listSections(payload) {
359
+ function __listSections({ host }) {
360
+ const metadata = {
361
+ entityFqdn: "wix.restaurants.menus.v1.section",
362
+ method: "GET",
363
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.ListSections",
364
+ packageName: PACKAGE_NAME,
365
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
366
+ { protoPath: "/v1/sections", data: payload, host }
367
+ ),
368
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
369
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
370
+ {
371
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
372
+ paths: [
373
+ { path: "sections.createdDate" },
374
+ { path: "sections.updatedDate" },
375
+ { path: "sections.image.urlExpirationDate" },
376
+ { path: "sections.additionalImages.urlExpirationDate" }
377
+ ]
378
+ }
379
+ ])
380
+ };
381
+ return metadata;
382
+ }
383
+ return __listSections;
384
+ }
385
+ function querySections(payload) {
386
+ function __querySections({ host }) {
387
+ const metadata = {
388
+ entityFqdn: "wix.restaurants.menus.v1.section",
389
+ method: "POST",
390
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.QuerySections",
391
+ packageName: PACKAGE_NAME,
392
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
393
+ { protoPath: "/v1/sections/query", data: payload, host }
394
+ ),
395
+ data: payload,
396
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
397
+ {
398
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
399
+ paths: [
400
+ { path: "sections.createdDate" },
401
+ { path: "sections.updatedDate" },
402
+ { path: "sections.image.urlExpirationDate" },
403
+ { path: "sections.additionalImages.urlExpirationDate" }
404
+ ]
405
+ }
406
+ ])
407
+ };
408
+ return metadata;
409
+ }
410
+ return __querySections;
411
+ }
412
+ function updateSection(payload) {
413
+ function __updateSection({ host }) {
414
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
415
+ {
416
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
417
+ paths: [{ path: "mask" }]
418
+ },
419
+ {
420
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
421
+ paths: [
422
+ { path: "section.createdDate" },
423
+ { path: "section.updatedDate" },
424
+ { path: "section.image.urlExpirationDate" },
425
+ { path: "section.additionalImages.urlExpirationDate" }
426
+ ]
427
+ }
428
+ ]);
429
+ const metadata = {
430
+ entityFqdn: "wix.restaurants.menus.v1.section",
431
+ method: "PATCH",
432
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.UpdateSection",
433
+ packageName: PACKAGE_NAME,
434
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
435
+ { protoPath: "/v1/sections/{section.id}", data: serializedData, host }
436
+ ),
437
+ data: serializedData,
438
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
439
+ {
440
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
441
+ paths: [
442
+ { path: "section.createdDate" },
443
+ { path: "section.updatedDate" },
444
+ { path: "section.image.urlExpirationDate" },
445
+ { path: "section.additionalImages.urlExpirationDate" }
446
+ ]
447
+ }
448
+ ])
449
+ };
450
+ return metadata;
451
+ }
452
+ return __updateSection;
453
+ }
454
+ function bulkUpdateSection(payload) {
455
+ function __bulkUpdateSection({ host }) {
456
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
457
+ {
458
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
459
+ paths: [{ path: "sections.mask" }]
460
+ },
461
+ {
462
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
463
+ paths: [
464
+ { path: "sections.section.createdDate" },
465
+ { path: "sections.section.updatedDate" },
466
+ { path: "sections.section.image.urlExpirationDate" },
467
+ { path: "sections.section.additionalImages.urlExpirationDate" }
468
+ ]
469
+ }
470
+ ]);
471
+ const metadata = {
472
+ entityFqdn: "wix.restaurants.menus.v1.section",
473
+ method: "POST",
474
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkUpdateSection",
475
+ packageName: PACKAGE_NAME,
476
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
477
+ { protoPath: "/v1/bulk/sections/update", data: serializedData, host }
478
+ ),
479
+ data: serializedData,
480
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
481
+ {
482
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
483
+ paths: [
484
+ { path: "results.section.createdDate" },
485
+ { path: "results.section.updatedDate" },
486
+ { path: "results.section.image.urlExpirationDate" },
487
+ { path: "results.section.additionalImages.urlExpirationDate" }
488
+ ]
489
+ }
490
+ ])
491
+ };
492
+ return metadata;
493
+ }
494
+ return __bulkUpdateSection;
495
+ }
496
+ function deleteSection(payload) {
497
+ function __deleteSection({ host }) {
498
+ const metadata = {
499
+ entityFqdn: "wix.restaurants.menus.v1.section",
500
+ method: "DELETE",
501
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.DeleteSection",
502
+ packageName: PACKAGE_NAME,
503
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
504
+ { protoPath: "/v1/sections/{sectionId}", data: payload, host }
505
+ ),
506
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
507
+ };
508
+ return metadata;
509
+ }
510
+ return __deleteSection;
511
+ }
512
+ function bulkDeleteSections(payload) {
513
+ function __bulkDeleteSections({ host }) {
514
+ const metadata = {
515
+ entityFqdn: "wix.restaurants.menus.v1.section",
516
+ method: "DELETE",
517
+ methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkDeleteSections",
518
+ packageName: PACKAGE_NAME,
519
+ url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
520
+ { protoPath: "/v1/bulk/sections/delete", data: payload, host }
521
+ ),
522
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
523
+ };
524
+ return metadata;
525
+ }
526
+ return __bulkDeleteSections;
527
+ }
528
+
529
+ // src/restaurants-menus-v1-section-sections.universal.ts
530
+ var import_image = require("@wix/sdk-runtime/transformations/image");
531
+ var import_image2 = require("@wix/sdk-runtime/transformations/image");
532
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
533
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
534
+ SortOrder2["ASC"] = "ASC";
535
+ SortOrder2["DESC"] = "DESC";
536
+ return SortOrder2;
537
+ })(SortOrder || {});
538
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
539
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
540
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
541
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
542
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
543
+ WebhookIdentityType2["APP"] = "APP";
544
+ return WebhookIdentityType2;
545
+ })(WebhookIdentityType || {});
546
+ async function duplicateSection2(_id, options) {
547
+ const { httpClient, sideEffects } = arguments[2];
548
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
549
+ id: _id,
550
+ businessLocationIds: options?.businessLocationIds,
551
+ duplicateSubEntities: options?.duplicateSubEntities
552
+ });
553
+ const reqOpts = duplicateSection(payload);
554
+ sideEffects?.onSiteCall?.();
555
+ try {
556
+ const result = await httpClient.request(reqOpts);
557
+ sideEffects?.onSuccess?.(result);
558
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
559
+ } catch (err) {
560
+ const transformedError = (0, import_transform_error.transformError)(
561
+ err,
562
+ {
563
+ spreadPathsToArguments: {},
564
+ explicitPathsToArguments: {
565
+ id: "$[0]",
566
+ businessLocationIds: "$[1].businessLocationIds",
567
+ duplicateSubEntities: "$[1].duplicateSubEntities"
568
+ },
569
+ singleArgumentUnchanged: false
570
+ },
571
+ ["_id", "options"]
572
+ );
573
+ sideEffects?.onError?.(err);
574
+ throw transformedError;
575
+ }
576
+ }
577
+ async function createSection2(section) {
578
+ const { httpClient, sideEffects } = arguments[1];
579
+ const payload = (0, import_transform_paths2.transformPaths)(
580
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ section }),
581
+ [
582
+ {
583
+ transformFn: import_image.transformSDKImageToRESTImage,
584
+ paths: [
585
+ { path: "section.image" },
586
+ { path: "section.additionalImages", isRepeated: true }
587
+ ]
588
+ }
589
+ ]
590
+ );
591
+ const reqOpts = createSection(payload);
592
+ sideEffects?.onSiteCall?.();
593
+ try {
594
+ const result = await httpClient.request(reqOpts);
595
+ sideEffects?.onSuccess?.(result);
596
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
597
+ (0, import_transform_paths2.transformPaths)(result.data, [
598
+ {
599
+ transformFn: import_image2.transformRESTImageToSDKImage,
600
+ paths: [
601
+ { path: "section.image" },
602
+ { path: "section.additionalImages", isRepeated: true }
603
+ ]
604
+ }
605
+ ])
606
+ )?.section;
607
+ } catch (err) {
608
+ const transformedError = (0, import_transform_error.transformError)(
609
+ err,
610
+ {
611
+ spreadPathsToArguments: {},
612
+ explicitPathsToArguments: { section: "$[0]" },
613
+ singleArgumentUnchanged: false
614
+ },
615
+ ["section"]
616
+ );
617
+ sideEffects?.onError?.(err);
618
+ throw transformedError;
619
+ }
620
+ }
621
+ async function bulkCreateSections2(sections, options) {
622
+ const { httpClient, sideEffects } = arguments[2];
623
+ const payload = (0, import_transform_paths2.transformPaths)(
624
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
625
+ sections,
626
+ returnEntity: options?.returnEntity
627
+ }),
628
+ [
629
+ {
630
+ transformFn: import_image.transformSDKImageToRESTImage,
631
+ paths: [
632
+ { path: "sections.image" },
633
+ { path: "sections.additionalImages", isRepeated: true }
634
+ ]
635
+ }
636
+ ]
637
+ );
638
+ const reqOpts = bulkCreateSections(payload);
639
+ sideEffects?.onSiteCall?.();
640
+ try {
641
+ const result = await httpClient.request(reqOpts);
642
+ sideEffects?.onSuccess?.(result);
643
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
644
+ (0, import_transform_paths2.transformPaths)(result.data, [
645
+ {
646
+ transformFn: import_image2.transformRESTImageToSDKImage,
647
+ paths: [
648
+ { path: "results.item.image" },
649
+ { path: "results.item.additionalImages", isRepeated: true }
650
+ ]
651
+ }
652
+ ])
653
+ );
654
+ } catch (err) {
655
+ const transformedError = (0, import_transform_error.transformError)(
656
+ err,
657
+ {
658
+ spreadPathsToArguments: {},
659
+ explicitPathsToArguments: {
660
+ sections: "$[0]",
661
+ returnEntity: "$[1].returnEntity"
662
+ },
663
+ singleArgumentUnchanged: false
664
+ },
665
+ ["sections", "options"]
666
+ );
667
+ sideEffects?.onError?.(err);
668
+ throw transformedError;
669
+ }
670
+ }
671
+ async function getSection2(sectionId) {
672
+ const { httpClient, sideEffects } = arguments[1];
673
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
674
+ sectionId
675
+ });
676
+ const reqOpts = getSection(payload);
677
+ sideEffects?.onSiteCall?.();
678
+ try {
679
+ const result = await httpClient.request(reqOpts);
680
+ sideEffects?.onSuccess?.(result);
681
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
682
+ (0, import_transform_paths2.transformPaths)(result.data, [
683
+ {
684
+ transformFn: import_image2.transformRESTImageToSDKImage,
685
+ paths: [
686
+ { path: "section.image" },
687
+ { path: "section.additionalImages", isRepeated: true }
688
+ ]
689
+ }
690
+ ])
691
+ )?.section;
692
+ } catch (err) {
693
+ const transformedError = (0, import_transform_error.transformError)(
694
+ err,
695
+ {
696
+ spreadPathsToArguments: {},
697
+ explicitPathsToArguments: { sectionId: "$[0]" },
698
+ singleArgumentUnchanged: false
699
+ },
700
+ ["sectionId"]
701
+ );
702
+ sideEffects?.onError?.(err);
703
+ throw transformedError;
704
+ }
705
+ }
706
+ async function listSections2(options) {
707
+ const { httpClient, sideEffects } = arguments[1];
708
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
709
+ sectionIds: options?.sectionIds,
710
+ paging: options?.paging,
711
+ onlyVisible: options?.onlyVisible
712
+ });
713
+ const reqOpts = listSections(payload);
714
+ sideEffects?.onSiteCall?.();
715
+ try {
716
+ const result = await httpClient.request(reqOpts);
717
+ sideEffects?.onSuccess?.(result);
718
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
719
+ (0, import_transform_paths2.transformPaths)(result.data, [
720
+ {
721
+ transformFn: import_image2.transformRESTImageToSDKImage,
722
+ paths: [
723
+ { path: "sections.image" },
724
+ { path: "sections.additionalImages", isRepeated: true }
725
+ ]
726
+ }
727
+ ])
728
+ );
729
+ } catch (err) {
730
+ const transformedError = (0, import_transform_error.transformError)(
731
+ err,
732
+ {
733
+ spreadPathsToArguments: {},
734
+ explicitPathsToArguments: {
735
+ sectionIds: "$[0].sectionIds",
736
+ paging: "$[0].paging",
737
+ onlyVisible: "$[0].onlyVisible"
738
+ },
739
+ singleArgumentUnchanged: false
740
+ },
741
+ ["options"]
742
+ );
743
+ sideEffects?.onError?.(err);
744
+ throw transformedError;
745
+ }
746
+ }
747
+ function querySections2() {
748
+ const { httpClient, sideEffects } = arguments[0];
749
+ return (0, import_query_builder.queryBuilder)({
750
+ func: async (payload) => {
751
+ const reqOpts = querySections(payload);
752
+ sideEffects?.onSiteCall?.();
753
+ try {
754
+ const result = await httpClient.request(reqOpts);
755
+ sideEffects?.onSuccess?.(result);
756
+ return result;
757
+ } catch (err) {
758
+ sideEffects?.onError?.(err);
759
+ throw err;
760
+ }
761
+ },
762
+ requestTransformer: (query) => {
763
+ const args = [query, {}];
764
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
765
+ ...args?.[1],
766
+ query: args?.[0]
767
+ });
768
+ },
769
+ responseTransformer: ({ data }) => {
770
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
771
+ (0, import_transform_paths2.transformPaths)(data, [
772
+ {
773
+ transformFn: import_image2.transformRESTImageToSDKImage,
774
+ paths: [
775
+ { path: "sections.image" },
776
+ { path: "sections.additionalImages", isRepeated: true }
777
+ ]
778
+ }
779
+ ])
780
+ );
781
+ return {
782
+ items: transformedData?.sections,
783
+ pagingMetadata: transformedData?.pagingMetadata
784
+ };
785
+ },
786
+ errorTransformer: (err) => {
787
+ const transformedError = (0, import_transform_error.transformError)(err, {
788
+ spreadPathsToArguments: {},
789
+ explicitPathsToArguments: { query: "$[0]" },
790
+ singleArgumentUnchanged: false
791
+ });
792
+ throw transformedError;
793
+ },
794
+ pagingMethod: "CURSOR",
795
+ transformationPaths: {}
796
+ });
797
+ }
798
+ async function updateSection2(_id, section) {
799
+ const { httpClient, sideEffects } = arguments[2];
800
+ const payload = (0, import_transform_paths2.transformPaths)(
801
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ section: { ...section, id: _id } }),
802
+ [
803
+ {
804
+ transformFn: import_image.transformSDKImageToRESTImage,
805
+ paths: [
806
+ { path: "section.image" },
807
+ { path: "section.additionalImages", isRepeated: true }
808
+ ]
809
+ }
810
+ ]
811
+ );
812
+ const reqOpts = updateSection(payload);
813
+ sideEffects?.onSiteCall?.();
814
+ try {
815
+ const result = await httpClient.request(reqOpts);
816
+ sideEffects?.onSuccess?.(result);
817
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
818
+ (0, import_transform_paths2.transformPaths)(result.data, [
819
+ {
820
+ transformFn: import_image2.transformRESTImageToSDKImage,
821
+ paths: [
822
+ { path: "section.image" },
823
+ { path: "section.additionalImages", isRepeated: true }
824
+ ]
825
+ }
826
+ ])
827
+ )?.section;
828
+ } catch (err) {
829
+ const transformedError = (0, import_transform_error.transformError)(
830
+ err,
831
+ {
832
+ spreadPathsToArguments: { section: "$[1]" },
833
+ explicitPathsToArguments: { "section.id": "$[0]" },
834
+ singleArgumentUnchanged: false
835
+ },
836
+ ["_id", "section"]
837
+ );
838
+ sideEffects?.onError?.(err);
839
+ throw transformedError;
840
+ }
841
+ }
842
+ async function bulkUpdateSection2(sections, options) {
843
+ const { httpClient, sideEffects } = arguments[2];
844
+ const payload = (0, import_transform_paths2.transformPaths)(
845
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
846
+ sections,
847
+ returnEntity: options?.returnEntity
848
+ }),
849
+ [
850
+ {
851
+ transformFn: import_image.transformSDKImageToRESTImage,
852
+ paths: [
853
+ { path: "sections.section.image" },
854
+ { path: "sections.section.additionalImages", isRepeated: true }
855
+ ]
856
+ }
857
+ ]
858
+ );
859
+ const reqOpts = bulkUpdateSection(payload);
860
+ sideEffects?.onSiteCall?.();
861
+ try {
862
+ const result = await httpClient.request(reqOpts);
863
+ sideEffects?.onSuccess?.(result);
864
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
865
+ (0, import_transform_paths2.transformPaths)(result.data, [
866
+ {
867
+ transformFn: import_image2.transformRESTImageToSDKImage,
868
+ paths: [
869
+ { path: "results.section.image" },
870
+ { path: "results.section.additionalImages", isRepeated: true }
871
+ ]
872
+ }
873
+ ])
874
+ );
875
+ } catch (err) {
876
+ const transformedError = (0, import_transform_error.transformError)(
877
+ err,
878
+ {
879
+ spreadPathsToArguments: {},
880
+ explicitPathsToArguments: {
881
+ sections: "$[0]",
882
+ returnEntity: "$[1].returnEntity"
883
+ },
884
+ singleArgumentUnchanged: false
885
+ },
886
+ ["sections", "options"]
887
+ );
888
+ sideEffects?.onError?.(err);
889
+ throw transformedError;
890
+ }
891
+ }
892
+ async function deleteSection2(sectionId) {
893
+ const { httpClient, sideEffects } = arguments[1];
894
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
895
+ sectionId
896
+ });
897
+ const reqOpts = deleteSection(payload);
898
+ sideEffects?.onSiteCall?.();
899
+ try {
900
+ const result = await httpClient.request(reqOpts);
901
+ sideEffects?.onSuccess?.(result);
902
+ } catch (err) {
903
+ const transformedError = (0, import_transform_error.transformError)(
904
+ err,
905
+ {
906
+ spreadPathsToArguments: {},
907
+ explicitPathsToArguments: { sectionId: "$[0]" },
908
+ singleArgumentUnchanged: false
909
+ },
910
+ ["sectionId"]
911
+ );
912
+ sideEffects?.onError?.(err);
913
+ throw transformedError;
914
+ }
915
+ }
916
+ async function bulkDeleteSections2(ids) {
917
+ const { httpClient, sideEffects } = arguments[1];
918
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ ids });
919
+ const reqOpts = bulkDeleteSections(payload);
920
+ sideEffects?.onSiteCall?.();
921
+ try {
922
+ const result = await httpClient.request(reqOpts);
923
+ sideEffects?.onSuccess?.(result);
924
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
925
+ } catch (err) {
926
+ const transformedError = (0, import_transform_error.transformError)(
927
+ err,
928
+ {
929
+ spreadPathsToArguments: {},
930
+ explicitPathsToArguments: { ids: "$[0]" },
931
+ singleArgumentUnchanged: false
932
+ },
933
+ ["ids"]
934
+ );
935
+ sideEffects?.onError?.(err);
936
+ throw transformedError;
937
+ }
938
+ }
939
+
940
+ // src/restaurants-menus-v1-section-sections.public.ts
941
+ function duplicateSection3(httpClient) {
942
+ return (_id, options) => duplicateSection2(
943
+ _id,
944
+ options,
945
+ // @ts-ignore
946
+ { httpClient }
947
+ );
948
+ }
949
+ function createSection3(httpClient) {
950
+ return (section) => createSection2(
951
+ section,
952
+ // @ts-ignore
953
+ { httpClient }
954
+ );
955
+ }
956
+ function bulkCreateSections3(httpClient) {
957
+ return (sections, options) => bulkCreateSections2(
958
+ sections,
959
+ options,
960
+ // @ts-ignore
961
+ { httpClient }
962
+ );
963
+ }
964
+ function getSection3(httpClient) {
965
+ return (sectionId) => getSection2(
966
+ sectionId,
967
+ // @ts-ignore
968
+ { httpClient }
969
+ );
970
+ }
971
+ function listSections3(httpClient) {
972
+ return (options) => listSections2(
973
+ options,
974
+ // @ts-ignore
975
+ { httpClient }
976
+ );
977
+ }
978
+ function querySections3(httpClient) {
979
+ return () => querySections2(
980
+ // @ts-ignore
981
+ { httpClient }
982
+ );
983
+ }
984
+ function updateSection3(httpClient) {
985
+ return (_id, section) => updateSection2(
986
+ _id,
987
+ section,
988
+ // @ts-ignore
989
+ { httpClient }
990
+ );
991
+ }
992
+ function bulkUpdateSection3(httpClient) {
993
+ return (sections, options) => bulkUpdateSection2(
994
+ sections,
995
+ options,
996
+ // @ts-ignore
997
+ { httpClient }
998
+ );
999
+ }
1000
+ function deleteSection3(httpClient) {
1001
+ return (sectionId) => deleteSection2(
1002
+ sectionId,
1003
+ // @ts-ignore
1004
+ { httpClient }
1005
+ );
1006
+ }
1007
+ function bulkDeleteSections3(httpClient) {
1008
+ return (ids) => bulkDeleteSections2(
1009
+ ids,
1010
+ // @ts-ignore
1011
+ { httpClient }
1012
+ );
1013
+ }
1014
+ var onSectionCreated = (0, import_sdk_types.EventDefinition)(
1015
+ "wix.restaurants.menus.v1.section_created",
1016
+ true,
1017
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1018
+ (0, import_transform_paths3.transformPaths)(event, [
1019
+ {
1020
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1021
+ paths: [
1022
+ { path: "entity.createdDate" },
1023
+ { path: "entity.updatedDate" },
1024
+ { path: "metadata.eventTime" }
1025
+ ]
1026
+ },
1027
+ {
1028
+ transformFn: import_image3.transformRESTImageToSDKImage,
1029
+ paths: [
1030
+ { path: "entity.image" },
1031
+ { path: "entity.additionalImages", isRepeated: true }
1032
+ ]
1033
+ }
1034
+ ])
1035
+ )
1036
+ )();
1037
+ var onSectionDeleted = (0, import_sdk_types.EventDefinition)(
1038
+ "wix.restaurants.menus.v1.section_deleted",
1039
+ true,
1040
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1041
+ (0, import_transform_paths3.transformPaths)(event, [
1042
+ {
1043
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1044
+ paths: [
1045
+ { path: "undefined.createdDate" },
1046
+ { path: "undefined.updatedDate" },
1047
+ { path: "metadata.eventTime" }
1048
+ ]
1049
+ },
1050
+ {
1051
+ transformFn: import_image3.transformRESTImageToSDKImage,
1052
+ paths: [
1053
+ { path: "undefined.image" },
1054
+ { path: "undefined.additionalImages", isRepeated: true }
1055
+ ]
1056
+ }
1057
+ ])
1058
+ )
1059
+ )();
1060
+ var onSectionUpdated = (0, import_sdk_types.EventDefinition)(
1061
+ "wix.restaurants.menus.v1.section_updated",
1062
+ true,
1063
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1064
+ (0, import_transform_paths3.transformPaths)(event, [
1065
+ {
1066
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1067
+ paths: [
1068
+ { path: "entity.createdDate" },
1069
+ { path: "entity.updatedDate" },
1070
+ { path: "metadata.eventTime" }
1071
+ ]
1072
+ },
1073
+ {
1074
+ transformFn: import_image3.transformRESTImageToSDKImage,
1075
+ paths: [
1076
+ { path: "entity.image" },
1077
+ { path: "entity.additionalImages", isRepeated: true }
1078
+ ]
1079
+ }
1080
+ ])
1081
+ )
1082
+ )();
1083
+
1084
+ // src/restaurants-menus-v1-section-sections.context.ts
1085
+ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
1086
+ var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
1087
+ var duplicateSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(duplicateSection3);
1088
+ var createSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSection3);
1089
+ var bulkCreateSections4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateSections3);
1090
+ var getSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSection3);
1091
+ var listSections4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listSections3);
1092
+ var querySections4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(querySections3);
1093
+ var updateSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSection3);
1094
+ var bulkUpdateSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateSection3);
1095
+ var deleteSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSection3);
1096
+ var bulkDeleteSections4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteSections3);
1097
+ var onSectionCreated2 = (0, import_event_definition_modules.createEventModule)(onSectionCreated);
1098
+ var onSectionDeleted2 = (0, import_event_definition_modules.createEventModule)(onSectionDeleted);
1099
+ var onSectionUpdated2 = (0, import_event_definition_modules.createEventModule)(onSectionUpdated);
1100
+ // Annotate the CommonJS export names for ESM import in node:
1101
+ 0 && (module.exports = {
1102
+ SortOrder,
1103
+ WebhookIdentityType,
1104
+ bulkCreateSections,
1105
+ bulkDeleteSections,
1106
+ bulkUpdateSection,
1107
+ createSection,
1108
+ deleteSection,
1109
+ duplicateSection,
1110
+ getSection,
1111
+ listSections,
1112
+ onSectionCreated,
1113
+ onSectionDeleted,
1114
+ onSectionUpdated,
1115
+ querySections,
1116
+ updateSection
1117
+ });
1118
+ //# sourceMappingURL=index.js.map