@wix/auto_sdk_restaurants_sections 1.0.12 → 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 (134) hide show
  1. package/build/index.d.mts +138 -0
  2. package/build/index.d.ts +138 -0
  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/index.d.mts +138 -0
  8. package/build/internal/index.d.ts +138 -0
  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 -360
  20. package/build/internal/{es/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.ts} +79 -360
  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 -360
  28. package/build/{es/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.ts} +79 -360
  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.d.ts +0 -121
  49. package/build/cjs/src/restaurants-menus-v1-section-sections.public.js +0 -125
  50. package/build/cjs/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
  51. package/build/cjs/src/restaurants-menus-v1-section-sections.types.d.ts +0 -678
  52. package/build/cjs/src/restaurants-menus-v1-section-sections.types.js +0 -17
  53. package/build/cjs/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
  54. package/build/cjs/src/restaurants-menus-v1-section-sections.universal.js +0 -587
  55. package/build/cjs/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
  67. package/build/es/src/restaurants-menus-v1-section-sections.context.js +0 -26
  68. package/build/es/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
  69. package/build/es/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
  70. package/build/es/src/restaurants-menus-v1-section-sections.http.js +0 -516
  71. package/build/es/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
  72. package/build/es/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
  73. package/build/es/src/restaurants-menus-v1-section-sections.meta.js +0 -182
  74. package/build/es/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
  75. package/build/es/src/restaurants-menus-v1-section-sections.public.d.ts +0 -121
  76. package/build/es/src/restaurants-menus-v1-section-sections.public.js +0 -110
  77. package/build/es/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
  78. package/build/es/src/restaurants-menus-v1-section-sections.types.d.ts +0 -678
  79. package/build/es/src/restaurants-menus-v1-section-sections.types.js +0 -14
  80. package/build/es/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
  81. package/build/es/src/restaurants-menus-v1-section-sections.universal.js +0 -551
  82. package/build/es/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
  93. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.js +0 -31
  94. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
  95. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
  96. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.js +0 -529
  97. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
  98. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
  99. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.js +0 -218
  100. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
  101. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.d.ts +0 -121
  102. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.js +0 -125
  103. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
  104. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.d.ts +0 -678
  105. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.js +0 -17
  106. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
  107. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.js +0 -587
  108. package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
  119. package/build/internal/es/src/restaurants-menus-v1-section-sections.context.js +0 -26
  120. package/build/internal/es/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
  121. package/build/internal/es/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
  122. package/build/internal/es/src/restaurants-menus-v1-section-sections.http.js +0 -516
  123. package/build/internal/es/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
  124. package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
  125. package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.js +0 -182
  126. package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
  127. package/build/internal/es/src/restaurants-menus-v1-section-sections.public.d.ts +0 -121
  128. package/build/internal/es/src/restaurants-menus-v1-section-sections.public.js +0 -110
  129. package/build/internal/es/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
  130. package/build/internal/es/src/restaurants-menus-v1-section-sections.types.d.ts +0 -678
  131. package/build/internal/es/src/restaurants-menus-v1-section-sections.types.js +0 -14
  132. package/build/internal/es/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
  133. package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.js +0 -551
  134. package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
@@ -0,0 +1,138 @@
1
+ import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { D as DuplicateSectionOptions, a as DuplicateSectionResponse, S as Section, B as BulkCreateSectionsOptions, b as BulkCreateSectionsResponse, L as ListSectionsOptions, c as ListSectionsResponse, d as SectionsQueryBuilder, U as UpdateSection, M as MaskedSection, e as BulkUpdateSectionOptions, f as BulkUpdateSectionResponse, g as BulkDeleteSectionsResponse } from './restaurants-menus-v1-section-sections.universal-BZUvATJu.mjs';
3
+ export { a4 as ActionEvent, A as App, q as ApplicationError, ac as BaseEventMetadata, r as BulkActionMetadata, o as BulkCreateSectionResult, n as BulkCreateSectionsRequest, X as BulkDeleteSectionResult, V as BulkDeleteSectionsRequest, a8 as BulkItemResult, O as BulkSectionResult, a6 as BulkUpdateBusinessLocationIdRequest, a7 as BulkUpdateBusinessLocationIdResponse, N as BulkUpdateSectionRequest, Y as CloneSectionsRequest, Z as CloneSectionsResponse, C as CreateSectionRequest, m as CreateSectionResponse, u as CursorPaging, v as CursorPagingMetadata, x as CursorQuery, y as CursorQueryPagingMethodOneOf, w as Cursors, l as DeleteLocationIdFromItems, R as DeleteSectionRequest, T as DeleteSectionResponse, _ as DomainEvent, $ as DomainEventBodyOneOf, i as DuplicateSectionRequest, a5 as Empty, a0 as EntityCreatedEvent, a3 as EntityDeletedEvent, a2 as EntityUpdatedEvent, ad as EventMetadata, E as ExtendedFields, F as File, G as GetSectionRequest, s as GetSectionResponse, aa as IdentificationData, ab as IdentificationDataIdOneOf, I as InvalidateCache, j as InvalidateCacheGetByOneOf, p as ItemMetadata, t as ListSectionsRequest, a9 as MessageEnvelope, P as Page, Q as QuerySectionsRequest, H as QuerySectionsResponse, a1 as RestoreInfo, ae as SectionCreatedEnvelope, af as SectionDeletedEnvelope, ag as SectionUpdatedEnvelope, ah as SectionsQueryResult, h as SortOrder, z as Sorting, k as URI, J as UpdateSectionRequest, K as UpdateSectionResponse, W as WebhookIdentityType } from './restaurants-menus-v1-section-sections.universal-BZUvATJu.mjs';
4
+ import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
5
+
6
+ declare function duplicateSection$1(httpClient: HttpClient): DuplicateSectionSignature;
7
+ interface DuplicateSectionSignature {
8
+ /** @param - Section id to be duplicated. */
9
+ (_id: string, options?: DuplicateSectionOptions | undefined): Promise<DuplicateSectionResponse>;
10
+ }
11
+ declare function createSection$1(httpClient: HttpClient): CreateSectionSignature;
12
+ interface CreateSectionSignature {
13
+ /**
14
+ * > **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).
15
+ *
16
+ * Creates a section.
17
+ *
18
+ * To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).
19
+ * @param - Section details.
20
+ * @returns Section.
21
+ */
22
+ (section: Section): Promise<Section>;
23
+ }
24
+ declare function bulkCreateSections$1(httpClient: HttpClient): BulkCreateSectionsSignature;
25
+ interface BulkCreateSectionsSignature {
26
+ /**
27
+ * > **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).
28
+ *
29
+ * Creates multiple sections at once.
30
+ * @param - Sections details.
31
+ */
32
+ (sections: Section[], options?: BulkCreateSectionsOptions | undefined): Promise<BulkCreateSectionsResponse>;
33
+ }
34
+ declare function getSection$1(httpClient: HttpClient): GetSectionSignature;
35
+ interface GetSectionSignature {
36
+ /**
37
+ * > **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).
38
+ *
39
+ * Retrieves a section by ID.
40
+ * @param - Section ID.
41
+ * @returns Section.
42
+ */
43
+ (sectionId: string): Promise<Section>;
44
+ }
45
+ declare function listSections$1(httpClient: HttpClient): ListSectionsSignature;
46
+ interface ListSectionsSignature {
47
+ /**
48
+ * > **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).
49
+ *
50
+ * Retrieves a list of up to 500 sections.
51
+ */
52
+ (options?: ListSectionsOptions | undefined): Promise<ListSectionsResponse>;
53
+ }
54
+ declare function querySections$1(httpClient: HttpClient): QuerySectionsSignature;
55
+ interface QuerySectionsSignature {
56
+ /**
57
+ * Creates a query to retrieve a list of sections.
58
+ *
59
+ * The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.
60
+ *
61
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.
62
+ *
63
+ * 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.
64
+ *
65
+ * `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:
66
+ *
67
+ * * [`limit(100)`](/sections/sections-query-builder/limit)
68
+ *
69
+ * 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`.
70
+ */
71
+ (): SectionsQueryBuilder;
72
+ }
73
+ declare function updateSection$1(httpClient: HttpClient): UpdateSectionSignature;
74
+ interface UpdateSectionSignature {
75
+ /**
76
+ * > **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).
77
+ *
78
+ * Updates a section.
79
+ *
80
+ * 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.
81
+ * @param - Section ID.
82
+ * @returns Updated section.
83
+ */
84
+ (_id: string, section: UpdateSection): Promise<Section>;
85
+ }
86
+ declare function bulkUpdateSection$1(httpClient: HttpClient): BulkUpdateSectionSignature;
87
+ interface BulkUpdateSectionSignature {
88
+ /**
89
+ * > **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).
90
+ *
91
+ * Updates multiple sections at once.
92
+ *
93
+ * 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.
94
+ * @param - Sections to update.
95
+ */
96
+ (sections: MaskedSection[], options?: BulkUpdateSectionOptions | undefined): Promise<BulkUpdateSectionResponse>;
97
+ }
98
+ declare function deleteSection$1(httpClient: HttpClient): DeleteSectionSignature;
99
+ interface DeleteSectionSignature {
100
+ /**
101
+ * > **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).
102
+ *
103
+ * Deletes a section.
104
+ * @param - Section ID.
105
+ */
106
+ (sectionId: string): Promise<void>;
107
+ }
108
+ declare function bulkDeleteSections$1(httpClient: HttpClient): BulkDeleteSectionsSignature;
109
+ interface BulkDeleteSectionsSignature {
110
+ /**
111
+ * > **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).
112
+ *
113
+ * Deletes multiple sections at once.
114
+ * @param - Section IDs.
115
+ */
116
+ (ids: string[]): Promise<BulkDeleteSectionsResponse>;
117
+ }
118
+
119
+ declare const duplicateSection: MaybeContext<BuildRESTFunction<typeof duplicateSection$1> & typeof duplicateSection$1>;
120
+ declare const createSection: MaybeContext<BuildRESTFunction<typeof createSection$1> & typeof createSection$1>;
121
+ declare const bulkCreateSections: MaybeContext<BuildRESTFunction<typeof bulkCreateSections$1> & typeof bulkCreateSections$1>;
122
+ declare const getSection: MaybeContext<BuildRESTFunction<typeof getSection$1> & typeof getSection$1>;
123
+ declare const listSections: MaybeContext<BuildRESTFunction<typeof listSections$1> & typeof listSections$1>;
124
+ declare const querySections: MaybeContext<BuildRESTFunction<typeof querySections$1> & typeof querySections$1>;
125
+ declare const updateSection: MaybeContext<BuildRESTFunction<typeof updateSection$1> & typeof updateSection$1>;
126
+ declare const bulkUpdateSection: MaybeContext<BuildRESTFunction<typeof bulkUpdateSection$1> & typeof bulkUpdateSection$1>;
127
+ declare const deleteSection: MaybeContext<BuildRESTFunction<typeof deleteSection$1> & typeof deleteSection$1>;
128
+ declare const bulkDeleteSections: MaybeContext<BuildRESTFunction<typeof bulkDeleteSections$1> & typeof bulkDeleteSections$1>;
129
+ /** */
130
+ declare const onSectionCreated: ReturnType<typeof createEventModule<typeof publicOnSectionCreated>>;
131
+ /** */
132
+ declare const onSectionDeleted: ReturnType<typeof createEventModule<typeof publicOnSectionDeleted>>;
133
+ /**
134
+ * Triggered when a section is updated.
135
+ */
136
+ declare const onSectionUpdated: ReturnType<typeof createEventModule<typeof publicOnSectionUpdated>>;
137
+
138
+ export { BulkCreateSectionsOptions, BulkCreateSectionsResponse, BulkDeleteSectionsResponse, BulkUpdateSectionOptions, BulkUpdateSectionResponse, DuplicateSectionOptions, DuplicateSectionResponse, ListSectionsOptions, ListSectionsResponse, MaskedSection, Section, SectionsQueryBuilder, UpdateSection, bulkCreateSections, bulkDeleteSections, bulkUpdateSection, createSection, deleteSection, duplicateSection, getSection, listSections, onSectionCreated, onSectionDeleted, onSectionUpdated, querySections, updateSection };
@@ -0,0 +1,138 @@
1
+ import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { D as DuplicateSectionOptions, a as DuplicateSectionResponse, S as Section, B as BulkCreateSectionsOptions, b as BulkCreateSectionsResponse, L as ListSectionsOptions, c as ListSectionsResponse, d as SectionsQueryBuilder, U as UpdateSection, M as MaskedSection, e as BulkUpdateSectionOptions, f as BulkUpdateSectionResponse, g as BulkDeleteSectionsResponse } from './restaurants-menus-v1-section-sections.universal-BZUvATJu.js';
3
+ export { a4 as ActionEvent, A as App, q as ApplicationError, ac as BaseEventMetadata, r as BulkActionMetadata, o as BulkCreateSectionResult, n as BulkCreateSectionsRequest, X as BulkDeleteSectionResult, V as BulkDeleteSectionsRequest, a8 as BulkItemResult, O as BulkSectionResult, a6 as BulkUpdateBusinessLocationIdRequest, a7 as BulkUpdateBusinessLocationIdResponse, N as BulkUpdateSectionRequest, Y as CloneSectionsRequest, Z as CloneSectionsResponse, C as CreateSectionRequest, m as CreateSectionResponse, u as CursorPaging, v as CursorPagingMetadata, x as CursorQuery, y as CursorQueryPagingMethodOneOf, w as Cursors, l as DeleteLocationIdFromItems, R as DeleteSectionRequest, T as DeleteSectionResponse, _ as DomainEvent, $ as DomainEventBodyOneOf, i as DuplicateSectionRequest, a5 as Empty, a0 as EntityCreatedEvent, a3 as EntityDeletedEvent, a2 as EntityUpdatedEvent, ad as EventMetadata, E as ExtendedFields, F as File, G as GetSectionRequest, s as GetSectionResponse, aa as IdentificationData, ab as IdentificationDataIdOneOf, I as InvalidateCache, j as InvalidateCacheGetByOneOf, p as ItemMetadata, t as ListSectionsRequest, a9 as MessageEnvelope, P as Page, Q as QuerySectionsRequest, H as QuerySectionsResponse, a1 as RestoreInfo, ae as SectionCreatedEnvelope, af as SectionDeletedEnvelope, ag as SectionUpdatedEnvelope, ah as SectionsQueryResult, h as SortOrder, z as Sorting, k as URI, J as UpdateSectionRequest, K as UpdateSectionResponse, W as WebhookIdentityType } from './restaurants-menus-v1-section-sections.universal-BZUvATJu.js';
4
+ import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
5
+
6
+ declare function duplicateSection$1(httpClient: HttpClient): DuplicateSectionSignature;
7
+ interface DuplicateSectionSignature {
8
+ /** @param - Section id to be duplicated. */
9
+ (_id: string, options?: DuplicateSectionOptions | undefined): Promise<DuplicateSectionResponse>;
10
+ }
11
+ declare function createSection$1(httpClient: HttpClient): CreateSectionSignature;
12
+ interface CreateSectionSignature {
13
+ /**
14
+ * > **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).
15
+ *
16
+ * Creates a section.
17
+ *
18
+ * To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).
19
+ * @param - Section details.
20
+ * @returns Section.
21
+ */
22
+ (section: Section): Promise<Section>;
23
+ }
24
+ declare function bulkCreateSections$1(httpClient: HttpClient): BulkCreateSectionsSignature;
25
+ interface BulkCreateSectionsSignature {
26
+ /**
27
+ * > **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).
28
+ *
29
+ * Creates multiple sections at once.
30
+ * @param - Sections details.
31
+ */
32
+ (sections: Section[], options?: BulkCreateSectionsOptions | undefined): Promise<BulkCreateSectionsResponse>;
33
+ }
34
+ declare function getSection$1(httpClient: HttpClient): GetSectionSignature;
35
+ interface GetSectionSignature {
36
+ /**
37
+ * > **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).
38
+ *
39
+ * Retrieves a section by ID.
40
+ * @param - Section ID.
41
+ * @returns Section.
42
+ */
43
+ (sectionId: string): Promise<Section>;
44
+ }
45
+ declare function listSections$1(httpClient: HttpClient): ListSectionsSignature;
46
+ interface ListSectionsSignature {
47
+ /**
48
+ * > **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).
49
+ *
50
+ * Retrieves a list of up to 500 sections.
51
+ */
52
+ (options?: ListSectionsOptions | undefined): Promise<ListSectionsResponse>;
53
+ }
54
+ declare function querySections$1(httpClient: HttpClient): QuerySectionsSignature;
55
+ interface QuerySectionsSignature {
56
+ /**
57
+ * Creates a query to retrieve a list of sections.
58
+ *
59
+ * The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.
60
+ *
61
+ * The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.
62
+ *
63
+ * 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.
64
+ *
65
+ * `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:
66
+ *
67
+ * * [`limit(100)`](/sections/sections-query-builder/limit)
68
+ *
69
+ * 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`.
70
+ */
71
+ (): SectionsQueryBuilder;
72
+ }
73
+ declare function updateSection$1(httpClient: HttpClient): UpdateSectionSignature;
74
+ interface UpdateSectionSignature {
75
+ /**
76
+ * > **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).
77
+ *
78
+ * Updates a section.
79
+ *
80
+ * 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.
81
+ * @param - Section ID.
82
+ * @returns Updated section.
83
+ */
84
+ (_id: string, section: UpdateSection): Promise<Section>;
85
+ }
86
+ declare function bulkUpdateSection$1(httpClient: HttpClient): BulkUpdateSectionSignature;
87
+ interface BulkUpdateSectionSignature {
88
+ /**
89
+ * > **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).
90
+ *
91
+ * Updates multiple sections at once.
92
+ *
93
+ * 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.
94
+ * @param - Sections to update.
95
+ */
96
+ (sections: MaskedSection[], options?: BulkUpdateSectionOptions | undefined): Promise<BulkUpdateSectionResponse>;
97
+ }
98
+ declare function deleteSection$1(httpClient: HttpClient): DeleteSectionSignature;
99
+ interface DeleteSectionSignature {
100
+ /**
101
+ * > **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).
102
+ *
103
+ * Deletes a section.
104
+ * @param - Section ID.
105
+ */
106
+ (sectionId: string): Promise<void>;
107
+ }
108
+ declare function bulkDeleteSections$1(httpClient: HttpClient): BulkDeleteSectionsSignature;
109
+ interface BulkDeleteSectionsSignature {
110
+ /**
111
+ * > **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).
112
+ *
113
+ * Deletes multiple sections at once.
114
+ * @param - Section IDs.
115
+ */
116
+ (ids: string[]): Promise<BulkDeleteSectionsResponse>;
117
+ }
118
+
119
+ declare const duplicateSection: MaybeContext<BuildRESTFunction<typeof duplicateSection$1> & typeof duplicateSection$1>;
120
+ declare const createSection: MaybeContext<BuildRESTFunction<typeof createSection$1> & typeof createSection$1>;
121
+ declare const bulkCreateSections: MaybeContext<BuildRESTFunction<typeof bulkCreateSections$1> & typeof bulkCreateSections$1>;
122
+ declare const getSection: MaybeContext<BuildRESTFunction<typeof getSection$1> & typeof getSection$1>;
123
+ declare const listSections: MaybeContext<BuildRESTFunction<typeof listSections$1> & typeof listSections$1>;
124
+ declare const querySections: MaybeContext<BuildRESTFunction<typeof querySections$1> & typeof querySections$1>;
125
+ declare const updateSection: MaybeContext<BuildRESTFunction<typeof updateSection$1> & typeof updateSection$1>;
126
+ declare const bulkUpdateSection: MaybeContext<BuildRESTFunction<typeof bulkUpdateSection$1> & typeof bulkUpdateSection$1>;
127
+ declare const deleteSection: MaybeContext<BuildRESTFunction<typeof deleteSection$1> & typeof deleteSection$1>;
128
+ declare const bulkDeleteSections: MaybeContext<BuildRESTFunction<typeof bulkDeleteSections$1> & typeof bulkDeleteSections$1>;
129
+ /** */
130
+ declare const onSectionCreated: ReturnType<typeof createEventModule<typeof publicOnSectionCreated>>;
131
+ /** */
132
+ declare const onSectionDeleted: ReturnType<typeof createEventModule<typeof publicOnSectionDeleted>>;
133
+ /**
134
+ * Triggered when a section is updated.
135
+ */
136
+ declare const onSectionUpdated: ReturnType<typeof createEventModule<typeof publicOnSectionUpdated>>;
137
+
138
+ export { BulkCreateSectionsOptions, BulkCreateSectionsResponse, BulkDeleteSectionsResponse, BulkUpdateSectionOptions, BulkUpdateSectionResponse, DuplicateSectionOptions, DuplicateSectionResponse, ListSectionsOptions, ListSectionsResponse, MaskedSection, Section, SectionsQueryBuilder, UpdateSection, bulkCreateSections, bulkDeleteSections, bulkUpdateSection, createSection, deleteSection, duplicateSection, getSection, listSections, onSectionCreated, onSectionDeleted, onSectionUpdated, querySections, updateSection };