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