@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,503 @@
|
|
|
1
|
+
export interface Section {
|
|
2
|
+
/**
|
|
3
|
+
* Section ID.
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
id?: string | null;
|
|
7
|
+
/**
|
|
8
|
+
* Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section.
|
|
9
|
+
* @readonly
|
|
10
|
+
*/
|
|
11
|
+
revision?: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Date and time the section was created.
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
createdDate?: Date | null;
|
|
17
|
+
/**
|
|
18
|
+
* Date and time the section was updated.
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
updatedDate?: Date | null;
|
|
22
|
+
/** Section name. */
|
|
23
|
+
name?: string;
|
|
24
|
+
/** Section description. */
|
|
25
|
+
description?: string | null;
|
|
26
|
+
/** Main section image. */
|
|
27
|
+
image?: Image;
|
|
28
|
+
/** Additional section images. */
|
|
29
|
+
additionalImages?: Image[];
|
|
30
|
+
/** Item IDs. */
|
|
31
|
+
itemIds?: string[];
|
|
32
|
+
/** Extended fields. */
|
|
33
|
+
extendedFields?: ExtendedFields;
|
|
34
|
+
/** Whether the section is visible in the menu for site visitors. */
|
|
35
|
+
visible?: boolean | null;
|
|
36
|
+
}
|
|
37
|
+
export interface Image {
|
|
38
|
+
/** WixMedia image ID. */
|
|
39
|
+
id?: string;
|
|
40
|
+
/** Image URL. */
|
|
41
|
+
url?: string;
|
|
42
|
+
/** Original image height. */
|
|
43
|
+
height?: number;
|
|
44
|
+
/** Original image width. */
|
|
45
|
+
width?: number;
|
|
46
|
+
/** Image alt text. */
|
|
47
|
+
altText?: string | null;
|
|
48
|
+
/** Image filename. */
|
|
49
|
+
filename?: string | null;
|
|
50
|
+
}
|
|
51
|
+
export interface ExtendedFields {
|
|
52
|
+
/**
|
|
53
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
54
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
55
|
+
*
|
|
56
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
57
|
+
*
|
|
58
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
59
|
+
*/
|
|
60
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
61
|
+
}
|
|
62
|
+
export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
63
|
+
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
64
|
+
metaSiteId?: string;
|
|
65
|
+
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
66
|
+
siteId?: string;
|
|
67
|
+
/** Invalidate by App */
|
|
68
|
+
app?: App;
|
|
69
|
+
/** Invalidate by page id */
|
|
70
|
+
page?: Page;
|
|
71
|
+
/** Invalidate by URI path */
|
|
72
|
+
uri?: URI;
|
|
73
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
74
|
+
file?: File;
|
|
75
|
+
/** tell us why you're invalidating the cache. You don't need to add your app name */
|
|
76
|
+
reason?: string | null;
|
|
77
|
+
/** Is local DS */
|
|
78
|
+
localDc?: boolean;
|
|
79
|
+
hardPurge?: boolean;
|
|
80
|
+
}
|
|
81
|
+
/** @oneof */
|
|
82
|
+
export interface InvalidateCacheGetByOneOf {
|
|
83
|
+
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
84
|
+
metaSiteId?: string;
|
|
85
|
+
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
86
|
+
siteId?: string;
|
|
87
|
+
/** Invalidate by App */
|
|
88
|
+
app?: App;
|
|
89
|
+
/** Invalidate by page id */
|
|
90
|
+
page?: Page;
|
|
91
|
+
/** Invalidate by URI path */
|
|
92
|
+
uri?: URI;
|
|
93
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
94
|
+
file?: File;
|
|
95
|
+
}
|
|
96
|
+
export interface App {
|
|
97
|
+
/** The AppDefId */
|
|
98
|
+
appDefId?: string;
|
|
99
|
+
/** The instance Id */
|
|
100
|
+
instanceId?: string;
|
|
101
|
+
}
|
|
102
|
+
export interface Page {
|
|
103
|
+
/** the msid the page is on */
|
|
104
|
+
metaSiteId?: string;
|
|
105
|
+
/** Invalidate by Page ID */
|
|
106
|
+
pageId?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface URI {
|
|
109
|
+
/** the msid the URI is on */
|
|
110
|
+
metaSiteId?: string;
|
|
111
|
+
/** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
|
|
112
|
+
uriPath?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface File {
|
|
115
|
+
/** the msid the file is related to */
|
|
116
|
+
metaSiteId?: string;
|
|
117
|
+
/** Invalidate by filename (for media files such as PDFs) */
|
|
118
|
+
fileName?: string;
|
|
119
|
+
}
|
|
120
|
+
export interface CreateSectionRequest {
|
|
121
|
+
/** Section details. */
|
|
122
|
+
section: Section;
|
|
123
|
+
}
|
|
124
|
+
export interface CreateSectionResponse {
|
|
125
|
+
/** Section. */
|
|
126
|
+
section?: Section;
|
|
127
|
+
}
|
|
128
|
+
export interface BulkCreateSectionsRequest {
|
|
129
|
+
/** Sections details. */
|
|
130
|
+
sections: Section[];
|
|
131
|
+
/** Whether to receive the created sections in the response. */
|
|
132
|
+
returnEntity?: boolean;
|
|
133
|
+
}
|
|
134
|
+
export interface BulkCreateSectionsResponse {
|
|
135
|
+
/** Information about the created sections. */
|
|
136
|
+
results?: BulkCreateSectionResult[];
|
|
137
|
+
/** Metadata for the API call. */
|
|
138
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
139
|
+
}
|
|
140
|
+
export interface BulkCreateSectionResult {
|
|
141
|
+
/** Metadata for created sections. */
|
|
142
|
+
itemMetadata?: ItemMetadata;
|
|
143
|
+
/** Created section. Only returned if `returnEntity` is set to `true`. */
|
|
144
|
+
item?: Section;
|
|
145
|
+
}
|
|
146
|
+
export interface ItemMetadata {
|
|
147
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
148
|
+
id?: string | null;
|
|
149
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
150
|
+
originalIndex?: number;
|
|
151
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
152
|
+
success?: boolean;
|
|
153
|
+
/** Details about the error in case of failure. */
|
|
154
|
+
error?: ApplicationError;
|
|
155
|
+
}
|
|
156
|
+
export interface ApplicationError {
|
|
157
|
+
/** Error code. */
|
|
158
|
+
code?: string;
|
|
159
|
+
/** Description of the error. */
|
|
160
|
+
description?: string;
|
|
161
|
+
/** Data related to the error. */
|
|
162
|
+
data?: Record<string, any> | null;
|
|
163
|
+
}
|
|
164
|
+
export interface BulkActionMetadata {
|
|
165
|
+
/** Number of items that were successfully processed. */
|
|
166
|
+
totalSuccesses?: number;
|
|
167
|
+
/** Number of items that couldn't be processed. */
|
|
168
|
+
totalFailures?: number;
|
|
169
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
170
|
+
undetailedFailures?: number;
|
|
171
|
+
}
|
|
172
|
+
export interface GetSectionRequest {
|
|
173
|
+
/** Section ID. */
|
|
174
|
+
sectionId: string;
|
|
175
|
+
}
|
|
176
|
+
export interface GetSectionResponse {
|
|
177
|
+
/** Section. */
|
|
178
|
+
section?: Section;
|
|
179
|
+
}
|
|
180
|
+
export interface ListSectionsRequest {
|
|
181
|
+
/** Section IDs. */
|
|
182
|
+
sectionIds?: string[];
|
|
183
|
+
/** The metadata of the paginated results. */
|
|
184
|
+
paging?: CursorPaging;
|
|
185
|
+
/** Whether to return only sections that are visible to site visitors. */
|
|
186
|
+
onlyVisible?: boolean | null;
|
|
187
|
+
}
|
|
188
|
+
export interface CursorPaging {
|
|
189
|
+
/** Number of items to load. */
|
|
190
|
+
limit?: number | null;
|
|
191
|
+
/**
|
|
192
|
+
* Pointer to the next or previous page in the list of results.
|
|
193
|
+
*
|
|
194
|
+
* You can get the relevant cursor token
|
|
195
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
196
|
+
* Not relevant for the first request.
|
|
197
|
+
*/
|
|
198
|
+
cursor?: string | null;
|
|
199
|
+
}
|
|
200
|
+
export interface ListSectionsResponse {
|
|
201
|
+
/** Retrieved sections. */
|
|
202
|
+
sections?: Section[];
|
|
203
|
+
/** The metadata of the paginated results. */
|
|
204
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
205
|
+
}
|
|
206
|
+
export interface CursorPagingMetadata {
|
|
207
|
+
/** Number of items returned in the response. */
|
|
208
|
+
count?: number | null;
|
|
209
|
+
/** Offset that was requested. */
|
|
210
|
+
cursors?: Cursors;
|
|
211
|
+
/**
|
|
212
|
+
* Indicates if there are more results after the current page.
|
|
213
|
+
* If `true`, another page of results can be retrieved.
|
|
214
|
+
* If `false`, this is the last page.
|
|
215
|
+
*/
|
|
216
|
+
hasNext?: boolean | null;
|
|
217
|
+
}
|
|
218
|
+
export interface Cursors {
|
|
219
|
+
/** Cursor pointing to next page in the list of results. */
|
|
220
|
+
next?: string | null;
|
|
221
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
222
|
+
prev?: string | null;
|
|
223
|
+
}
|
|
224
|
+
export interface QuerySectionsRequest {
|
|
225
|
+
/** Query options. */
|
|
226
|
+
query?: CursorQuery;
|
|
227
|
+
}
|
|
228
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
229
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
230
|
+
cursorPaging?: CursorPaging;
|
|
231
|
+
/**
|
|
232
|
+
* Filter object in the following format:
|
|
233
|
+
* `"filter" : {
|
|
234
|
+
* "fieldName1": "value1",
|
|
235
|
+
* "fieldName2":{"$operator":"value2"}
|
|
236
|
+
* }`
|
|
237
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
238
|
+
*/
|
|
239
|
+
filter?: Record<string, any> | null;
|
|
240
|
+
/**
|
|
241
|
+
* Sort object in the following format:
|
|
242
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
243
|
+
*/
|
|
244
|
+
sort?: Sorting[];
|
|
245
|
+
}
|
|
246
|
+
/** @oneof */
|
|
247
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
248
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
249
|
+
cursorPaging?: CursorPaging;
|
|
250
|
+
}
|
|
251
|
+
export interface Sorting {
|
|
252
|
+
/** Name of the field to sort by. */
|
|
253
|
+
fieldName?: string;
|
|
254
|
+
/** Sort order. */
|
|
255
|
+
order?: SortOrder;
|
|
256
|
+
}
|
|
257
|
+
export declare enum SortOrder {
|
|
258
|
+
ASC = "ASC",
|
|
259
|
+
DESC = "DESC"
|
|
260
|
+
}
|
|
261
|
+
export interface QuerySectionsResponse {
|
|
262
|
+
/** Retrieved sections. */
|
|
263
|
+
sections?: Section[];
|
|
264
|
+
/** The metadata of the paginated results. */
|
|
265
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
266
|
+
}
|
|
267
|
+
export interface UpdateSectionRequest {
|
|
268
|
+
/** Section update. */
|
|
269
|
+
section: Section;
|
|
270
|
+
}
|
|
271
|
+
export interface UpdateSectionResponse {
|
|
272
|
+
/** Updated section. */
|
|
273
|
+
section?: Section;
|
|
274
|
+
}
|
|
275
|
+
export interface BulkUpdateSectionRequest {
|
|
276
|
+
/** Sections to update. */
|
|
277
|
+
sections: MaskedSection[];
|
|
278
|
+
/** Whether to receive the updated sections in the response. */
|
|
279
|
+
returnEntity?: boolean;
|
|
280
|
+
}
|
|
281
|
+
export interface MaskedSection {
|
|
282
|
+
/** Section update. */
|
|
283
|
+
section?: Section;
|
|
284
|
+
/** Explicit list of fields to update. */
|
|
285
|
+
mask?: string[];
|
|
286
|
+
}
|
|
287
|
+
export interface BulkUpdateSectionResponse {
|
|
288
|
+
/** Information about the updated sections. */
|
|
289
|
+
results?: BulkSectionResult[];
|
|
290
|
+
/** Metadata for the API call. */
|
|
291
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
292
|
+
}
|
|
293
|
+
export interface BulkSectionResult {
|
|
294
|
+
/** Whether to receive the updated sections in the response. */
|
|
295
|
+
sectionMetadata?: ItemMetadata;
|
|
296
|
+
/** Updated section. Only returned if `returnEntity` is set to `true`. */
|
|
297
|
+
section?: Section;
|
|
298
|
+
}
|
|
299
|
+
export interface DeleteSectionRequest {
|
|
300
|
+
/** Section ID. */
|
|
301
|
+
sectionId: string;
|
|
302
|
+
}
|
|
303
|
+
export interface DeleteSectionResponse {
|
|
304
|
+
}
|
|
305
|
+
export interface BulkDeleteSectionsRequest {
|
|
306
|
+
/** Section IDs. */
|
|
307
|
+
ids: string[];
|
|
308
|
+
}
|
|
309
|
+
export interface BulkDeleteSectionsResponse {
|
|
310
|
+
/** Information about the deleted sections. */
|
|
311
|
+
results?: BulkDeleteSectionResult[];
|
|
312
|
+
/** Metadata for the API call. */
|
|
313
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
314
|
+
}
|
|
315
|
+
export interface BulkDeleteSectionResult {
|
|
316
|
+
/** Metadata for deleted sections. */
|
|
317
|
+
itemMetadata?: ItemMetadata;
|
|
318
|
+
}
|
|
319
|
+
export interface CloneSectionsRequest {
|
|
320
|
+
/** The MetaSiteId to clone from. */
|
|
321
|
+
metaSiteId?: string;
|
|
322
|
+
}
|
|
323
|
+
export interface CloneSectionsResponse {
|
|
324
|
+
}
|
|
325
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
326
|
+
createdEvent?: EntityCreatedEvent;
|
|
327
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
328
|
+
deletedEvent?: EntityDeletedEvent;
|
|
329
|
+
actionEvent?: ActionEvent;
|
|
330
|
+
/**
|
|
331
|
+
* Unique event ID.
|
|
332
|
+
* Allows clients to ignore duplicate webhooks.
|
|
333
|
+
*/
|
|
334
|
+
id?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Assumes actions are also always typed to an entity_type
|
|
337
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
338
|
+
*/
|
|
339
|
+
entityFqdn?: string;
|
|
340
|
+
/**
|
|
341
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
342
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
343
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
344
|
+
*/
|
|
345
|
+
slug?: string;
|
|
346
|
+
/** ID of the entity associated with the event. */
|
|
347
|
+
entityId?: string;
|
|
348
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
349
|
+
eventTime?: Date | null;
|
|
350
|
+
/**
|
|
351
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
352
|
+
* (for example, GDPR).
|
|
353
|
+
*/
|
|
354
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
355
|
+
/** If present, indicates the action that triggered the event. */
|
|
356
|
+
originatedFrom?: string | null;
|
|
357
|
+
/**
|
|
358
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
359
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
360
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
361
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
362
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
363
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
364
|
+
*/
|
|
365
|
+
entityEventSequence?: string | null;
|
|
366
|
+
}
|
|
367
|
+
/** @oneof */
|
|
368
|
+
export interface DomainEventBodyOneOf {
|
|
369
|
+
createdEvent?: EntityCreatedEvent;
|
|
370
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
371
|
+
deletedEvent?: EntityDeletedEvent;
|
|
372
|
+
actionEvent?: ActionEvent;
|
|
373
|
+
}
|
|
374
|
+
export interface EntityCreatedEvent {
|
|
375
|
+
entityAsJson?: string;
|
|
376
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
377
|
+
restoreInfo?: RestoreInfo;
|
|
378
|
+
}
|
|
379
|
+
export interface RestoreInfo {
|
|
380
|
+
deletedDate?: Date | null;
|
|
381
|
+
}
|
|
382
|
+
export interface EntityUpdatedEvent {
|
|
383
|
+
/**
|
|
384
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
385
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
386
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
387
|
+
*/
|
|
388
|
+
currentEntityAsJson?: string;
|
|
389
|
+
}
|
|
390
|
+
export interface EntityDeletedEvent {
|
|
391
|
+
/** Entity that was deleted */
|
|
392
|
+
deletedEntityAsJson?: string | null;
|
|
393
|
+
}
|
|
394
|
+
export interface ActionEvent {
|
|
395
|
+
bodyAsJson?: string;
|
|
396
|
+
}
|
|
397
|
+
export interface Empty {
|
|
398
|
+
}
|
|
399
|
+
export interface MessageEnvelope {
|
|
400
|
+
/** App instance ID. */
|
|
401
|
+
instanceId?: string | null;
|
|
402
|
+
/** Event type. */
|
|
403
|
+
eventType?: string;
|
|
404
|
+
/** The identification type and identity data. */
|
|
405
|
+
identity?: IdentificationData;
|
|
406
|
+
/** Stringify payload. */
|
|
407
|
+
data?: string;
|
|
408
|
+
}
|
|
409
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
410
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
411
|
+
anonymousVisitorId?: string;
|
|
412
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
413
|
+
memberId?: string;
|
|
414
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
415
|
+
wixUserId?: string;
|
|
416
|
+
/** ID of an app. */
|
|
417
|
+
appId?: string;
|
|
418
|
+
/** @readonly */
|
|
419
|
+
identityType?: WebhookIdentityType;
|
|
420
|
+
}
|
|
421
|
+
/** @oneof */
|
|
422
|
+
export interface IdentificationDataIdOneOf {
|
|
423
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
424
|
+
anonymousVisitorId?: string;
|
|
425
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
426
|
+
memberId?: string;
|
|
427
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
428
|
+
wixUserId?: string;
|
|
429
|
+
/** ID of an app. */
|
|
430
|
+
appId?: string;
|
|
431
|
+
}
|
|
432
|
+
export declare enum WebhookIdentityType {
|
|
433
|
+
UNKNOWN = "UNKNOWN",
|
|
434
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
435
|
+
MEMBER = "MEMBER",
|
|
436
|
+
WIX_USER = "WIX_USER",
|
|
437
|
+
APP = "APP"
|
|
438
|
+
}
|
|
439
|
+
interface ImageNonNullableFields {
|
|
440
|
+
id: string;
|
|
441
|
+
url: string;
|
|
442
|
+
height: number;
|
|
443
|
+
width: number;
|
|
444
|
+
}
|
|
445
|
+
interface SectionNonNullableFields {
|
|
446
|
+
name: string;
|
|
447
|
+
image?: ImageNonNullableFields;
|
|
448
|
+
additionalImages: ImageNonNullableFields[];
|
|
449
|
+
itemIds: string[];
|
|
450
|
+
}
|
|
451
|
+
export interface CreateSectionResponseNonNullableFields {
|
|
452
|
+
section?: SectionNonNullableFields;
|
|
453
|
+
}
|
|
454
|
+
interface ApplicationErrorNonNullableFields {
|
|
455
|
+
code: string;
|
|
456
|
+
description: string;
|
|
457
|
+
}
|
|
458
|
+
interface ItemMetadataNonNullableFields {
|
|
459
|
+
originalIndex: number;
|
|
460
|
+
success: boolean;
|
|
461
|
+
error?: ApplicationErrorNonNullableFields;
|
|
462
|
+
}
|
|
463
|
+
interface BulkCreateSectionResultNonNullableFields {
|
|
464
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
465
|
+
item?: SectionNonNullableFields;
|
|
466
|
+
}
|
|
467
|
+
interface BulkActionMetadataNonNullableFields {
|
|
468
|
+
totalSuccesses: number;
|
|
469
|
+
totalFailures: number;
|
|
470
|
+
undetailedFailures: number;
|
|
471
|
+
}
|
|
472
|
+
export interface BulkCreateSectionsResponseNonNullableFields {
|
|
473
|
+
results: BulkCreateSectionResultNonNullableFields[];
|
|
474
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
475
|
+
}
|
|
476
|
+
export interface GetSectionResponseNonNullableFields {
|
|
477
|
+
section?: SectionNonNullableFields;
|
|
478
|
+
}
|
|
479
|
+
export interface ListSectionsResponseNonNullableFields {
|
|
480
|
+
sections: SectionNonNullableFields[];
|
|
481
|
+
}
|
|
482
|
+
export interface QuerySectionsResponseNonNullableFields {
|
|
483
|
+
sections: SectionNonNullableFields[];
|
|
484
|
+
}
|
|
485
|
+
export interface UpdateSectionResponseNonNullableFields {
|
|
486
|
+
section?: SectionNonNullableFields;
|
|
487
|
+
}
|
|
488
|
+
interface BulkSectionResultNonNullableFields {
|
|
489
|
+
sectionMetadata?: ItemMetadataNonNullableFields;
|
|
490
|
+
section?: SectionNonNullableFields;
|
|
491
|
+
}
|
|
492
|
+
export interface BulkUpdateSectionResponseNonNullableFields {
|
|
493
|
+
results: BulkSectionResultNonNullableFields[];
|
|
494
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
495
|
+
}
|
|
496
|
+
interface BulkDeleteSectionResultNonNullableFields {
|
|
497
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
498
|
+
}
|
|
499
|
+
export interface BulkDeleteSectionsResponseNonNullableFields {
|
|
500
|
+
results: BulkDeleteSectionResultNonNullableFields[];
|
|
501
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
502
|
+
}
|
|
503
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = void 0;
|
|
4
|
+
var SortOrder;
|
|
5
|
+
(function (SortOrder) {
|
|
6
|
+
SortOrder["ASC"] = "ASC";
|
|
7
|
+
SortOrder["DESC"] = "DESC";
|
|
8
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
9
|
+
var WebhookIdentityType;
|
|
10
|
+
(function (WebhookIdentityType) {
|
|
11
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
12
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
13
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
14
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
15
|
+
WebhookIdentityType["APP"] = "APP";
|
|
16
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
17
|
+
//# sourceMappingURL=restaurants-menus-v1-section-sections.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restaurants-menus-v1-section-sections.types.js","sourceRoot":"","sources":["../../../src/restaurants-menus-v1-section-sections.types.ts"],"names":[],"mappings":";;;AA4RA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAmMD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|