@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.
- package/build/{cjs/src/restaurants-menus-v1-section-sections.public.d.ts → index.d.mts} +36 -19
- package/build/{internal/cjs/src/restaurants-menus-v1-section-sections.public.d.ts → index.d.ts} +36 -19
- package/build/index.js +1118 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1080 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/restaurants-menus-v1-section-sections.public.d.ts → index.d.mts} +36 -19
- package/build/{es/src/restaurants-menus-v1-section-sections.public.d.ts → internal/index.d.ts} +36 -19
- package/build/internal/index.js +1118 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1080 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +357 -0
- package/build/internal/meta.d.ts +357 -0
- package/build/internal/meta.js +706 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +670 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/internal/{cjs/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.mts} +79 -307
- package/build/internal/{es/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.ts} +79 -307
- package/build/meta.d.mts +357 -0
- package/build/meta.d.ts +357 -0
- package/build/meta.js +706 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +670 -0
- package/build/meta.mjs.map +1 -0
- package/build/{cjs/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.mts} +79 -307
- package/build/{es/src/restaurants-menus-v1-section-sections.universal.d.ts → restaurants-menus-v1-section-sections.universal-BZUvATJu.d.ts} +79 -307
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
- package/build/cjs/src/restaurants-menus-v1-section-sections.context.js +0 -31
- package/build/cjs/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
- package/build/cjs/src/restaurants-menus-v1-section-sections.http.js +0 -529
- package/build/cjs/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
- package/build/cjs/src/restaurants-menus-v1-section-sections.meta.js +0 -218
- package/build/cjs/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-section-sections.public.js +0 -125
- package/build/cjs/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-section-sections.types.d.ts +0 -610
- package/build/cjs/src/restaurants-menus-v1-section-sections.types.js +0 -17
- package/build/cjs/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
- package/build/cjs/src/restaurants-menus-v1-section-sections.universal.js +0 -587
- package/build/cjs/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
- package/build/es/src/restaurants-menus-v1-section-sections.context.js +0 -26
- package/build/es/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
- package/build/es/src/restaurants-menus-v1-section-sections.http.js +0 -516
- package/build/es/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
- package/build/es/src/restaurants-menus-v1-section-sections.meta.js +0 -182
- package/build/es/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-section-sections.public.js +0 -110
- package/build/es/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-section-sections.types.d.ts +0 -610
- package/build/es/src/restaurants-menus-v1-section-sections.types.js +0 -14
- package/build/es/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
- package/build/es/src/restaurants-menus-v1-section-sections.universal.js +0 -551
- package/build/es/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.js +0 -31
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.js +0 -529
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.js +0 -218
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.js +0 -125
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.d.ts +0 -610
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.js +0 -17
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.js +0 -587
- package/build/internal/cjs/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-section-sections.context.d.ts +0 -26
- package/build/internal/es/src/restaurants-menus-v1-section-sections.context.js +0 -26
- package/build/internal/es/src/restaurants-menus-v1-section-sections.context.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-section-sections.http.d.ts +0 -72
- package/build/internal/es/src/restaurants-menus-v1-section-sections.http.js +0 -516
- package/build/internal/es/src/restaurants-menus-v1-section-sections.http.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.d.ts +0 -30
- package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.js +0 -182
- package/build/internal/es/src/restaurants-menus-v1-section-sections.meta.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-section-sections.public.js +0 -110
- package/build/internal/es/src/restaurants-menus-v1-section-sections.public.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-section-sections.types.d.ts +0 -610
- package/build/internal/es/src/restaurants-menus-v1-section-sections.types.js +0 -14
- package/build/internal/es/src/restaurants-menus-v1-section-sections.types.js.map +0 -1
- package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.js +0 -551
- package/build/internal/es/src/restaurants-menus-v1-section-sections.universal.js.map +0 -1
package/build/meta.d.ts
ADDED
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { i as DuplicateSectionRequest$1, a as DuplicateSectionResponse$1, C as CreateSectionRequest$1, m as CreateSectionResponse$1, n as BulkCreateSectionsRequest$1, b as BulkCreateSectionsResponse$1, G as GetSectionRequest$1, s as GetSectionResponse$1, t as ListSectionsRequest$1, c as ListSectionsResponse$1, Q as QuerySectionsRequest$1, H as QuerySectionsResponse$1, J as UpdateSectionRequest$1, K as UpdateSectionResponse$1, N as BulkUpdateSectionRequest$1, f as BulkUpdateSectionResponse$1, R as DeleteSectionRequest$1, T as DeleteSectionResponse$1, V as BulkDeleteSectionsRequest$1, g as BulkDeleteSectionsResponse$1 } from './restaurants-menus-v1-section-sections.universal-BZUvATJu.js';
|
|
2
|
+
|
|
3
|
+
interface Section {
|
|
4
|
+
/**
|
|
5
|
+
* Section ID.
|
|
6
|
+
* @format GUID
|
|
7
|
+
* @readonly
|
|
8
|
+
*/
|
|
9
|
+
id?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* 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.
|
|
12
|
+
* @readonly
|
|
13
|
+
*/
|
|
14
|
+
revision?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Date and time the section was created.
|
|
17
|
+
* @readonly
|
|
18
|
+
*/
|
|
19
|
+
createdDate?: Date | null;
|
|
20
|
+
/**
|
|
21
|
+
* Date and time the section was updated.
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
updatedDate?: Date | null;
|
|
25
|
+
/**
|
|
26
|
+
* Section name.
|
|
27
|
+
* @minLength 1
|
|
28
|
+
* @maxLength 500
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Section description.
|
|
33
|
+
* @maxLength 1500
|
|
34
|
+
*/
|
|
35
|
+
description?: string | null;
|
|
36
|
+
/** Main section image. */
|
|
37
|
+
image?: Image;
|
|
38
|
+
/**
|
|
39
|
+
* Additional section images.
|
|
40
|
+
* @maxSize 100
|
|
41
|
+
*/
|
|
42
|
+
additionalImages?: Image[];
|
|
43
|
+
/**
|
|
44
|
+
* Item IDs.
|
|
45
|
+
* @format GUID
|
|
46
|
+
* @maxSize 300
|
|
47
|
+
*/
|
|
48
|
+
itemIds?: string[];
|
|
49
|
+
/** Extended fields. */
|
|
50
|
+
extendedFields?: ExtendedFields;
|
|
51
|
+
/** Whether the section is visible in the menu for site visitors. */
|
|
52
|
+
visible?: boolean | null;
|
|
53
|
+
}
|
|
54
|
+
interface Image {
|
|
55
|
+
/** WixMedia image ID. */
|
|
56
|
+
id?: string;
|
|
57
|
+
/** Image URL. */
|
|
58
|
+
url?: string;
|
|
59
|
+
/** Original image height. */
|
|
60
|
+
height?: number;
|
|
61
|
+
/** Original image width. */
|
|
62
|
+
width?: number;
|
|
63
|
+
/** Image alt text. */
|
|
64
|
+
altText?: string | null;
|
|
65
|
+
/** Image filename. */
|
|
66
|
+
filename?: string | null;
|
|
67
|
+
}
|
|
68
|
+
interface ExtendedFields {
|
|
69
|
+
/**
|
|
70
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
71
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
72
|
+
*
|
|
73
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
74
|
+
*
|
|
75
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
76
|
+
*/
|
|
77
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
78
|
+
}
|
|
79
|
+
interface DuplicateSectionRequest {
|
|
80
|
+
/**
|
|
81
|
+
* Section id to be duplicated.
|
|
82
|
+
* @format GUID
|
|
83
|
+
*/
|
|
84
|
+
id: string;
|
|
85
|
+
/**
|
|
86
|
+
* Business location ids to duplicate the section to.
|
|
87
|
+
* @format GUID
|
|
88
|
+
* @maxSize 100
|
|
89
|
+
*/
|
|
90
|
+
businessLocationIds?: string[] | null;
|
|
91
|
+
/** Indicates whether sub-entities (such as items) should be duplicated as well. */
|
|
92
|
+
duplicateSubEntities?: boolean | null;
|
|
93
|
+
}
|
|
94
|
+
interface DuplicateSectionResponse {
|
|
95
|
+
/** @format GUID */
|
|
96
|
+
sectionId?: string[];
|
|
97
|
+
}
|
|
98
|
+
interface CreateSectionRequest {
|
|
99
|
+
/** Section details. */
|
|
100
|
+
section: Section;
|
|
101
|
+
}
|
|
102
|
+
interface CreateSectionResponse {
|
|
103
|
+
/** Section. */
|
|
104
|
+
section?: Section;
|
|
105
|
+
}
|
|
106
|
+
interface BulkCreateSectionsRequest {
|
|
107
|
+
/**
|
|
108
|
+
* Sections details.
|
|
109
|
+
* @maxSize 100
|
|
110
|
+
*/
|
|
111
|
+
sections: Section[];
|
|
112
|
+
/** Whether to receive the created sections in the response. */
|
|
113
|
+
returnEntity?: boolean;
|
|
114
|
+
}
|
|
115
|
+
interface BulkCreateSectionsResponse {
|
|
116
|
+
/** Information about the created sections. */
|
|
117
|
+
results?: BulkCreateSectionResult[];
|
|
118
|
+
/** Metadata for the API call. */
|
|
119
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
120
|
+
}
|
|
121
|
+
interface BulkCreateSectionResult {
|
|
122
|
+
/** Metadata for created sections. */
|
|
123
|
+
itemMetadata?: ItemMetadata;
|
|
124
|
+
/** Created section. Only returned if `returnEntity` is set to `true`. */
|
|
125
|
+
item?: Section;
|
|
126
|
+
}
|
|
127
|
+
interface ItemMetadata {
|
|
128
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
129
|
+
id?: string | null;
|
|
130
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
131
|
+
originalIndex?: number;
|
|
132
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
133
|
+
success?: boolean;
|
|
134
|
+
/** Details about the error in case of failure. */
|
|
135
|
+
error?: ApplicationError;
|
|
136
|
+
}
|
|
137
|
+
interface ApplicationError {
|
|
138
|
+
/** Error code. */
|
|
139
|
+
code?: string;
|
|
140
|
+
/** Description of the error. */
|
|
141
|
+
description?: string;
|
|
142
|
+
/** Data related to the error. */
|
|
143
|
+
data?: Record<string, any> | null;
|
|
144
|
+
}
|
|
145
|
+
interface BulkActionMetadata {
|
|
146
|
+
/** Number of items that were successfully processed. */
|
|
147
|
+
totalSuccesses?: number;
|
|
148
|
+
/** Number of items that couldn't be processed. */
|
|
149
|
+
totalFailures?: number;
|
|
150
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
151
|
+
undetailedFailures?: number;
|
|
152
|
+
}
|
|
153
|
+
interface GetSectionRequest {
|
|
154
|
+
/**
|
|
155
|
+
* Section ID.
|
|
156
|
+
* @format GUID
|
|
157
|
+
*/
|
|
158
|
+
sectionId: string;
|
|
159
|
+
}
|
|
160
|
+
interface GetSectionResponse {
|
|
161
|
+
/** Section. */
|
|
162
|
+
section?: Section;
|
|
163
|
+
}
|
|
164
|
+
interface ListSectionsRequest {
|
|
165
|
+
/**
|
|
166
|
+
* Section IDs.
|
|
167
|
+
* @format GUID
|
|
168
|
+
* @maxSize 500
|
|
169
|
+
*/
|
|
170
|
+
sectionIds?: string[];
|
|
171
|
+
/** The metadata of the paginated results. */
|
|
172
|
+
paging?: CursorPaging;
|
|
173
|
+
/** Whether to return only sections that are visible to site visitors. */
|
|
174
|
+
onlyVisible?: boolean | null;
|
|
175
|
+
}
|
|
176
|
+
interface CursorPaging {
|
|
177
|
+
/**
|
|
178
|
+
* Number of items to load.
|
|
179
|
+
* @max 500
|
|
180
|
+
*/
|
|
181
|
+
limit?: number | null;
|
|
182
|
+
/**
|
|
183
|
+
* Pointer to the next or previous page in the list of results.
|
|
184
|
+
*
|
|
185
|
+
* You can get the relevant cursor token
|
|
186
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
187
|
+
* Not relevant for the first request.
|
|
188
|
+
*/
|
|
189
|
+
cursor?: string | null;
|
|
190
|
+
}
|
|
191
|
+
interface ListSectionsResponse {
|
|
192
|
+
/** Retrieved sections. */
|
|
193
|
+
sections?: Section[];
|
|
194
|
+
/** The metadata of the paginated results. */
|
|
195
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
196
|
+
}
|
|
197
|
+
interface CursorPagingMetadata {
|
|
198
|
+
/** Number of items returned in the response. */
|
|
199
|
+
count?: number | null;
|
|
200
|
+
/** Offset that was requested. */
|
|
201
|
+
cursors?: Cursors;
|
|
202
|
+
/**
|
|
203
|
+
* Indicates if there are more results after the current page.
|
|
204
|
+
* If `true`, another page of results can be retrieved.
|
|
205
|
+
* If `false`, this is the last page.
|
|
206
|
+
*/
|
|
207
|
+
hasNext?: boolean | null;
|
|
208
|
+
}
|
|
209
|
+
interface Cursors {
|
|
210
|
+
/** Cursor pointing to next page in the list of results. */
|
|
211
|
+
next?: string | null;
|
|
212
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
213
|
+
prev?: string | null;
|
|
214
|
+
}
|
|
215
|
+
interface QuerySectionsRequest {
|
|
216
|
+
/** Query options. */
|
|
217
|
+
query?: CursorQuery;
|
|
218
|
+
}
|
|
219
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
220
|
+
/** 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`. */
|
|
221
|
+
cursorPaging?: CursorPaging;
|
|
222
|
+
/**
|
|
223
|
+
* Filter object in the following format:
|
|
224
|
+
* `"filter" : {
|
|
225
|
+
* "fieldName1": "value1",
|
|
226
|
+
* "fieldName2":{"$operator":"value2"}
|
|
227
|
+
* }`
|
|
228
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
229
|
+
*/
|
|
230
|
+
filter?: Record<string, any> | null;
|
|
231
|
+
/**
|
|
232
|
+
* Sort object in the following format:
|
|
233
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
234
|
+
*/
|
|
235
|
+
sort?: Sorting[];
|
|
236
|
+
}
|
|
237
|
+
/** @oneof */
|
|
238
|
+
interface CursorQueryPagingMethodOneOf {
|
|
239
|
+
/** 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`. */
|
|
240
|
+
cursorPaging?: CursorPaging;
|
|
241
|
+
}
|
|
242
|
+
interface Sorting {
|
|
243
|
+
/**
|
|
244
|
+
* Name of the field to sort by.
|
|
245
|
+
* @maxLength 512
|
|
246
|
+
*/
|
|
247
|
+
fieldName?: string;
|
|
248
|
+
/** Sort order. */
|
|
249
|
+
order?: SortOrder;
|
|
250
|
+
}
|
|
251
|
+
declare enum SortOrder {
|
|
252
|
+
ASC = "ASC",
|
|
253
|
+
DESC = "DESC"
|
|
254
|
+
}
|
|
255
|
+
interface QuerySectionsResponse {
|
|
256
|
+
/** Retrieved sections. */
|
|
257
|
+
sections?: Section[];
|
|
258
|
+
/** The metadata of the paginated results. */
|
|
259
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
260
|
+
}
|
|
261
|
+
interface UpdateSectionRequest {
|
|
262
|
+
/** Section update. */
|
|
263
|
+
section: Section;
|
|
264
|
+
}
|
|
265
|
+
interface UpdateSectionResponse {
|
|
266
|
+
/** Updated section. */
|
|
267
|
+
section?: Section;
|
|
268
|
+
}
|
|
269
|
+
interface BulkUpdateSectionRequest {
|
|
270
|
+
/**
|
|
271
|
+
* Sections to update.
|
|
272
|
+
* @minSize 1
|
|
273
|
+
* @maxSize 100
|
|
274
|
+
*/
|
|
275
|
+
sections: MaskedSection[];
|
|
276
|
+
/** Whether to receive the updated sections in the response. */
|
|
277
|
+
returnEntity?: boolean;
|
|
278
|
+
}
|
|
279
|
+
interface MaskedSection {
|
|
280
|
+
/** Section update. */
|
|
281
|
+
section?: Section;
|
|
282
|
+
/** Explicit list of fields to update. */
|
|
283
|
+
mask?: string[];
|
|
284
|
+
}
|
|
285
|
+
interface BulkUpdateSectionResponse {
|
|
286
|
+
/**
|
|
287
|
+
* Information about the updated sections.
|
|
288
|
+
* @minSize 1
|
|
289
|
+
* @maxSize 100
|
|
290
|
+
*/
|
|
291
|
+
results?: BulkSectionResult[];
|
|
292
|
+
/** Metadata for the API call. */
|
|
293
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
294
|
+
}
|
|
295
|
+
interface BulkSectionResult {
|
|
296
|
+
/** Whether to receive the updated sections in the response. */
|
|
297
|
+
sectionMetadata?: ItemMetadata;
|
|
298
|
+
/** Updated section. Only returned if `returnEntity` is set to `true`. */
|
|
299
|
+
section?: Section;
|
|
300
|
+
}
|
|
301
|
+
interface DeleteSectionRequest {
|
|
302
|
+
/**
|
|
303
|
+
* Section ID.
|
|
304
|
+
* @format GUID
|
|
305
|
+
*/
|
|
306
|
+
sectionId: string;
|
|
307
|
+
}
|
|
308
|
+
interface DeleteSectionResponse {
|
|
309
|
+
}
|
|
310
|
+
interface BulkDeleteSectionsRequest {
|
|
311
|
+
/**
|
|
312
|
+
* Section IDs.
|
|
313
|
+
* @format GUID
|
|
314
|
+
*/
|
|
315
|
+
ids: string[];
|
|
316
|
+
}
|
|
317
|
+
interface BulkDeleteSectionsResponse {
|
|
318
|
+
/** Information about the deleted sections. */
|
|
319
|
+
results?: BulkDeleteSectionResult[];
|
|
320
|
+
/** Metadata for the API call. */
|
|
321
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
322
|
+
}
|
|
323
|
+
interface BulkDeleteSectionResult {
|
|
324
|
+
/** Metadata for deleted sections. */
|
|
325
|
+
itemMetadata?: ItemMetadata;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
329
|
+
getUrl: (context: any) => string;
|
|
330
|
+
httpMethod: K;
|
|
331
|
+
path: string;
|
|
332
|
+
pathParams: M;
|
|
333
|
+
__requestType: T;
|
|
334
|
+
__originalRequestType: S;
|
|
335
|
+
__responseType: Q;
|
|
336
|
+
__originalResponseType: R;
|
|
337
|
+
};
|
|
338
|
+
declare function duplicateSection(): __PublicMethodMetaInfo<'POST', {
|
|
339
|
+
id: string;
|
|
340
|
+
}, DuplicateSectionRequest$1, DuplicateSectionRequest, DuplicateSectionResponse$1, DuplicateSectionResponse>;
|
|
341
|
+
declare function createSection(): __PublicMethodMetaInfo<'POST', {}, CreateSectionRequest$1, CreateSectionRequest, CreateSectionResponse$1, CreateSectionResponse>;
|
|
342
|
+
declare function bulkCreateSections(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionsRequest$1, BulkCreateSectionsRequest, BulkCreateSectionsResponse$1, BulkCreateSectionsResponse>;
|
|
343
|
+
declare function getSection(): __PublicMethodMetaInfo<'GET', {
|
|
344
|
+
sectionId: string;
|
|
345
|
+
}, GetSectionRequest$1, GetSectionRequest, GetSectionResponse$1, GetSectionResponse>;
|
|
346
|
+
declare function listSections(): __PublicMethodMetaInfo<'GET', {}, ListSectionsRequest$1, ListSectionsRequest, ListSectionsResponse$1, ListSectionsResponse>;
|
|
347
|
+
declare function querySections(): __PublicMethodMetaInfo<'POST', {}, QuerySectionsRequest$1, QuerySectionsRequest, QuerySectionsResponse$1, QuerySectionsResponse>;
|
|
348
|
+
declare function updateSection(): __PublicMethodMetaInfo<'PATCH', {
|
|
349
|
+
sectionId: string;
|
|
350
|
+
}, UpdateSectionRequest$1, UpdateSectionRequest, UpdateSectionResponse$1, UpdateSectionResponse>;
|
|
351
|
+
declare function bulkUpdateSection(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateSectionRequest$1, BulkUpdateSectionRequest, BulkUpdateSectionResponse$1, BulkUpdateSectionResponse>;
|
|
352
|
+
declare function deleteSection(): __PublicMethodMetaInfo<'DELETE', {
|
|
353
|
+
sectionId: string;
|
|
354
|
+
}, DeleteSectionRequest$1, DeleteSectionRequest, DeleteSectionResponse$1, DeleteSectionResponse>;
|
|
355
|
+
declare function bulkDeleteSections(): __PublicMethodMetaInfo<'DELETE', {}, BulkDeleteSectionsRequest$1, BulkDeleteSectionsRequest, BulkDeleteSectionsResponse$1, BulkDeleteSectionsResponse>;
|
|
356
|
+
|
|
357
|
+
export { type __PublicMethodMetaInfo, bulkCreateSections, bulkDeleteSections, bulkUpdateSection, createSection, deleteSection, duplicateSection, getSection, listSections, querySections, updateSection };
|