@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
@@ -1,529 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bulkDeleteSections = exports.deleteSection = exports.bulkUpdateSection = exports.updateSection = exports.querySections = exports.listSections = exports.getSection = exports.bulkCreateSections = exports.createSection = exports.duplicateSection = void 0;
4
- const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
5
- const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
6
- const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
7
- const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
8
- const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
9
- const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
10
- function resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(opts) {
11
- const domainToMappings = {
12
- 'manage._base_domain_': [
13
- {
14
- srcPath: '/_api/restaurants-menus-section',
15
- destPath: '',
16
- },
17
- ],
18
- _: [
19
- {
20
- srcPath: '/_api/restaurants-menus-section',
21
- destPath: '',
22
- },
23
- {
24
- srcPath: '/restaurants/menus/v1/sections',
25
- destPath: '/v1/sections',
26
- },
27
- {
28
- srcPath: '/restaurants/menus/v1/bulk/sections',
29
- destPath: '/v1/bulk/sections',
30
- },
31
- ],
32
- 'editor._base_domain_': [
33
- {
34
- srcPath: '/_api/restaurants-menus-section',
35
- destPath: '',
36
- },
37
- ],
38
- 'blocks._base_domain_': [
39
- {
40
- srcPath: '/_api/restaurants-menus-section',
41
- destPath: '',
42
- },
43
- ],
44
- 'create.editorx': [
45
- {
46
- srcPath: '/_api/restaurants-menus-section',
47
- destPath: '',
48
- },
49
- ],
50
- 'editor.wixapps.net': [
51
- {
52
- srcPath: '/_api/restaurants-menus-section',
53
- destPath: '',
54
- },
55
- ],
56
- '*.dev.wix-code.com': [
57
- {
58
- srcPath: '/_api/restaurants-menus-section',
59
- destPath: '',
60
- },
61
- {
62
- srcPath: '/restaurants/menus/v1/sections',
63
- destPath: '/v1/sections',
64
- },
65
- {
66
- srcPath: '/restaurants/menus/v1/bulk/sections',
67
- destPath: '/v1/bulk/sections',
68
- },
69
- ],
70
- 'www._base_domain_': [
71
- {
72
- srcPath: '/_api/restaurants-menus-section',
73
- destPath: '',
74
- },
75
- ],
76
- 'api._api_base_domain_': [
77
- {
78
- srcPath: '/restaurants-menus-section',
79
- destPath: '',
80
- },
81
- ],
82
- 'www.wixapis.com': [
83
- {
84
- srcPath: '/restaurants/menus-section',
85
- destPath: '',
86
- },
87
- {
88
- srcPath: '/restaurants/menus/v1/bulk/sections',
89
- destPath: '/v1/bulk/sections',
90
- },
91
- {
92
- srcPath: '/restaurants/menus/v1/sections',
93
- destPath: '/v1/sections',
94
- },
95
- ],
96
- };
97
- return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
98
- }
99
- function resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl(opts) {
100
- const domainToMappings = {
101
- 'manage._base_domain_': [
102
- {
103
- srcPath: '/_api/restaurants-menus-section',
104
- destPath: '',
105
- },
106
- ],
107
- _: [
108
- {
109
- srcPath: '/_api/restaurants-menus-section',
110
- destPath: '',
111
- },
112
- {
113
- srcPath: '/restaurants/menus/v1/sections',
114
- destPath: '/v1/sections',
115
- },
116
- {
117
- srcPath: '/restaurants/menus/v1/bulk/sections',
118
- destPath: '/v1/bulk/sections',
119
- },
120
- ],
121
- 'editor._base_domain_': [
122
- {
123
- srcPath: '/_api/restaurants-menus-section',
124
- destPath: '',
125
- },
126
- ],
127
- 'blocks._base_domain_': [
128
- {
129
- srcPath: '/_api/restaurants-menus-section',
130
- destPath: '',
131
- },
132
- ],
133
- 'create.editorx': [
134
- {
135
- srcPath: '/_api/restaurants-menus-section',
136
- destPath: '',
137
- },
138
- ],
139
- 'editor.wixapps.net': [
140
- {
141
- srcPath: '/_api/restaurants-menus-section',
142
- destPath: '',
143
- },
144
- ],
145
- '*.dev.wix-code.com': [
146
- {
147
- srcPath: '/_api/restaurants-menus-section',
148
- destPath: '',
149
- },
150
- {
151
- srcPath: '/restaurants/menus/v1/sections',
152
- destPath: '/v1/sections',
153
- },
154
- {
155
- srcPath: '/restaurants/menus/v1/bulk/sections',
156
- destPath: '/v1/bulk/sections',
157
- },
158
- ],
159
- 'www._base_domain_': [
160
- {
161
- srcPath: '/_api/restaurants-menus-section',
162
- destPath: '',
163
- },
164
- ],
165
- 'api._api_base_domain_': [
166
- {
167
- srcPath: '/restaurants-menus-section',
168
- destPath: '',
169
- },
170
- ],
171
- 'www.wixapis.com': [
172
- {
173
- srcPath: '/restaurants/menus-section',
174
- destPath: '',
175
- },
176
- {
177
- srcPath: '/restaurants/menus/v1/bulk/sections',
178
- destPath: '/v1/bulk/sections',
179
- },
180
- {
181
- srcPath: '/restaurants/menus/v1/sections',
182
- destPath: '/v1/sections',
183
- },
184
- ],
185
- };
186
- return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
187
- }
188
- const PACKAGE_NAME = '@wix/auto_sdk_restaurants_sections';
189
- function duplicateSection(payload) {
190
- function __duplicateSection({ host }) {
191
- const metadata = {
192
- entityFqdn: 'wix.restaurants.menus.v1.section',
193
- method: 'POST',
194
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.restaurants_duplicate_section.RestaurantsDuplicateSection.DuplicateSection',
195
- packageName: PACKAGE_NAME,
196
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl({ protoPath: '/v1/sections/{id}/duplicate', data: payload, host }),
197
- data: payload,
198
- };
199
- return metadata;
200
- }
201
- return __duplicateSection;
202
- }
203
- exports.duplicateSection = duplicateSection;
204
- /**
205
- * > **Note:** The Sections API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
206
- *
207
- * Creates a section.
208
- *
209
- * To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).
210
- */
211
- function createSection(payload) {
212
- function __createSection({ host }) {
213
- const serializedData = (0, transform_paths_1.transformPaths)(payload, [
214
- {
215
- transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
216
- paths: [
217
- { path: 'section.createdDate' },
218
- { path: 'section.updatedDate' },
219
- { path: 'section.image.urlExpirationDate' },
220
- { path: 'section.additionalImages.urlExpirationDate' },
221
- ],
222
- },
223
- ]);
224
- const metadata = {
225
- entityFqdn: 'wix.restaurants.menus.v1.section',
226
- method: 'POST',
227
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.CreateSection',
228
- packageName: PACKAGE_NAME,
229
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections', data: serializedData, host }),
230
- data: serializedData,
231
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
232
- {
233
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
234
- paths: [
235
- { path: 'section.createdDate' },
236
- { path: 'section.updatedDate' },
237
- { path: 'section.image.urlExpirationDate' },
238
- { path: 'section.additionalImages.urlExpirationDate' },
239
- ],
240
- },
241
- ]),
242
- };
243
- return metadata;
244
- }
245
- return __createSection;
246
- }
247
- exports.createSection = createSection;
248
- /**
249
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
250
- *
251
- * Creates multiple sections at once.
252
- */
253
- function bulkCreateSections(payload) {
254
- function __bulkCreateSections({ host }) {
255
- const serializedData = (0, transform_paths_1.transformPaths)(payload, [
256
- {
257
- transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
258
- paths: [
259
- { path: 'sections.createdDate' },
260
- { path: 'sections.updatedDate' },
261
- { path: 'sections.image.urlExpirationDate' },
262
- { path: 'sections.additionalImages.urlExpirationDate' },
263
- ],
264
- },
265
- ]);
266
- const metadata = {
267
- entityFqdn: 'wix.restaurants.menus.v1.section',
268
- method: 'POST',
269
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkCreateSections',
270
- packageName: PACKAGE_NAME,
271
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/bulk/sections/create', data: serializedData, host }),
272
- data: serializedData,
273
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
274
- {
275
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
276
- paths: [
277
- { path: 'results.item.createdDate' },
278
- { path: 'results.item.updatedDate' },
279
- { path: 'results.item.image.urlExpirationDate' },
280
- { path: 'results.item.additionalImages.urlExpirationDate' },
281
- ],
282
- },
283
- ]),
284
- };
285
- return metadata;
286
- }
287
- return __bulkCreateSections;
288
- }
289
- exports.bulkCreateSections = bulkCreateSections;
290
- /**
291
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
292
- *
293
- * Retrieves a section by ID.
294
- */
295
- function getSection(payload) {
296
- function __getSection({ host }) {
297
- const metadata = {
298
- entityFqdn: 'wix.restaurants.menus.v1.section',
299
- method: 'GET',
300
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.GetSection',
301
- packageName: PACKAGE_NAME,
302
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections/{sectionId}', data: payload, host }),
303
- params: (0, rest_modules_1.toURLSearchParams)(payload),
304
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
305
- {
306
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
307
- paths: [
308
- { path: 'section.createdDate' },
309
- { path: 'section.updatedDate' },
310
- { path: 'section.image.urlExpirationDate' },
311
- { path: 'section.additionalImages.urlExpirationDate' },
312
- ],
313
- },
314
- ]),
315
- };
316
- return metadata;
317
- }
318
- return __getSection;
319
- }
320
- exports.getSection = getSection;
321
- /**
322
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
323
- *
324
- * Retrieves a list of up to 500 sections.
325
- */
326
- function listSections(payload) {
327
- function __listSections({ host }) {
328
- const metadata = {
329
- entityFqdn: 'wix.restaurants.menus.v1.section',
330
- method: 'GET',
331
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.ListSections',
332
- packageName: PACKAGE_NAME,
333
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections', data: payload, host }),
334
- params: (0, rest_modules_1.toURLSearchParams)(payload),
335
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
336
- {
337
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
338
- paths: [
339
- { path: 'sections.createdDate' },
340
- { path: 'sections.updatedDate' },
341
- { path: 'sections.image.urlExpirationDate' },
342
- { path: 'sections.additionalImages.urlExpirationDate' },
343
- ],
344
- },
345
- ]),
346
- };
347
- return metadata;
348
- }
349
- return __listSections;
350
- }
351
- exports.listSections = listSections;
352
- /**
353
- * Creates a query to retrieve a list of sections.
354
- *
355
- * The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.
356
- *
357
- * The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.
358
- *
359
- * You can refine the query by chaining `SectionsQueryBuilder` functions onto the query. `SectionsQueryBuilder` functions enable you to filter, sort, and control the results that `querySections()` returns.
360
- *
361
- * `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:
362
- *
363
- * * [`limit(100)`](/sections/sections-query-builder/limit)
364
- *
365
- * The following `SectionsQueryBuilder` functions are supported for `querySections()`. For a full description of the section object, see the object returned for the [`items`](/sections/sections-query-result/items) property in `SectionsQueryResult`.
366
- */
367
- function querySections(payload) {
368
- function __querySections({ host }) {
369
- const metadata = {
370
- entityFqdn: 'wix.restaurants.menus.v1.section',
371
- method: 'POST',
372
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.QuerySections',
373
- packageName: PACKAGE_NAME,
374
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections/query', data: payload, host }),
375
- data: payload,
376
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
377
- {
378
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
379
- paths: [
380
- { path: 'sections.createdDate' },
381
- { path: 'sections.updatedDate' },
382
- { path: 'sections.image.urlExpirationDate' },
383
- { path: 'sections.additionalImages.urlExpirationDate' },
384
- ],
385
- },
386
- ]),
387
- };
388
- return metadata;
389
- }
390
- return __querySections;
391
- }
392
- exports.querySections = querySections;
393
- /**
394
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
395
- *
396
- * Updates a section.
397
- *
398
- * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.
399
- */
400
- function updateSection(payload) {
401
- function __updateSection({ host }) {
402
- const serializedData = (0, transform_paths_1.transformPaths)(payload, [
403
- {
404
- transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
405
- paths: [{ path: 'mask' }],
406
- },
407
- {
408
- transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
409
- paths: [
410
- { path: 'section.createdDate' },
411
- { path: 'section.updatedDate' },
412
- { path: 'section.image.urlExpirationDate' },
413
- { path: 'section.additionalImages.urlExpirationDate' },
414
- ],
415
- },
416
- ]);
417
- const metadata = {
418
- entityFqdn: 'wix.restaurants.menus.v1.section',
419
- method: 'PATCH',
420
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.UpdateSection',
421
- packageName: PACKAGE_NAME,
422
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections/{section.id}', data: serializedData, host }),
423
- data: serializedData,
424
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
425
- {
426
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
427
- paths: [
428
- { path: 'section.createdDate' },
429
- { path: 'section.updatedDate' },
430
- { path: 'section.image.urlExpirationDate' },
431
- { path: 'section.additionalImages.urlExpirationDate' },
432
- ],
433
- },
434
- ]),
435
- };
436
- return metadata;
437
- }
438
- return __updateSection;
439
- }
440
- exports.updateSection = updateSection;
441
- /**
442
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
443
- *
444
- * Updates multiple sections at once.
445
- *
446
- * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.
447
- */
448
- function bulkUpdateSection(payload) {
449
- function __bulkUpdateSection({ host }) {
450
- const serializedData = (0, transform_paths_1.transformPaths)(payload, [
451
- {
452
- transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
453
- paths: [{ path: 'sections.mask' }],
454
- },
455
- {
456
- transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
457
- paths: [
458
- { path: 'sections.section.createdDate' },
459
- { path: 'sections.section.updatedDate' },
460
- { path: 'sections.section.image.urlExpirationDate' },
461
- { path: 'sections.section.additionalImages.urlExpirationDate' },
462
- ],
463
- },
464
- ]);
465
- const metadata = {
466
- entityFqdn: 'wix.restaurants.menus.v1.section',
467
- method: 'POST',
468
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkUpdateSection',
469
- packageName: PACKAGE_NAME,
470
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/bulk/sections/update', data: serializedData, host }),
471
- data: serializedData,
472
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
473
- {
474
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
475
- paths: [
476
- { path: 'results.section.createdDate' },
477
- { path: 'results.section.updatedDate' },
478
- { path: 'results.section.image.urlExpirationDate' },
479
- { path: 'results.section.additionalImages.urlExpirationDate' },
480
- ],
481
- },
482
- ]),
483
- };
484
- return metadata;
485
- }
486
- return __bulkUpdateSection;
487
- }
488
- exports.bulkUpdateSection = bulkUpdateSection;
489
- /**
490
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
491
- *
492
- * Deletes a section.
493
- */
494
- function deleteSection(payload) {
495
- function __deleteSection({ host }) {
496
- const metadata = {
497
- entityFqdn: 'wix.restaurants.menus.v1.section',
498
- method: 'DELETE',
499
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.DeleteSection',
500
- packageName: PACKAGE_NAME,
501
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections/{sectionId}', data: payload, host }),
502
- params: (0, rest_modules_1.toURLSearchParams)(payload),
503
- };
504
- return metadata;
505
- }
506
- return __deleteSection;
507
- }
508
- exports.deleteSection = deleteSection;
509
- /**
510
- * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
511
- *
512
- * Deletes multiple sections at once.
513
- */
514
- function bulkDeleteSections(payload) {
515
- function __bulkDeleteSections({ host }) {
516
- const metadata = {
517
- entityFqdn: 'wix.restaurants.menus.v1.section',
518
- method: 'DELETE',
519
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkDeleteSections',
520
- packageName: PACKAGE_NAME,
521
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/bulk/sections/delete', data: payload, host }),
522
- params: (0, rest_modules_1.toURLSearchParams)(payload),
523
- };
524
- return metadata;
525
- }
526
- return __bulkDeleteSections;
527
- }
528
- exports.bulkDeleteSections = bulkDeleteSections;
529
- //# sourceMappingURL=restaurants-menus-v1-section-sections.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"restaurants-menus-v1-section-sections.http.js","sourceRoot":"","sources":["../../../src/restaurants-menus-v1-section-sections.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,qEAAqE,CAC5E,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,gCAAgC;gBACzC,QAAQ,EAAE,cAAc;aACzB;YACD;gBACE,OAAO,EAAE,qCAAqC;gBAC9C,QAAQ,EAAE,mBAAmB;aAC9B;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,O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C,SAAS,eAAe,CAAC,EAAE,IAAI,EAAO;QACpC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,kCAAkC;YAC9C,MAAM,EAAE,QAAe;YACvB,SAAS,EACP,iFAAiF;YACnF,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,qEAAqE,CACxE,EAAE,SAAS,EAAE,0BAA0B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAC/D;YACD,MAAM,EAAE,IAAA,gCAAiB,EAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAlBD,sCAkBC;AAED;;;;GAIG;AACH,SAAgB,kBAAkB,CAChC,OAAe;IAEf,SAAS,oBAAoB,CAAC,EAAE,IAAI,EAAO;QACzC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,kCAAkC;YAC9C,MAAM,EAAE,QAAe;YACvB,SAAS,EACP,sFAAsF;YACxF,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,qEAAqE,CACxE,EAAE,SAAS,EAAE,0BAA0B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAC/D;YACD,MAAM,EAAE,IAAA,gCAAiB,EAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AApBD,gDAoBC"}
@@ -1,30 +0,0 @@
1
- import * as ambassadorWixRestaurantsMenusV1SectionTypes from './restaurants-menus-v1-section-sections.types.js';
2
- import * as ambassadorWixRestaurantsMenusV1SectionUniversalTypes from './restaurants-menus-v1-section-sections.universal.js';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function duplicateSection(): __PublicMethodMetaInfo<'POST', {
14
- id: string;
15
- }, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.DuplicateSectionRequest, ambassadorWixRestaurantsMenusV1SectionTypes.DuplicateSectionRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.DuplicateSectionResponse, ambassadorWixRestaurantsMenusV1SectionTypes.DuplicateSectionResponse>;
16
- export declare function createSection(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.CreateSectionRequest, ambassadorWixRestaurantsMenusV1SectionTypes.CreateSectionRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.CreateSectionResponse, ambassadorWixRestaurantsMenusV1SectionTypes.CreateSectionResponse>;
17
- export declare function bulkCreateSections(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkCreateSectionsRequest, ambassadorWixRestaurantsMenusV1SectionTypes.BulkCreateSectionsRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkCreateSectionsResponse, ambassadorWixRestaurantsMenusV1SectionTypes.BulkCreateSectionsResponse>;
18
- export declare function getSection(): __PublicMethodMetaInfo<'GET', {
19
- sectionId: string;
20
- }, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.GetSectionRequest, ambassadorWixRestaurantsMenusV1SectionTypes.GetSectionRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.GetSectionResponse, ambassadorWixRestaurantsMenusV1SectionTypes.GetSectionResponse>;
21
- export declare function listSections(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.ListSectionsRequest, ambassadorWixRestaurantsMenusV1SectionTypes.ListSectionsRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.ListSectionsResponse, ambassadorWixRestaurantsMenusV1SectionTypes.ListSectionsResponse>;
22
- export declare function querySections(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.QuerySectionsRequest, ambassadorWixRestaurantsMenusV1SectionTypes.QuerySectionsRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.QuerySectionsResponse, ambassadorWixRestaurantsMenusV1SectionTypes.QuerySectionsResponse>;
23
- export declare function updateSection(): __PublicMethodMetaInfo<'PATCH', {
24
- sectionId: string;
25
- }, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.UpdateSectionRequest, ambassadorWixRestaurantsMenusV1SectionTypes.UpdateSectionRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.UpdateSectionResponse, ambassadorWixRestaurantsMenusV1SectionTypes.UpdateSectionResponse>;
26
- export declare function bulkUpdateSection(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkUpdateSectionRequest, ambassadorWixRestaurantsMenusV1SectionTypes.BulkUpdateSectionRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkUpdateSectionResponse, ambassadorWixRestaurantsMenusV1SectionTypes.BulkUpdateSectionResponse>;
27
- export declare function deleteSection(): __PublicMethodMetaInfo<'DELETE', {
28
- sectionId: string;
29
- }, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.DeleteSectionRequest, ambassadorWixRestaurantsMenusV1SectionTypes.DeleteSectionRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.DeleteSectionResponse, ambassadorWixRestaurantsMenusV1SectionTypes.DeleteSectionResponse>;
30
- export declare function bulkDeleteSections(): __PublicMethodMetaInfo<'DELETE', {}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkDeleteSectionsRequest, ambassadorWixRestaurantsMenusV1SectionTypes.BulkDeleteSectionsRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkDeleteSectionsResponse, ambassadorWixRestaurantsMenusV1SectionTypes.BulkDeleteSectionsResponse>;