@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,26 +0,0 @@
1
- import { duplicateSection as publicDuplicateSection, 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 { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
3
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
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 declare const duplicateSection: MaybeContext<BuildRESTFunction<typeof publicDuplicateSection> & typeof publicDuplicateSection>;
8
- export declare const createSection: MaybeContext<BuildRESTFunction<typeof publicCreateSection> & typeof publicCreateSection>;
9
- export declare const bulkCreateSections: MaybeContext<BuildRESTFunction<typeof publicBulkCreateSections> & typeof publicBulkCreateSections>;
10
- export declare const getSection: MaybeContext<BuildRESTFunction<typeof publicGetSection> & typeof publicGetSection>;
11
- export declare const listSections: MaybeContext<BuildRESTFunction<typeof publicListSections> & typeof publicListSections>;
12
- export declare const querySections: MaybeContext<BuildRESTFunction<typeof publicQuerySections> & typeof publicQuerySections>;
13
- export declare const updateSection: MaybeContext<BuildRESTFunction<typeof publicUpdateSection> & typeof publicUpdateSection>;
14
- export declare const bulkUpdateSection: MaybeContext<BuildRESTFunction<typeof publicBulkUpdateSection> & typeof publicBulkUpdateSection>;
15
- export declare const deleteSection: MaybeContext<BuildRESTFunction<typeof publicDeleteSection> & typeof publicDeleteSection>;
16
- export declare const bulkDeleteSections: MaybeContext<BuildRESTFunction<typeof publicBulkDeleteSections> & typeof publicBulkDeleteSections>;
17
- /** */
18
- export declare const onSectionCreated: ReturnType<typeof createEventModule<typeof publicOnSectionCreated>>;
19
- /** */
20
- export declare const onSectionDeleted: ReturnType<typeof createEventModule<typeof publicOnSectionDeleted>>;
21
- /**
22
- * Triggered when a section is updated.
23
- */
24
- export declare const onSectionUpdated: ReturnType<typeof createEventModule<typeof publicOnSectionUpdated>>;
25
- export { SortOrder, WebhookIdentityType, } from './restaurants-menus-v1-section-sections.universal.js';
26
- export { Section, ExtendedFields, DuplicateSectionRequest, DuplicateSectionResponse, InvalidateCache, InvalidateCacheGetByOneOf, App, Page, URI, File, DeleteLocationIdFromItems, CreateSectionRequest, CreateSectionResponse, BulkCreateSectionsRequest, BulkCreateSectionsResponse, BulkCreateSectionResult, ItemMetadata, ApplicationError, BulkActionMetadata, GetSectionRequest, GetSectionResponse, ListSectionsRequest, CursorPaging, ListSectionsResponse, CursorPagingMetadata, Cursors, QuerySectionsRequest, CursorQuery, CursorQueryPagingMethodOneOf, Sorting, QuerySectionsResponse, UpdateSectionRequest, UpdateSectionResponse, BulkUpdateSectionRequest, MaskedSection, BulkUpdateSectionResponse, BulkSectionResult, DeleteSectionRequest, DeleteSectionResponse, BulkDeleteSectionsRequest, BulkDeleteSectionsResponse, BulkDeleteSectionResult, CloneSectionsRequest, CloneSectionsResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, BulkUpdateBusinessLocationIdRequest, BulkUpdateBusinessLocationIdResponse, BulkItemResult, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, SectionCreatedEnvelope, SectionDeletedEnvelope, SectionUpdatedEnvelope, DuplicateSectionOptions, BulkCreateSectionsOptions, ListSectionsOptions, SectionsQueryResult, SectionsQueryBuilder, UpdateSection, BulkUpdateSectionOptions, } from './restaurants-menus-v1-section-sections.universal.js';
@@ -1,26 +0,0 @@
1
- import { duplicateSection as publicDuplicateSection, 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 duplicateSection = /*#__PURE__*/ createRESTModule(publicDuplicateSection);
8
- export const createSection = /*#__PURE__*/ createRESTModule(publicCreateSection);
9
- export const bulkCreateSections = /*#__PURE__*/ createRESTModule(publicBulkCreateSections);
10
- export const getSection = /*#__PURE__*/ createRESTModule(publicGetSection);
11
- export const listSections = /*#__PURE__*/ createRESTModule(publicListSections);
12
- export const querySections = /*#__PURE__*/ createRESTModule(publicQuerySections);
13
- export const updateSection = /*#__PURE__*/ createRESTModule(publicUpdateSection);
14
- export const bulkUpdateSection = /*#__PURE__*/ createRESTModule(publicBulkUpdateSection);
15
- export const deleteSection = /*#__PURE__*/ createRESTModule(publicDeleteSection);
16
- export const bulkDeleteSections = /*#__PURE__*/ createRESTModule(publicBulkDeleteSections);
17
- /** */
18
- export const onSectionCreated = createEventModule(publicOnSectionCreated);
19
- /** */
20
- export const onSectionDeleted = createEventModule(publicOnSectionDeleted);
21
- /**
22
- * Triggered when a section is updated.
23
- */
24
- export const onSectionUpdated = createEventModule(publicOnSectionUpdated);
25
- export { SortOrder, WebhookIdentityType, } from './restaurants-menus-v1-section-sections.universal.js';
26
- //# sourceMappingURL=restaurants-menus-v1-section-sections.context.js.map
@@ -1 +0,0 @@
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,gBAAgB,IAAI,sBAAsB,EAC1C,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,aAAa,IAAI,mBAAmB,EACpC,kBAAkB,IAAI,wBAAwB,GAC/C,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,gBAAgB,IAAI,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,gBAAgB,IAAI,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,gBAAgB,IAAI,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAE/G,MAAM,CAAC,MAAM,gBAAgB,GAGzB,aAAa,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,aAAa,GAEtB,aAAa,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,kBAAkB,GAG3B,aAAa,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,UAAU,GAEnB,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AACrD,MAAM,CAAC,MAAM,YAAY,GAErB,aAAa,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,aAAa,GAEtB,aAAa,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,aAAa,GAEtB,aAAa,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,iBAAiB,GAG1B,aAAa,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,aAAa,GAEtB,aAAa,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,kBAAkB,GAG3B,aAAa,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;AAC7D,MAAM;AACN,MAAM,CAAC,MAAM,gBAAgB,GAEzB,iBAAiB,CAAC,sBAAsB,CAAC,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"}
@@ -1,72 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- export declare function duplicateSection(payload: object): RequestOptionsFactory<any>;
3
- /**
4
- * > **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).
5
- *
6
- * Creates a section.
7
- *
8
- * To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).
9
- */
10
- export declare function createSection(payload: object): RequestOptionsFactory<any>;
11
- /**
12
- * > **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).
13
- *
14
- * Creates multiple sections at once.
15
- */
16
- export declare function bulkCreateSections(payload: object): RequestOptionsFactory<any>;
17
- /**
18
- * > **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).
19
- *
20
- * Retrieves a section by ID.
21
- */
22
- export declare function getSection(payload: object): RequestOptionsFactory<any>;
23
- /**
24
- * > **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).
25
- *
26
- * Retrieves a list of up to 500 sections.
27
- */
28
- export declare function listSections(payload: object): RequestOptionsFactory<any>;
29
- /**
30
- * Creates a query to retrieve a list of sections.
31
- *
32
- * The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.
33
- *
34
- * The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.
35
- *
36
- * 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.
37
- *
38
- * `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:
39
- *
40
- * * [`limit(100)`](/sections/sections-query-builder/limit)
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>;
@@ -1,516 +0,0 @@
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
- srcPath: '/restaurants/menus/v1/sections',
22
- destPath: '/v1/sections',
23
- },
24
- {
25
- srcPath: '/restaurants/menus/v1/bulk/sections',
26
- destPath: '/v1/bulk/sections',
27
- },
28
- ],
29
- 'editor._base_domain_': [
30
- {
31
- srcPath: '/_api/restaurants-menus-section',
32
- destPath: '',
33
- },
34
- ],
35
- 'blocks._base_domain_': [
36
- {
37
- srcPath: '/_api/restaurants-menus-section',
38
- destPath: '',
39
- },
40
- ],
41
- 'create.editorx': [
42
- {
43
- srcPath: '/_api/restaurants-menus-section',
44
- destPath: '',
45
- },
46
- ],
47
- 'editor.wixapps.net': [
48
- {
49
- srcPath: '/_api/restaurants-menus-section',
50
- destPath: '',
51
- },
52
- ],
53
- '*.dev.wix-code.com': [
54
- {
55
- srcPath: '/_api/restaurants-menus-section',
56
- destPath: '',
57
- },
58
- {
59
- srcPath: '/restaurants/menus/v1/sections',
60
- destPath: '/v1/sections',
61
- },
62
- {
63
- srcPath: '/restaurants/menus/v1/bulk/sections',
64
- destPath: '/v1/bulk/sections',
65
- },
66
- ],
67
- 'www._base_domain_': [
68
- {
69
- srcPath: '/_api/restaurants-menus-section',
70
- destPath: '',
71
- },
72
- ],
73
- 'api._api_base_domain_': [
74
- {
75
- srcPath: '/restaurants-menus-section',
76
- destPath: '',
77
- },
78
- ],
79
- 'www.wixapis.com': [
80
- {
81
- srcPath: '/restaurants/menus-section',
82
- destPath: '',
83
- },
84
- {
85
- srcPath: '/restaurants/menus/v1/bulk/sections',
86
- destPath: '/v1/bulk/sections',
87
- },
88
- {
89
- srcPath: '/restaurants/menus/v1/sections',
90
- destPath: '/v1/sections',
91
- },
92
- ],
93
- };
94
- return resolveUrl(Object.assign(opts, { domainToMappings }));
95
- }
96
- function resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl(opts) {
97
- const domainToMappings = {
98
- 'manage._base_domain_': [
99
- {
100
- srcPath: '/_api/restaurants-menus-section',
101
- destPath: '',
102
- },
103
- ],
104
- _: [
105
- {
106
- srcPath: '/_api/restaurants-menus-section',
107
- destPath: '',
108
- },
109
- {
110
- srcPath: '/restaurants/menus/v1/sections',
111
- destPath: '/v1/sections',
112
- },
113
- {
114
- srcPath: '/restaurants/menus/v1/bulk/sections',
115
- destPath: '/v1/bulk/sections',
116
- },
117
- ],
118
- 'editor._base_domain_': [
119
- {
120
- srcPath: '/_api/restaurants-menus-section',
121
- destPath: '',
122
- },
123
- ],
124
- 'blocks._base_domain_': [
125
- {
126
- srcPath: '/_api/restaurants-menus-section',
127
- destPath: '',
128
- },
129
- ],
130
- 'create.editorx': [
131
- {
132
- srcPath: '/_api/restaurants-menus-section',
133
- destPath: '',
134
- },
135
- ],
136
- 'editor.wixapps.net': [
137
- {
138
- srcPath: '/_api/restaurants-menus-section',
139
- destPath: '',
140
- },
141
- ],
142
- '*.dev.wix-code.com': [
143
- {
144
- srcPath: '/_api/restaurants-menus-section',
145
- destPath: '',
146
- },
147
- {
148
- srcPath: '/restaurants/menus/v1/sections',
149
- destPath: '/v1/sections',
150
- },
151
- {
152
- srcPath: '/restaurants/menus/v1/bulk/sections',
153
- destPath: '/v1/bulk/sections',
154
- },
155
- ],
156
- 'www._base_domain_': [
157
- {
158
- srcPath: '/_api/restaurants-menus-section',
159
- destPath: '',
160
- },
161
- ],
162
- 'api._api_base_domain_': [
163
- {
164
- srcPath: '/restaurants-menus-section',
165
- destPath: '',
166
- },
167
- ],
168
- 'www.wixapis.com': [
169
- {
170
- srcPath: '/restaurants/menus-section',
171
- destPath: '',
172
- },
173
- {
174
- srcPath: '/restaurants/menus/v1/bulk/sections',
175
- destPath: '/v1/bulk/sections',
176
- },
177
- {
178
- srcPath: '/restaurants/menus/v1/sections',
179
- destPath: '/v1/sections',
180
- },
181
- ],
182
- };
183
- return resolveUrl(Object.assign(opts, { domainToMappings }));
184
- }
185
- const PACKAGE_NAME = '@wix/auto_sdk_restaurants_sections';
186
- export function duplicateSection(payload) {
187
- function __duplicateSection({ host }) {
188
- const metadata = {
189
- entityFqdn: 'wix.restaurants.menus.v1.section',
190
- method: 'POST',
191
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.restaurants_duplicate_section.RestaurantsDuplicateSection.DuplicateSection',
192
- packageName: PACKAGE_NAME,
193
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl({ protoPath: '/v1/sections/{id}/duplicate', data: payload, host }),
194
- data: payload,
195
- };
196
- return metadata;
197
- }
198
- return __duplicateSection;
199
- }
200
- /**
201
- * > **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).
202
- *
203
- * Creates a section.
204
- *
205
- * To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).
206
- */
207
- export function createSection(payload) {
208
- function __createSection({ host }) {
209
- const serializedData = transformPaths(payload, [
210
- {
211
- transformFn: transformSDKTimestampToRESTTimestamp,
212
- paths: [
213
- { path: 'section.createdDate' },
214
- { path: 'section.updatedDate' },
215
- { path: 'section.image.urlExpirationDate' },
216
- { path: 'section.additionalImages.urlExpirationDate' },
217
- ],
218
- },
219
- ]);
220
- const metadata = {
221
- entityFqdn: 'wix.restaurants.menus.v1.section',
222
- method: 'POST',
223
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.CreateSection',
224
- packageName: PACKAGE_NAME,
225
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections', data: serializedData, host }),
226
- data: serializedData,
227
- transformResponse: (payload) => transformPaths(payload, [
228
- {
229
- transformFn: transformRESTTimestampToSDKTimestamp,
230
- paths: [
231
- { path: 'section.createdDate' },
232
- { path: 'section.updatedDate' },
233
- { path: 'section.image.urlExpirationDate' },
234
- { path: 'section.additionalImages.urlExpirationDate' },
235
- ],
236
- },
237
- ]),
238
- };
239
- return metadata;
240
- }
241
- return __createSection;
242
- }
243
- /**
244
- * > **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).
245
- *
246
- * Creates multiple sections at once.
247
- */
248
- export function bulkCreateSections(payload) {
249
- function __bulkCreateSections({ host }) {
250
- const serializedData = transformPaths(payload, [
251
- {
252
- transformFn: transformSDKTimestampToRESTTimestamp,
253
- paths: [
254
- { path: 'sections.createdDate' },
255
- { path: 'sections.updatedDate' },
256
- { path: 'sections.image.urlExpirationDate' },
257
- { path: 'sections.additionalImages.urlExpirationDate' },
258
- ],
259
- },
260
- ]);
261
- const metadata = {
262
- entityFqdn: 'wix.restaurants.menus.v1.section',
263
- method: 'POST',
264
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkCreateSections',
265
- packageName: PACKAGE_NAME,
266
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/bulk/sections/create', data: serializedData, host }),
267
- data: serializedData,
268
- transformResponse: (payload) => transformPaths(payload, [
269
- {
270
- transformFn: transformRESTTimestampToSDKTimestamp,
271
- paths: [
272
- { path: 'results.item.createdDate' },
273
- { path: 'results.item.updatedDate' },
274
- { path: 'results.item.image.urlExpirationDate' },
275
- { path: 'results.item.additionalImages.urlExpirationDate' },
276
- ],
277
- },
278
- ]),
279
- };
280
- return metadata;
281
- }
282
- return __bulkCreateSections;
283
- }
284
- /**
285
- * > **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).
286
- *
287
- * Retrieves a section by ID.
288
- */
289
- export function getSection(payload) {
290
- function __getSection({ host }) {
291
- const metadata = {
292
- entityFqdn: 'wix.restaurants.menus.v1.section',
293
- method: 'GET',
294
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.GetSection',
295
- packageName: PACKAGE_NAME,
296
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections/{sectionId}', data: payload, host }),
297
- params: toURLSearchParams(payload),
298
- transformResponse: (payload) => transformPaths(payload, [
299
- {
300
- transformFn: transformRESTTimestampToSDKTimestamp,
301
- paths: [
302
- { path: 'section.createdDate' },
303
- { path: 'section.updatedDate' },
304
- { path: 'section.image.urlExpirationDate' },
305
- { path: 'section.additionalImages.urlExpirationDate' },
306
- ],
307
- },
308
- ]),
309
- };
310
- return metadata;
311
- }
312
- return __getSection;
313
- }
314
- /**
315
- * > **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).
316
- *
317
- * Retrieves a list of up to 500 sections.
318
- */
319
- export function listSections(payload) {
320
- function __listSections({ host }) {
321
- const metadata = {
322
- entityFqdn: 'wix.restaurants.menus.v1.section',
323
- method: 'GET',
324
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.ListSections',
325
- packageName: PACKAGE_NAME,
326
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections', data: payload, host }),
327
- params: toURLSearchParams(payload),
328
- transformResponse: (payload) => transformPaths(payload, [
329
- {
330
- transformFn: transformRESTTimestampToSDKTimestamp,
331
- paths: [
332
- { path: 'sections.createdDate' },
333
- { path: 'sections.updatedDate' },
334
- { path: 'sections.image.urlExpirationDate' },
335
- { path: 'sections.additionalImages.urlExpirationDate' },
336
- ],
337
- },
338
- ]),
339
- };
340
- return metadata;
341
- }
342
- return __listSections;
343
- }
344
- /**
345
- * Creates a query to retrieve a list of sections.
346
- *
347
- * The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.
348
- *
349
- * The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.
350
- *
351
- * 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.
352
- *
353
- * `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:
354
- *
355
- * * [`limit(100)`](/sections/sections-query-builder/limit)
356
- *
357
- * 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`.
358
- */
359
- export function querySections(payload) {
360
- function __querySections({ host }) {
361
- const metadata = {
362
- entityFqdn: 'wix.restaurants.menus.v1.section',
363
- method: 'POST',
364
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.QuerySections',
365
- packageName: PACKAGE_NAME,
366
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections/query', data: payload, host }),
367
- data: payload,
368
- transformResponse: (payload) => transformPaths(payload, [
369
- {
370
- transformFn: transformRESTTimestampToSDKTimestamp,
371
- paths: [
372
- { path: 'sections.createdDate' },
373
- { path: 'sections.updatedDate' },
374
- { path: 'sections.image.urlExpirationDate' },
375
- { path: 'sections.additionalImages.urlExpirationDate' },
376
- ],
377
- },
378
- ]),
379
- };
380
- return metadata;
381
- }
382
- return __querySections;
383
- }
384
- /**
385
- * > **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).
386
- *
387
- * Updates a section.
388
- *
389
- * 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.
390
- */
391
- export function updateSection(payload) {
392
- function __updateSection({ host }) {
393
- const serializedData = transformPaths(payload, [
394
- {
395
- transformFn: transformSDKFieldMaskToRESTFieldMask,
396
- paths: [{ path: 'mask' }],
397
- },
398
- {
399
- transformFn: transformSDKTimestampToRESTTimestamp,
400
- paths: [
401
- { path: 'section.createdDate' },
402
- { path: 'section.updatedDate' },
403
- { path: 'section.image.urlExpirationDate' },
404
- { path: 'section.additionalImages.urlExpirationDate' },
405
- ],
406
- },
407
- ]);
408
- const metadata = {
409
- entityFqdn: 'wix.restaurants.menus.v1.section',
410
- method: 'PATCH',
411
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.UpdateSection',
412
- packageName: PACKAGE_NAME,
413
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections/{section.id}', data: serializedData, host }),
414
- data: serializedData,
415
- transformResponse: (payload) => transformPaths(payload, [
416
- {
417
- transformFn: transformRESTTimestampToSDKTimestamp,
418
- paths: [
419
- { path: 'section.createdDate' },
420
- { path: 'section.updatedDate' },
421
- { path: 'section.image.urlExpirationDate' },
422
- { path: 'section.additionalImages.urlExpirationDate' },
423
- ],
424
- },
425
- ]),
426
- };
427
- return metadata;
428
- }
429
- return __updateSection;
430
- }
431
- /**
432
- * > **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).
433
- *
434
- * Updates multiple sections at once.
435
- *
436
- * 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.
437
- */
438
- export function bulkUpdateSection(payload) {
439
- function __bulkUpdateSection({ host }) {
440
- const serializedData = transformPaths(payload, [
441
- {
442
- transformFn: transformSDKFieldMaskToRESTFieldMask,
443
- paths: [{ path: 'sections.mask' }],
444
- },
445
- {
446
- transformFn: transformSDKTimestampToRESTTimestamp,
447
- paths: [
448
- { path: 'sections.section.createdDate' },
449
- { path: 'sections.section.updatedDate' },
450
- { path: 'sections.section.image.urlExpirationDate' },
451
- { path: 'sections.section.additionalImages.urlExpirationDate' },
452
- ],
453
- },
454
- ]);
455
- const metadata = {
456
- entityFqdn: 'wix.restaurants.menus.v1.section',
457
- method: 'POST',
458
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkUpdateSection',
459
- packageName: PACKAGE_NAME,
460
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/bulk/sections/update', data: serializedData, host }),
461
- data: serializedData,
462
- transformResponse: (payload) => transformPaths(payload, [
463
- {
464
- transformFn: transformRESTTimestampToSDKTimestamp,
465
- paths: [
466
- { path: 'results.section.createdDate' },
467
- { path: 'results.section.updatedDate' },
468
- { path: 'results.section.image.urlExpirationDate' },
469
- { path: 'results.section.additionalImages.urlExpirationDate' },
470
- ],
471
- },
472
- ]),
473
- };
474
- return metadata;
475
- }
476
- return __bulkUpdateSection;
477
- }
478
- /**
479
- * > **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).
480
- *
481
- * Deletes a section.
482
- */
483
- export function deleteSection(payload) {
484
- function __deleteSection({ host }) {
485
- const metadata = {
486
- entityFqdn: 'wix.restaurants.menus.v1.section',
487
- method: 'DELETE',
488
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.DeleteSection',
489
- packageName: PACKAGE_NAME,
490
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/sections/{sectionId}', data: payload, host }),
491
- params: toURLSearchParams(payload),
492
- };
493
- return metadata;
494
- }
495
- return __deleteSection;
496
- }
497
- /**
498
- * > **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).
499
- *
500
- * Deletes multiple sections at once.
501
- */
502
- export function bulkDeleteSections(payload) {
503
- function __bulkDeleteSections({ host }) {
504
- const metadata = {
505
- entityFqdn: 'wix.restaurants.menus.v1.section',
506
- method: 'DELETE',
507
- methodFqn: 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkDeleteSections',
508
- packageName: PACKAGE_NAME,
509
- url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl({ protoPath: '/v1/bulk/sections/delete', data: payload, host }),
510
- params: toURLSearchParams(payload),
511
- };
512
- return metadata;
513
- }
514
- return __bulkDeleteSections;
515
- }
516
- //# sourceMappingURL=restaurants-menus-v1-section-sections.http.js.map