@wix/auto_sdk_restaurants_sections 1.0.0
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.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.context.d.ts +25 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.context.js +30 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.context.js.map +1 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.http.d.ts +72 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.http.js +402 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.http.js.map +1 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.meta.d.ts +27 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.meta.js +199 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.meta.js.map +1 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.public.d.ts +117 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.public.js +119 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.public.js.map +1 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.types.d.ts +503 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.types.js +17 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.types.js.map +1 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.universal.d.ts +886 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.universal.js +564 -0
- package/build/cjs/src/restaurants-menus-v1-section-sections.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/restaurants-menus-v1-section-sections.context.d.ts +25 -0
- package/build/es/src/restaurants-menus-v1-section-sections.context.js +25 -0
- package/build/es/src/restaurants-menus-v1-section-sections.context.js.map +1 -0
- package/build/es/src/restaurants-menus-v1-section-sections.http.d.ts +72 -0
- package/build/es/src/restaurants-menus-v1-section-sections.http.js +390 -0
- package/build/es/src/restaurants-menus-v1-section-sections.http.js.map +1 -0
- package/build/es/src/restaurants-menus-v1-section-sections.meta.d.ts +27 -0
- package/build/es/src/restaurants-menus-v1-section-sections.meta.js +164 -0
- package/build/es/src/restaurants-menus-v1-section-sections.meta.js.map +1 -0
- package/build/es/src/restaurants-menus-v1-section-sections.public.d.ts +117 -0
- package/build/es/src/restaurants-menus-v1-section-sections.public.js +105 -0
- package/build/es/src/restaurants-menus-v1-section-sections.public.js.map +1 -0
- package/build/es/src/restaurants-menus-v1-section-sections.types.d.ts +503 -0
- package/build/es/src/restaurants-menus-v1-section-sections.types.js +14 -0
- package/build/es/src/restaurants-menus-v1-section-sections.types.js.map +1 -0
- package/build/es/src/restaurants-menus-v1-section-sections.universal.d.ts +886 -0
- package/build/es/src/restaurants-menus-v1-section-sections.universal.js +529 -0
- package/build/es/src/restaurants-menus-v1-section-sections.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.d.ts +25 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.js +30 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.js.map +1 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.d.ts +72 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.js +402 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.js.map +1 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.d.ts +27 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.js +199 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.js.map +1 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.d.ts +117 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.js +119 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.js.map +1 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.d.ts +503 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.js +17 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.js.map +1 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.d.ts +886 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.js +564 -0
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.context.d.ts +25 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.context.js +25 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.context.js.map +1 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.http.d.ts +72 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.http.js +390 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.http.js.map +1 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.d.ts +27 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.js +164 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.js.map +1 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.public.d.ts +117 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.public.js +105 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.public.js.map +1 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.types.d.ts +503 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.types.js +14 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.types.js.map +1 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.d.ts +886 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.js +529 -0
- package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createSection as publicCreateSection, bulkCreateSections as publicBulkCreateSections, getSection as publicGetSection, listSections as publicListSections, querySections as publicQuerySections, updateSection as publicUpdateSection, bulkUpdateSection as publicBulkUpdateSection, deleteSection as publicDeleteSection, bulkDeleteSections as publicBulkDeleteSections, } from './restaurants-menus-v1-section-sections.public.js';
|
|
2
|
+
import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
4
|
+
import { onSectionCreated as publicOnSectionCreated } from './restaurants-menus-v1-section-sections.public.js';
|
|
5
|
+
import { onSectionDeleted as publicOnSectionDeleted } from './restaurants-menus-v1-section-sections.public.js';
|
|
6
|
+
import { onSectionUpdated as publicOnSectionUpdated } from './restaurants-menus-v1-section-sections.public.js';
|
|
7
|
+
export const createSection = /*#__PURE__*/ createRESTModule(publicCreateSection);
|
|
8
|
+
export const bulkCreateSections = /*#__PURE__*/ createRESTModule(publicBulkCreateSections);
|
|
9
|
+
export const getSection = /*#__PURE__*/ createRESTModule(publicGetSection);
|
|
10
|
+
export const listSections = /*#__PURE__*/ createRESTModule(publicListSections);
|
|
11
|
+
export const querySections = /*#__PURE__*/ createRESTModule(publicQuerySections);
|
|
12
|
+
export const updateSection = /*#__PURE__*/ createRESTModule(publicUpdateSection);
|
|
13
|
+
export const bulkUpdateSection = /*#__PURE__*/ createRESTModule(publicBulkUpdateSection);
|
|
14
|
+
export const deleteSection = /*#__PURE__*/ createRESTModule(publicDeleteSection);
|
|
15
|
+
export const bulkDeleteSections = /*#__PURE__*/ createRESTModule(publicBulkDeleteSections);
|
|
16
|
+
/** */
|
|
17
|
+
export const onSectionCreated = createEventModule(publicOnSectionCreated);
|
|
18
|
+
/** */
|
|
19
|
+
export const onSectionDeleted = createEventModule(publicOnSectionDeleted);
|
|
20
|
+
/**
|
|
21
|
+
* Triggered when a section is updated.
|
|
22
|
+
*/
|
|
23
|
+
export const onSectionUpdated = createEventModule(publicOnSectionUpdated);
|
|
24
|
+
export { SortOrder, WebhookIdentityType, } from './restaurants-menus-v1-section-sections.universal.js';
|
|
25
|
+
//# sourceMappingURL=restaurants-menus-v1-section-sections.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restaurants-menus-v1-section-sections.context.js","sourceRoot":"","sources":["../../../../src/restaurants-menus-v1-section-sections.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,IAAI,mBAAmB,EACpC,kBAAkB,IAAI,wBAAwB,EAC9C,UAAU,IAAI,gBAAgB,EAC9B,YAAY,IAAI,kBAAkB,EAClC,aAAa,IAAI,mBAAmB,EACpC,aAAa,IAAI,mBAAmB,EACpC,iBAAiB,IAAI,uBAAuB,EAC5C,a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AAC,CAAC;AAC9C,MAAM;AACN,MAAM,CAAC,MAAM,gBAAgB,GAEzB,iBAAiB,CAAC,sBAAsB,CAAC,CAAC;AAC9C;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAEzB,iBAAiB,CAAC,sBAAsB,CAAC,CAAC;AAE9C,OAAO,EACL,SAAS,EACT,mBAAmB,GACpB,MAAM,sDAAsD,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* > **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).
|
|
4
|
+
*
|
|
5
|
+
* Creates a section.
|
|
6
|
+
*
|
|
7
|
+
* To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).
|
|
8
|
+
*/
|
|
9
|
+
export declare function createSection(payload: object): RequestOptionsFactory<any>;
|
|
10
|
+
/**
|
|
11
|
+
* > **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).
|
|
12
|
+
*
|
|
13
|
+
* Creates multiple sections at once.
|
|
14
|
+
*/
|
|
15
|
+
export declare function bulkCreateSections(payload: object): RequestOptionsFactory<any>;
|
|
16
|
+
/**
|
|
17
|
+
* > **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).
|
|
18
|
+
*
|
|
19
|
+
* Retrieves a section by ID.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getSection(payload: object): RequestOptionsFactory<any>;
|
|
22
|
+
/**
|
|
23
|
+
* > **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).
|
|
24
|
+
*
|
|
25
|
+
* Retrieves a list of up to 500 sections.
|
|
26
|
+
*/
|
|
27
|
+
export declare function listSections(payload: object): RequestOptionsFactory<any>;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a query to retrieve a list of sections.
|
|
30
|
+
*
|
|
31
|
+
* The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.
|
|
32
|
+
*
|
|
33
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.
|
|
34
|
+
*
|
|
35
|
+
* 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.
|
|
36
|
+
*
|
|
37
|
+
* `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:
|
|
38
|
+
*
|
|
39
|
+
* * [`limit(100)`](/sections/sections-query-builder/limit)
|
|
40
|
+
* * [`ascending('entityId')`](/sections/sections-query-builder/ascending)
|
|
41
|
+
*
|
|
42
|
+
* 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`.
|
|
43
|
+
*/
|
|
44
|
+
export declare function querySections(payload: object): RequestOptionsFactory<any>;
|
|
45
|
+
/**
|
|
46
|
+
* > **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).
|
|
47
|
+
*
|
|
48
|
+
* Updates a section.
|
|
49
|
+
*
|
|
50
|
+
* 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.
|
|
51
|
+
*/
|
|
52
|
+
export declare function updateSection(payload: object): RequestOptionsFactory<any>;
|
|
53
|
+
/**
|
|
54
|
+
* > **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).
|
|
55
|
+
*
|
|
56
|
+
* Updates multiple sections at once.
|
|
57
|
+
*
|
|
58
|
+
* 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.
|
|
59
|
+
*/
|
|
60
|
+
export declare function bulkUpdateSection(payload: object): RequestOptionsFactory<any>;
|
|
61
|
+
/**
|
|
62
|
+
* > **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).
|
|
63
|
+
*
|
|
64
|
+
* Deletes a section.
|
|
65
|
+
*/
|
|
66
|
+
export declare function deleteSection(payload: object): RequestOptionsFactory<any>;
|
|
67
|
+
/**
|
|
68
|
+
* > **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).
|
|
69
|
+
*
|
|
70
|
+
* Deletes multiple sections at once.
|
|
71
|
+
*/
|
|
72
|
+
export declare function bulkDeleteSections(payload: object): RequestOptionsFactory<any>;
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
|
|
2
|
+
import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
3
|
+
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
4
|
+
import { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';
|
|
5
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
6
|
+
import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
|
|
7
|
+
function resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(opts) {
|
|
8
|
+
const domainToMappings = {
|
|
9
|
+
'manage._base_domain_': [
|
|
10
|
+
{
|
|
11
|
+
srcPath: '/_api/restaurants-menus-section',
|
|
12
|
+
destPath: '',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
_: [
|
|
16
|
+
{
|
|
17
|
+
srcPath: '/_api/restaurants-menus-section',
|
|
18
|
+
destPath: '',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
'editor._base_domain_': [
|
|
22
|
+
{
|
|
23
|
+
srcPath: '/_api/restaurants-menus-section',
|
|
24
|
+
destPath: '',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
'blocks._base_domain_': [
|
|
28
|
+
{
|
|
29
|
+
srcPath: '/_api/restaurants-menus-section',
|
|
30
|
+
destPath: '',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
'create.editorx': [
|
|
34
|
+
{
|
|
35
|
+
srcPath: '/_api/restaurants-menus-section',
|
|
36
|
+
destPath: '',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
'editor.wixapps.net': [
|
|
40
|
+
{
|
|
41
|
+
srcPath: '/_api/restaurants-menus-section',
|
|
42
|
+
destPath: '',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
'*.dev.wix-code.com': [
|
|
46
|
+
{
|
|
47
|
+
srcPath: '/_api/restaurants-menus-section',
|
|
48
|
+
destPath: '',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
'www._base_domain_': [
|
|
52
|
+
{
|
|
53
|
+
srcPath: '/_api/restaurants-menus-section',
|
|
54
|
+
destPath: '',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
'api._api_base_domain_': [
|
|
58
|
+
{
|
|
59
|
+
srcPath: '/restaurants-menus-section',
|
|
60
|
+
destPath: '',
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
'www.wixapis.com': [
|
|
64
|
+
{
|
|
65
|
+
srcPath: '/restaurants/menus-section',
|
|
66
|
+
destPath: '',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
};
|
|
70
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
71
|
+
}
|
|
72
|
+
const PACKAGE_NAME = '@wix/auto_sdk_restaurants_sections';
|
|
73
|
+
/**
|
|
74
|
+
* > **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).
|
|
75
|
+
*
|
|
76
|
+
* Creates a section.
|
|
77
|
+
*
|
|
78
|
+
* To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).
|
|
79
|
+
*/
|
|
80
|
+
export function createSection(payload) {
|
|
81
|
+
function __createSection({ host }) {
|
|
82
|
+
const serializedData = transformPaths(payload, [
|
|
83
|
+
{
|
|
84
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
85
|
+
paths: [
|
|
86
|
+
{ path: 'section.createdDate' },
|
|
87
|
+
{ path: 'section.updatedDate' },
|
|
88
|
+
{ path: 'section.image.urlExpirationDate' },
|
|
89
|
+
{ path: 'section.additionalImages.urlExpirationDate' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
]);
|
|
93
|
+
const metadata = {
|
|
94
|
+
entityFqdn: 'wix.restaurants.menus.v1.section',
|
|
95
|
+
method: 'POST',
|
|
96
|
+
methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.CreateSection',
|
|
97
|
+
packageName: PACKAGE_NAME,
|
|
98
|
+
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections', data: serializedData, host }),
|
|
99
|
+
data: serializedData,
|
|
100
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
101
|
+
{
|
|
102
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
103
|
+
paths: [
|
|
104
|
+
{ path: 'section.createdDate' },
|
|
105
|
+
{ path: 'section.updatedDate' },
|
|
106
|
+
{ path: 'section.image.urlExpirationDate' },
|
|
107
|
+
{ path: 'section.additionalImages.urlExpirationDate' },
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
]),
|
|
111
|
+
};
|
|
112
|
+
return metadata;
|
|
113
|
+
}
|
|
114
|
+
return __createSection;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* > **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).
|
|
118
|
+
*
|
|
119
|
+
* Creates multiple sections at once.
|
|
120
|
+
*/
|
|
121
|
+
export function bulkCreateSections(payload) {
|
|
122
|
+
function __bulkCreateSections({ host }) {
|
|
123
|
+
const serializedData = transformPaths(payload, [
|
|
124
|
+
{
|
|
125
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
126
|
+
paths: [
|
|
127
|
+
{ path: 'sections.createdDate' },
|
|
128
|
+
{ path: 'sections.updatedDate' },
|
|
129
|
+
{ path: 'sections.image.urlExpirationDate' },
|
|
130
|
+
{ path: 'sections.additionalImages.urlExpirationDate' },
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
]);
|
|
134
|
+
const metadata = {
|
|
135
|
+
entityFqdn: 'wix.restaurants.menus.v1.section',
|
|
136
|
+
method: 'POST',
|
|
137
|
+
methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkCreateSections',
|
|
138
|
+
packageName: PACKAGE_NAME,
|
|
139
|
+
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/bulk/sections/create', data: serializedData, host }),
|
|
140
|
+
data: serializedData,
|
|
141
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
142
|
+
{
|
|
143
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
144
|
+
paths: [
|
|
145
|
+
{ path: 'results.item.createdDate' },
|
|
146
|
+
{ path: 'results.item.updatedDate' },
|
|
147
|
+
{ path: 'results.item.image.urlExpirationDate' },
|
|
148
|
+
{ path: 'results.item.additionalImages.urlExpirationDate' },
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
]),
|
|
152
|
+
};
|
|
153
|
+
return metadata;
|
|
154
|
+
}
|
|
155
|
+
return __bulkCreateSections;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* > **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).
|
|
159
|
+
*
|
|
160
|
+
* Retrieves a section by ID.
|
|
161
|
+
*/
|
|
162
|
+
export function getSection(payload) {
|
|
163
|
+
function __getSection({ host }) {
|
|
164
|
+
const metadata = {
|
|
165
|
+
entityFqdn: 'wix.restaurants.menus.v1.section',
|
|
166
|
+
method: 'GET',
|
|
167
|
+
methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.GetSection',
|
|
168
|
+
packageName: PACKAGE_NAME,
|
|
169
|
+
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections/{sectionId}', data: payload, host }),
|
|
170
|
+
params: toURLSearchParams(payload),
|
|
171
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
172
|
+
{
|
|
173
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
174
|
+
paths: [
|
|
175
|
+
{ path: 'section.createdDate' },
|
|
176
|
+
{ path: 'section.updatedDate' },
|
|
177
|
+
{ path: 'section.image.urlExpirationDate' },
|
|
178
|
+
{ path: 'section.additionalImages.urlExpirationDate' },
|
|
179
|
+
],
|
|
180
|
+
},
|
|
181
|
+
]),
|
|
182
|
+
};
|
|
183
|
+
return metadata;
|
|
184
|
+
}
|
|
185
|
+
return __getSection;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* > **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).
|
|
189
|
+
*
|
|
190
|
+
* Retrieves a list of up to 500 sections.
|
|
191
|
+
*/
|
|
192
|
+
export function listSections(payload) {
|
|
193
|
+
function __listSections({ host }) {
|
|
194
|
+
const metadata = {
|
|
195
|
+
entityFqdn: 'wix.restaurants.menus.v1.section',
|
|
196
|
+
method: 'GET',
|
|
197
|
+
methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.ListSections',
|
|
198
|
+
packageName: PACKAGE_NAME,
|
|
199
|
+
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections', data: payload, host }),
|
|
200
|
+
params: toURLSearchParams(payload),
|
|
201
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
202
|
+
{
|
|
203
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
204
|
+
paths: [
|
|
205
|
+
{ path: 'sections.createdDate' },
|
|
206
|
+
{ path: 'sections.updatedDate' },
|
|
207
|
+
{ path: 'sections.image.urlExpirationDate' },
|
|
208
|
+
{ path: 'sections.additionalImages.urlExpirationDate' },
|
|
209
|
+
],
|
|
210
|
+
},
|
|
211
|
+
]),
|
|
212
|
+
};
|
|
213
|
+
return metadata;
|
|
214
|
+
}
|
|
215
|
+
return __listSections;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Creates a query to retrieve a list of sections.
|
|
219
|
+
*
|
|
220
|
+
* The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.
|
|
221
|
+
*
|
|
222
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.
|
|
223
|
+
*
|
|
224
|
+
* 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.
|
|
225
|
+
*
|
|
226
|
+
* `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:
|
|
227
|
+
*
|
|
228
|
+
* * [`limit(100)`](/sections/sections-query-builder/limit)
|
|
229
|
+
* * [`ascending('entityId')`](/sections/sections-query-builder/ascending)
|
|
230
|
+
*
|
|
231
|
+
* 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`.
|
|
232
|
+
*/
|
|
233
|
+
export function querySections(payload) {
|
|
234
|
+
function __querySections({ host }) {
|
|
235
|
+
const metadata = {
|
|
236
|
+
entityFqdn: 'wix.restaurants.menus.v1.section',
|
|
237
|
+
method: 'POST',
|
|
238
|
+
methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.QuerySections',
|
|
239
|
+
packageName: PACKAGE_NAME,
|
|
240
|
+
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections/query', data: payload, host }),
|
|
241
|
+
data: payload,
|
|
242
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
243
|
+
{
|
|
244
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
245
|
+
paths: [
|
|
246
|
+
{ path: 'sections.createdDate' },
|
|
247
|
+
{ path: 'sections.updatedDate' },
|
|
248
|
+
{ path: 'sections.image.urlExpirationDate' },
|
|
249
|
+
{ path: 'sections.additionalImages.urlExpirationDate' },
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
]),
|
|
253
|
+
};
|
|
254
|
+
return metadata;
|
|
255
|
+
}
|
|
256
|
+
return __querySections;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* > **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).
|
|
260
|
+
*
|
|
261
|
+
* Updates a section.
|
|
262
|
+
*
|
|
263
|
+
* 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.
|
|
264
|
+
*/
|
|
265
|
+
export function updateSection(payload) {
|
|
266
|
+
function __updateSection({ host }) {
|
|
267
|
+
const serializedData = transformPaths(payload, [
|
|
268
|
+
{
|
|
269
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
270
|
+
paths: [{ path: 'mask' }],
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
274
|
+
paths: [
|
|
275
|
+
{ path: 'section.createdDate' },
|
|
276
|
+
{ path: 'section.updatedDate' },
|
|
277
|
+
{ path: 'section.image.urlExpirationDate' },
|
|
278
|
+
{ path: 'section.additionalImages.urlExpirationDate' },
|
|
279
|
+
],
|
|
280
|
+
},
|
|
281
|
+
]);
|
|
282
|
+
const metadata = {
|
|
283
|
+
entityFqdn: 'wix.restaurants.menus.v1.section',
|
|
284
|
+
method: 'PATCH',
|
|
285
|
+
methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.UpdateSection',
|
|
286
|
+
packageName: PACKAGE_NAME,
|
|
287
|
+
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections/{section.id}', data: serializedData, host }),
|
|
288
|
+
data: serializedData,
|
|
289
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
290
|
+
{
|
|
291
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
292
|
+
paths: [
|
|
293
|
+
{ path: 'section.createdDate' },
|
|
294
|
+
{ path: 'section.updatedDate' },
|
|
295
|
+
{ path: 'section.image.urlExpirationDate' },
|
|
296
|
+
{ path: 'section.additionalImages.urlExpirationDate' },
|
|
297
|
+
],
|
|
298
|
+
},
|
|
299
|
+
]),
|
|
300
|
+
};
|
|
301
|
+
return metadata;
|
|
302
|
+
}
|
|
303
|
+
return __updateSection;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* > **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).
|
|
307
|
+
*
|
|
308
|
+
* Updates multiple sections at once.
|
|
309
|
+
*
|
|
310
|
+
* 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.
|
|
311
|
+
*/
|
|
312
|
+
export function bulkUpdateSection(payload) {
|
|
313
|
+
function __bulkUpdateSection({ host }) {
|
|
314
|
+
const serializedData = transformPaths(payload, [
|
|
315
|
+
{
|
|
316
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
317
|
+
paths: [{ path: 'sections.mask' }],
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
321
|
+
paths: [
|
|
322
|
+
{ path: 'sections.section.createdDate' },
|
|
323
|
+
{ path: 'sections.section.updatedDate' },
|
|
324
|
+
{ path: 'sections.section.image.urlExpirationDate' },
|
|
325
|
+
{ path: 'sections.section.additionalImages.urlExpirationDate' },
|
|
326
|
+
],
|
|
327
|
+
},
|
|
328
|
+
]);
|
|
329
|
+
const metadata = {
|
|
330
|
+
entityFqdn: 'wix.restaurants.menus.v1.section',
|
|
331
|
+
method: 'POST',
|
|
332
|
+
methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkUpdateSection',
|
|
333
|
+
packageName: PACKAGE_NAME,
|
|
334
|
+
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/bulk/sections/update', data: serializedData, host }),
|
|
335
|
+
data: serializedData,
|
|
336
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
337
|
+
{
|
|
338
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
339
|
+
paths: [
|
|
340
|
+
{ path: 'results.section.createdDate' },
|
|
341
|
+
{ path: 'results.section.updatedDate' },
|
|
342
|
+
{ path: 'results.section.image.urlExpirationDate' },
|
|
343
|
+
{ path: 'results.section.additionalImages.urlExpirationDate' },
|
|
344
|
+
],
|
|
345
|
+
},
|
|
346
|
+
]),
|
|
347
|
+
};
|
|
348
|
+
return metadata;
|
|
349
|
+
}
|
|
350
|
+
return __bulkUpdateSection;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* > **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).
|
|
354
|
+
*
|
|
355
|
+
* Deletes a section.
|
|
356
|
+
*/
|
|
357
|
+
export function deleteSection(payload) {
|
|
358
|
+
function __deleteSection({ host }) {
|
|
359
|
+
const metadata = {
|
|
360
|
+
entityFqdn: 'wix.restaurants.menus.v1.section',
|
|
361
|
+
method: 'DELETE',
|
|
362
|
+
methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.DeleteSection',
|
|
363
|
+
packageName: PACKAGE_NAME,
|
|
364
|
+
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections/{sectionId}', data: payload, host }),
|
|
365
|
+
params: toURLSearchParams(payload),
|
|
366
|
+
};
|
|
367
|
+
return metadata;
|
|
368
|
+
}
|
|
369
|
+
return __deleteSection;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* > **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).
|
|
373
|
+
*
|
|
374
|
+
* Deletes multiple sections at once.
|
|
375
|
+
*/
|
|
376
|
+
export function bulkDeleteSections(payload) {
|
|
377
|
+
function __bulkDeleteSections({ host }) {
|
|
378
|
+
const metadata = {
|
|
379
|
+
entityFqdn: 'wix.restaurants.menus.v1.section',
|
|
380
|
+
method: 'DELETE',
|
|
381
|
+
methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkDeleteSections',
|
|
382
|
+
packageName: PACKAGE_NAME,
|
|
383
|
+
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/bulk/sections/delete', data: payload, host }),
|
|
384
|
+
params: toURLSearchParams(payload),
|
|
385
|
+
};
|
|
386
|
+
return metadata;
|
|
387
|
+
}
|
|
388
|
+
return __bulkDeleteSections;
|
|
389
|
+
}
|
|
390
|
+
//# sourceMappingURL=restaurants-menus-v1-section-sections.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restaurants-menus-v1-section-sections.http.js","sourceRoot":"","sources":["../../../../src/restaurants-menus-v1-section-sections.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;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;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;SACF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BAAiB,CAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,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,iBAAiB,CAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 createSection(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.CreateSectionRequest, ambassadorWixRestaurantsMenusV1SectionTypes.CreateSectionRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.CreateSectionResponse & ambassadorWixRestaurantsMenusV1SectionUniversalTypes.CreateSectionResponseNonNullableFields, ambassadorWixRestaurantsMenusV1SectionTypes.CreateSectionResponse & ambassadorWixRestaurantsMenusV1SectionTypes.CreateSectionResponseNonNullableFields>;
|
|
14
|
+
export declare function bulkCreateSections(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkCreateSectionsRequest, ambassadorWixRestaurantsMenusV1SectionTypes.BulkCreateSectionsRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkCreateSectionsResponse & ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkCreateSectionsResponseNonNullableFields, ambassadorWixRestaurantsMenusV1SectionTypes.BulkCreateSectionsResponse & ambassadorWixRestaurantsMenusV1SectionTypes.BulkCreateSectionsResponseNonNullableFields>;
|
|
15
|
+
export declare function getSection(): __PublicMethodMetaInfo<'GET', {
|
|
16
|
+
sectionId: string;
|
|
17
|
+
}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.GetSectionRequest, ambassadorWixRestaurantsMenusV1SectionTypes.GetSectionRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.GetSectionResponse & ambassadorWixRestaurantsMenusV1SectionUniversalTypes.GetSectionResponseNonNullableFields, ambassadorWixRestaurantsMenusV1SectionTypes.GetSectionResponse & ambassadorWixRestaurantsMenusV1SectionTypes.GetSectionResponseNonNullableFields>;
|
|
18
|
+
export declare function listSections(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.ListSectionsRequest, ambassadorWixRestaurantsMenusV1SectionTypes.ListSectionsRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.ListSectionsResponse & ambassadorWixRestaurantsMenusV1SectionUniversalTypes.ListSectionsResponseNonNullableFields, ambassadorWixRestaurantsMenusV1SectionTypes.ListSectionsResponse & ambassadorWixRestaurantsMenusV1SectionTypes.ListSectionsResponseNonNullableFields>;
|
|
19
|
+
export declare function querySections(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.QuerySectionsRequest, ambassadorWixRestaurantsMenusV1SectionTypes.QuerySectionsRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.QuerySectionsResponse & ambassadorWixRestaurantsMenusV1SectionUniversalTypes.QuerySectionsResponseNonNullableFields, ambassadorWixRestaurantsMenusV1SectionTypes.QuerySectionsResponse & ambassadorWixRestaurantsMenusV1SectionTypes.QuerySectionsResponseNonNullableFields>;
|
|
20
|
+
export declare function updateSection(): __PublicMethodMetaInfo<'PATCH', {
|
|
21
|
+
sectionId: string;
|
|
22
|
+
}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.UpdateSectionRequest, ambassadorWixRestaurantsMenusV1SectionTypes.UpdateSectionRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.UpdateSectionResponse & ambassadorWixRestaurantsMenusV1SectionUniversalTypes.UpdateSectionResponseNonNullableFields, ambassadorWixRestaurantsMenusV1SectionTypes.UpdateSectionResponse & ambassadorWixRestaurantsMenusV1SectionTypes.UpdateSectionResponseNonNullableFields>;
|
|
23
|
+
export declare function bulkUpdateSection(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkUpdateSectionRequest, ambassadorWixRestaurantsMenusV1SectionTypes.BulkUpdateSectionRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkUpdateSectionResponse & ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkUpdateSectionResponseNonNullableFields, ambassadorWixRestaurantsMenusV1SectionTypes.BulkUpdateSectionResponse & ambassadorWixRestaurantsMenusV1SectionTypes.BulkUpdateSectionResponseNonNullableFields>;
|
|
24
|
+
export declare function deleteSection(): __PublicMethodMetaInfo<'DELETE', {
|
|
25
|
+
sectionId: string;
|
|
26
|
+
}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.DeleteSectionRequest, ambassadorWixRestaurantsMenusV1SectionTypes.DeleteSectionRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.DeleteSectionResponse, ambassadorWixRestaurantsMenusV1SectionTypes.DeleteSectionResponse>;
|
|
27
|
+
export declare function bulkDeleteSections(): __PublicMethodMetaInfo<'DELETE', {}, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkDeleteSectionsRequest, ambassadorWixRestaurantsMenusV1SectionTypes.BulkDeleteSectionsRequest, ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkDeleteSectionsResponse & ambassadorWixRestaurantsMenusV1SectionUniversalTypes.BulkDeleteSectionsResponseNonNullableFields, ambassadorWixRestaurantsMenusV1SectionTypes.BulkDeleteSectionsResponse & ambassadorWixRestaurantsMenusV1SectionTypes.BulkDeleteSectionsResponseNonNullableFields>;
|