@wix/auto_sdk_online-programs_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 +109 -0
- package/build/cjs/index.js +1478 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1128 -0
- package/build/cjs/index.typings.js +1379 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +514 -0
- package/build/cjs/meta.js +1018 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +109 -0
- package/build/es/index.mjs +1436 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1128 -0
- package/build/es/index.typings.mjs +1337 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +514 -0
- package/build/es/meta.mjs +981 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +109 -0
- package/build/internal/cjs/index.js +1478 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1128 -0
- package/build/internal/cjs/index.typings.js +1379 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +514 -0
- package/build/internal/cjs/meta.js +1018 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +109 -0
- package/build/internal/es/index.mjs +1436 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +1128 -0
- package/build/internal/es/index.typings.mjs +1337 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +514 -0
- package/build/internal/es/meta.mjs +981 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
import { CreateSectionRequest as CreateSectionRequest$1, CreateSectionResponse as CreateSectionResponse$1, BulkCreateSectionRequest as BulkCreateSectionRequest$1, BulkCreateSectionResponse as BulkCreateSectionResponse$1, BulkCreateSectionMigrationRequest as BulkCreateSectionMigrationRequest$1, BulkCreateSectionMigrationResponse as BulkCreateSectionMigrationResponse$1, GetSectionRequest as GetSectionRequest$1, GetSectionResponse as GetSectionResponse$1, UpdateSectionRequest as UpdateSectionRequest$1, UpdateSectionResponse as UpdateSectionResponse$1, DeleteSectionRequest as DeleteSectionRequest$1, DeleteSectionResponse as DeleteSectionResponse$1, QuerySectionsRequest as QuerySectionsRequest$1, QuerySectionsResponse as QuerySectionsResponse$1, ListSectionsRequest as ListSectionsRequest$1, ListSectionsResponse as ListSectionsResponse$1, CloneSectionRequest as CloneSectionRequest$1, CloneSectionResponse as CloneSectionResponse$1, MoveSectionRequest as MoveSectionRequest$1, MoveSectionResponse as MoveSectionResponse$1, PublishSectionRequest as PublishSectionRequest$1, PublishSectionResponse as PublishSectionResponse$1 } from './index.typings.js';
|
|
2
|
+
import '@wix/sdk-types';
|
|
3
|
+
|
|
4
|
+
interface Section {
|
|
5
|
+
/**
|
|
6
|
+
* Program Section ID.
|
|
7
|
+
* @format GUID
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Represents the current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision
|
|
13
|
+
* @readonly
|
|
14
|
+
*/
|
|
15
|
+
revision?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Represents the time this Section was created
|
|
18
|
+
* @readonly
|
|
19
|
+
*/
|
|
20
|
+
createdDate?: Date | null;
|
|
21
|
+
/**
|
|
22
|
+
* Represents the time this Section was last updated
|
|
23
|
+
* @readonly
|
|
24
|
+
*/
|
|
25
|
+
updatedDate?: Date | null;
|
|
26
|
+
/**
|
|
27
|
+
* Program Id to which this section is assigned to.
|
|
28
|
+
* @format GUID
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
programId?: string;
|
|
32
|
+
/** title, description and media content. */
|
|
33
|
+
description?: Description;
|
|
34
|
+
/** is this section published yet? */
|
|
35
|
+
state?: StateWithLiterals;
|
|
36
|
+
/**
|
|
37
|
+
* number of program steps in this section.
|
|
38
|
+
* @readonly
|
|
39
|
+
*/
|
|
40
|
+
oldTotalSteps?: number;
|
|
41
|
+
/**
|
|
42
|
+
* number of program steps in this section.
|
|
43
|
+
* @readonly
|
|
44
|
+
*/
|
|
45
|
+
totalSteps?: number | null;
|
|
46
|
+
/** should we open this section as a trial content even though the owning program isn't purchased yet? */
|
|
47
|
+
trialSection?: boolean;
|
|
48
|
+
/** field for manual ordering of sections */
|
|
49
|
+
ordering?: number;
|
|
50
|
+
/**
|
|
51
|
+
* open after defined number of days passed.
|
|
52
|
+
* @max 5000
|
|
53
|
+
*/
|
|
54
|
+
delayInDays?: number;
|
|
55
|
+
/** extensible field */
|
|
56
|
+
extendedFields?: ExtendedFields;
|
|
57
|
+
}
|
|
58
|
+
interface Description extends DescriptionMediaOneOf {
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated
|
|
61
|
+
* @targetRemovalDate 2025-05-10
|
|
62
|
+
*/
|
|
63
|
+
image?: Image;
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated
|
|
66
|
+
* @targetRemovalDate 2025-05-10
|
|
67
|
+
*/
|
|
68
|
+
video?: VideoV2;
|
|
69
|
+
/** @maxLength 500 */
|
|
70
|
+
title?: string;
|
|
71
|
+
/** @maxLength 10000000 */
|
|
72
|
+
details?: string | null;
|
|
73
|
+
}
|
|
74
|
+
/** @oneof */
|
|
75
|
+
interface DescriptionMediaOneOf {
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated
|
|
78
|
+
* @targetRemovalDate 2025-05-10
|
|
79
|
+
*/
|
|
80
|
+
image?: Image;
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated
|
|
83
|
+
* @targetRemovalDate 2025-05-10
|
|
84
|
+
*/
|
|
85
|
+
video?: VideoV2;
|
|
86
|
+
}
|
|
87
|
+
interface Image {
|
|
88
|
+
/** WixMedia image ID. */
|
|
89
|
+
id?: string;
|
|
90
|
+
/** Image URL. */
|
|
91
|
+
url?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Original image height.
|
|
94
|
+
* @readonly
|
|
95
|
+
*/
|
|
96
|
+
height?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Original image width.
|
|
99
|
+
* @readonly
|
|
100
|
+
*/
|
|
101
|
+
width?: number;
|
|
102
|
+
/** Image alt text. */
|
|
103
|
+
altText?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Image filename.
|
|
106
|
+
* @readonly
|
|
107
|
+
*/
|
|
108
|
+
filename?: string | null;
|
|
109
|
+
}
|
|
110
|
+
interface VideoV2 {
|
|
111
|
+
/** WixMedia ID. */
|
|
112
|
+
id?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Available resolutions for the video, starting with the optimal resolution.
|
|
115
|
+
* @readonly
|
|
116
|
+
* @maxSize 100
|
|
117
|
+
*/
|
|
118
|
+
resolutions?: VideoResolution[];
|
|
119
|
+
/**
|
|
120
|
+
* Video filename.
|
|
121
|
+
* @readonly
|
|
122
|
+
*/
|
|
123
|
+
filename?: string | null;
|
|
124
|
+
}
|
|
125
|
+
interface VideoResolution {
|
|
126
|
+
/** Video URL. */
|
|
127
|
+
url?: string;
|
|
128
|
+
/** Video height. */
|
|
129
|
+
height?: number;
|
|
130
|
+
/** Video width. */
|
|
131
|
+
width?: number;
|
|
132
|
+
/** Video format for example, mp4, hls. */
|
|
133
|
+
format?: string;
|
|
134
|
+
}
|
|
135
|
+
declare enum State {
|
|
136
|
+
/** invalid default state. */
|
|
137
|
+
UNKNOWN_STATE = "UNKNOWN_STATE",
|
|
138
|
+
/** the section isn't ready to be shown to participants. */
|
|
139
|
+
DRAFT = "DRAFT",
|
|
140
|
+
/** this content is visible to participants. */
|
|
141
|
+
PUBLISHED = "PUBLISHED"
|
|
142
|
+
}
|
|
143
|
+
/** @enumType */
|
|
144
|
+
type StateWithLiterals = State | 'UNKNOWN_STATE' | 'DRAFT' | 'PUBLISHED';
|
|
145
|
+
interface ExtendedFields {
|
|
146
|
+
/**
|
|
147
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
148
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
149
|
+
*
|
|
150
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
151
|
+
*
|
|
152
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
153
|
+
*/
|
|
154
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
155
|
+
}
|
|
156
|
+
interface CreateSectionRequest {
|
|
157
|
+
/** Section to be created. */
|
|
158
|
+
section: Section;
|
|
159
|
+
/**
|
|
160
|
+
* Predefined sets of fields to return.
|
|
161
|
+
* @maxSize 1
|
|
162
|
+
*/
|
|
163
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
164
|
+
}
|
|
165
|
+
declare enum RequestedFields {
|
|
166
|
+
/** not implemented, invalid default value. */
|
|
167
|
+
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
168
|
+
/** return total number of steps in this section. */
|
|
169
|
+
TOTAL_STEPS = "TOTAL_STEPS"
|
|
170
|
+
}
|
|
171
|
+
/** @enumType */
|
|
172
|
+
type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'TOTAL_STEPS';
|
|
173
|
+
interface CreateSectionResponse {
|
|
174
|
+
/** The created Section. */
|
|
175
|
+
section?: Section;
|
|
176
|
+
}
|
|
177
|
+
interface BulkCreateSectionRequest {
|
|
178
|
+
/**
|
|
179
|
+
* List of sections you want to create
|
|
180
|
+
* @minSize 1
|
|
181
|
+
* @maxSize 100
|
|
182
|
+
*/
|
|
183
|
+
sections: Section[];
|
|
184
|
+
/**
|
|
185
|
+
* Predefined sets of fields to return.
|
|
186
|
+
* @maxSize 1
|
|
187
|
+
*/
|
|
188
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
189
|
+
}
|
|
190
|
+
interface BulkCreateSectionResponse {
|
|
191
|
+
/** bulk results */
|
|
192
|
+
results?: BulkSectionResult[];
|
|
193
|
+
/** bulk metadata */
|
|
194
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
195
|
+
}
|
|
196
|
+
interface BulkSectionResult {
|
|
197
|
+
/** item metadata */
|
|
198
|
+
itemMetadata?: ItemMetadata;
|
|
199
|
+
/** created section */
|
|
200
|
+
item?: Section;
|
|
201
|
+
/** indicator whether it was create or update */
|
|
202
|
+
action?: BulkActionTypeWithLiterals;
|
|
203
|
+
}
|
|
204
|
+
interface ItemMetadata {
|
|
205
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
206
|
+
id?: string | null;
|
|
207
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
208
|
+
originalIndex?: number;
|
|
209
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
210
|
+
success?: boolean;
|
|
211
|
+
/** Details about the error in case of failure. */
|
|
212
|
+
error?: ApplicationError;
|
|
213
|
+
}
|
|
214
|
+
interface ApplicationError {
|
|
215
|
+
/** Error code. */
|
|
216
|
+
code?: string;
|
|
217
|
+
/** Description of the error. */
|
|
218
|
+
description?: string;
|
|
219
|
+
/** Data related to the error. */
|
|
220
|
+
data?: Record<string, any> | null;
|
|
221
|
+
}
|
|
222
|
+
declare enum BulkActionType {
|
|
223
|
+
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
224
|
+
INSERT = "INSERT",
|
|
225
|
+
UPDATE = "UPDATE",
|
|
226
|
+
DELETE = "DELETE"
|
|
227
|
+
}
|
|
228
|
+
/** @enumType */
|
|
229
|
+
type BulkActionTypeWithLiterals = BulkActionType | 'UNKNOWN_ACTION_TYPE' | 'INSERT' | 'UPDATE' | 'DELETE';
|
|
230
|
+
interface BulkActionMetadata {
|
|
231
|
+
/** Number of items that were successfully processed. */
|
|
232
|
+
totalSuccesses?: number;
|
|
233
|
+
/** Number of items that couldn't be processed. */
|
|
234
|
+
totalFailures?: number;
|
|
235
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
236
|
+
undetailedFailures?: number;
|
|
237
|
+
}
|
|
238
|
+
interface BulkCreateSectionMigrationRequest {
|
|
239
|
+
/**
|
|
240
|
+
* List of sections you want to create
|
|
241
|
+
* @minSize 1
|
|
242
|
+
* @maxSize 100
|
|
243
|
+
*/
|
|
244
|
+
sections: Section[];
|
|
245
|
+
}
|
|
246
|
+
interface BulkCreateSectionMigrationResponse {
|
|
247
|
+
/** bulk results */
|
|
248
|
+
results?: BulkSectionResult[];
|
|
249
|
+
/** bulk metadata */
|
|
250
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
251
|
+
}
|
|
252
|
+
interface GetSectionRequest {
|
|
253
|
+
/**
|
|
254
|
+
* ID of the Section to retrieve.
|
|
255
|
+
* @format GUID
|
|
256
|
+
*/
|
|
257
|
+
sectionId: string;
|
|
258
|
+
/** Whenever to return description only with title or with details as well */
|
|
259
|
+
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
260
|
+
/**
|
|
261
|
+
* Predefined sets of fields to return.
|
|
262
|
+
* @maxSize 1
|
|
263
|
+
*/
|
|
264
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
265
|
+
}
|
|
266
|
+
declare enum DescriptionFieldSet {
|
|
267
|
+
STANDARD = "STANDARD",
|
|
268
|
+
EXTENDED = "EXTENDED"
|
|
269
|
+
}
|
|
270
|
+
/** @enumType */
|
|
271
|
+
type DescriptionFieldSetWithLiterals = DescriptionFieldSet | 'STANDARD' | 'EXTENDED';
|
|
272
|
+
interface GetSectionResponse {
|
|
273
|
+
/** The requested Section. */
|
|
274
|
+
section?: Section;
|
|
275
|
+
}
|
|
276
|
+
interface UpdateSectionRequest {
|
|
277
|
+
/** Section to be updated, may be partial. */
|
|
278
|
+
section?: Section;
|
|
279
|
+
/**
|
|
280
|
+
* Predefined sets of fields to return.
|
|
281
|
+
* @maxSize 1
|
|
282
|
+
*/
|
|
283
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
284
|
+
}
|
|
285
|
+
interface UpdateSectionResponse {
|
|
286
|
+
/** Updated Section. */
|
|
287
|
+
section?: Section;
|
|
288
|
+
}
|
|
289
|
+
interface DeleteSectionRequest {
|
|
290
|
+
/**
|
|
291
|
+
* Id of the Section to delete.
|
|
292
|
+
* @format GUID
|
|
293
|
+
*/
|
|
294
|
+
sectionId: string;
|
|
295
|
+
}
|
|
296
|
+
interface DeleteSectionResponse {
|
|
297
|
+
}
|
|
298
|
+
interface QuerySectionsRequest {
|
|
299
|
+
/** WQL expression. */
|
|
300
|
+
query?: CursorQuery;
|
|
301
|
+
/** Whenever to return description only with title or with details as well */
|
|
302
|
+
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
303
|
+
/**
|
|
304
|
+
* Program id to query sections
|
|
305
|
+
* @maxLength 36
|
|
306
|
+
*/
|
|
307
|
+
programId?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Predefined sets of fields to return.
|
|
310
|
+
* @maxSize 1
|
|
311
|
+
*/
|
|
312
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
313
|
+
}
|
|
314
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
315
|
+
/**
|
|
316
|
+
* Cursor paging options.
|
|
317
|
+
*
|
|
318
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
319
|
+
*/
|
|
320
|
+
cursorPaging?: CursorPaging;
|
|
321
|
+
/**
|
|
322
|
+
* Filter object.
|
|
323
|
+
*
|
|
324
|
+
* Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
325
|
+
*/
|
|
326
|
+
filter?: Record<string, any> | null;
|
|
327
|
+
/**
|
|
328
|
+
* Sort object.
|
|
329
|
+
*
|
|
330
|
+
* Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
331
|
+
* @maxSize 5
|
|
332
|
+
*/
|
|
333
|
+
sort?: Sorting[];
|
|
334
|
+
}
|
|
335
|
+
/** @oneof */
|
|
336
|
+
interface CursorQueryPagingMethodOneOf {
|
|
337
|
+
/**
|
|
338
|
+
* Cursor paging options.
|
|
339
|
+
*
|
|
340
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
341
|
+
*/
|
|
342
|
+
cursorPaging?: CursorPaging;
|
|
343
|
+
}
|
|
344
|
+
interface Sorting {
|
|
345
|
+
/**
|
|
346
|
+
* Name of the field to sort by.
|
|
347
|
+
* @maxLength 512
|
|
348
|
+
*/
|
|
349
|
+
fieldName?: string;
|
|
350
|
+
/** Sort order. */
|
|
351
|
+
order?: SortOrderWithLiterals;
|
|
352
|
+
}
|
|
353
|
+
declare enum SortOrder {
|
|
354
|
+
ASC = "ASC",
|
|
355
|
+
DESC = "DESC"
|
|
356
|
+
}
|
|
357
|
+
/** @enumType */
|
|
358
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
359
|
+
interface CursorPaging {
|
|
360
|
+
/**
|
|
361
|
+
* Maximum number of items to return in the results.
|
|
362
|
+
* @max 100
|
|
363
|
+
*/
|
|
364
|
+
limit?: number | null;
|
|
365
|
+
/**
|
|
366
|
+
* Pointer to the next or previous page in the list of results.
|
|
367
|
+
*
|
|
368
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
369
|
+
* Not relevant for the first request.
|
|
370
|
+
* @maxLength 16000
|
|
371
|
+
*/
|
|
372
|
+
cursor?: string | null;
|
|
373
|
+
}
|
|
374
|
+
interface QuerySectionsResponse {
|
|
375
|
+
/** List of Sections. */
|
|
376
|
+
sections?: Section[];
|
|
377
|
+
/** Paging metadata */
|
|
378
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
379
|
+
}
|
|
380
|
+
interface CursorPagingMetadata {
|
|
381
|
+
/** Number of items returned in current page. */
|
|
382
|
+
count?: number | null;
|
|
383
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
384
|
+
cursors?: Cursors;
|
|
385
|
+
/**
|
|
386
|
+
* Whether there are more pages to retrieve following the current page.
|
|
387
|
+
*
|
|
388
|
+
* + `true`: Another page of results can be retrieved.
|
|
389
|
+
* + `false`: This is the last page.
|
|
390
|
+
*/
|
|
391
|
+
hasNext?: boolean | null;
|
|
392
|
+
}
|
|
393
|
+
interface Cursors {
|
|
394
|
+
/**
|
|
395
|
+
* Cursor string pointing to the next page in the list of results.
|
|
396
|
+
* @maxLength 16000
|
|
397
|
+
*/
|
|
398
|
+
next?: string | null;
|
|
399
|
+
/**
|
|
400
|
+
* Cursor pointing to the previous page in the list of results.
|
|
401
|
+
* @maxLength 16000
|
|
402
|
+
*/
|
|
403
|
+
prev?: string | null;
|
|
404
|
+
}
|
|
405
|
+
interface ListSectionsRequest {
|
|
406
|
+
/**
|
|
407
|
+
* Program id to list sections
|
|
408
|
+
* @format GUID
|
|
409
|
+
*/
|
|
410
|
+
programId: string;
|
|
411
|
+
/** Whenever to return description only with title or with details as well */
|
|
412
|
+
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
413
|
+
/**
|
|
414
|
+
* Predefined sets of fields to return.
|
|
415
|
+
* @maxSize 1
|
|
416
|
+
*/
|
|
417
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
418
|
+
}
|
|
419
|
+
interface ListSectionsResponse {
|
|
420
|
+
/**
|
|
421
|
+
* sections
|
|
422
|
+
* @maxSize 1000
|
|
423
|
+
*/
|
|
424
|
+
sections?: Section[];
|
|
425
|
+
}
|
|
426
|
+
interface CloneSectionRequest {
|
|
427
|
+
/**
|
|
428
|
+
* Section to clone
|
|
429
|
+
* @format GUID
|
|
430
|
+
*/
|
|
431
|
+
sectionId: string;
|
|
432
|
+
/**
|
|
433
|
+
* Predefined sets of fields to return.
|
|
434
|
+
* @maxSize 1
|
|
435
|
+
*/
|
|
436
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
437
|
+
}
|
|
438
|
+
interface CloneSectionResponse {
|
|
439
|
+
/** cloned section */
|
|
440
|
+
section?: Section;
|
|
441
|
+
}
|
|
442
|
+
interface MoveSectionRequest {
|
|
443
|
+
/**
|
|
444
|
+
* Section to move
|
|
445
|
+
* @format GUID
|
|
446
|
+
*/
|
|
447
|
+
sectionId?: string;
|
|
448
|
+
/**
|
|
449
|
+
* change section position to be after the specified section. If empty insert in the "0" position.
|
|
450
|
+
* @format GUID
|
|
451
|
+
*/
|
|
452
|
+
afterSectionId?: string | null;
|
|
453
|
+
/** section revision */
|
|
454
|
+
revision?: string;
|
|
455
|
+
/**
|
|
456
|
+
* Predefined sets of fields to return.
|
|
457
|
+
* @maxSize 1
|
|
458
|
+
*/
|
|
459
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
460
|
+
}
|
|
461
|
+
interface MoveSectionResponse {
|
|
462
|
+
/** updated section which was moved */
|
|
463
|
+
section?: Section;
|
|
464
|
+
}
|
|
465
|
+
interface PublishSectionRequest {
|
|
466
|
+
/**
|
|
467
|
+
* Section to publish
|
|
468
|
+
* @format GUID
|
|
469
|
+
*/
|
|
470
|
+
sectionId?: string;
|
|
471
|
+
/** section revision */
|
|
472
|
+
revision?: string;
|
|
473
|
+
/**
|
|
474
|
+
* Predefined sets of fields to return.
|
|
475
|
+
* @maxSize 1
|
|
476
|
+
*/
|
|
477
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
478
|
+
}
|
|
479
|
+
interface PublishSectionResponse {
|
|
480
|
+
/** Published section */
|
|
481
|
+
section?: Section;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
485
|
+
getUrl: (context: any) => string;
|
|
486
|
+
httpMethod: K;
|
|
487
|
+
path: string;
|
|
488
|
+
pathParams: M;
|
|
489
|
+
__requestType: T;
|
|
490
|
+
__originalRequestType: S;
|
|
491
|
+
__responseType: Q;
|
|
492
|
+
__originalResponseType: R;
|
|
493
|
+
};
|
|
494
|
+
declare function createSection(): __PublicMethodMetaInfo<'POST', {}, CreateSectionRequest$1, CreateSectionRequest, CreateSectionResponse$1, CreateSectionResponse>;
|
|
495
|
+
declare function bulkCreateSection(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionRequest$1, BulkCreateSectionRequest, BulkCreateSectionResponse$1, BulkCreateSectionResponse>;
|
|
496
|
+
declare function bulkCreateSectionMigration(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionMigrationRequest$1, BulkCreateSectionMigrationRequest, BulkCreateSectionMigrationResponse$1, BulkCreateSectionMigrationResponse>;
|
|
497
|
+
declare function getSection(): __PublicMethodMetaInfo<'GET', {
|
|
498
|
+
sectionId: string;
|
|
499
|
+
}, GetSectionRequest$1, GetSectionRequest, GetSectionResponse$1, GetSectionResponse>;
|
|
500
|
+
declare function updateSection(): __PublicMethodMetaInfo<'PATCH', {
|
|
501
|
+
sectionId: string;
|
|
502
|
+
}, UpdateSectionRequest$1, UpdateSectionRequest, UpdateSectionResponse$1, UpdateSectionResponse>;
|
|
503
|
+
declare function deleteSection(): __PublicMethodMetaInfo<'DELETE', {
|
|
504
|
+
sectionId: string;
|
|
505
|
+
}, DeleteSectionRequest$1, DeleteSectionRequest, DeleteSectionResponse$1, DeleteSectionResponse>;
|
|
506
|
+
declare function querySections(): __PublicMethodMetaInfo<'POST', {}, QuerySectionsRequest$1, QuerySectionsRequest, QuerySectionsResponse$1, QuerySectionsResponse>;
|
|
507
|
+
declare function listSections(): __PublicMethodMetaInfo<'GET', {}, ListSectionsRequest$1, ListSectionsRequest, ListSectionsResponse$1, ListSectionsResponse>;
|
|
508
|
+
declare function cloneSection(): __PublicMethodMetaInfo<'POST', {
|
|
509
|
+
sectionId: string;
|
|
510
|
+
}, CloneSectionRequest$1, CloneSectionRequest, CloneSectionResponse$1, CloneSectionResponse>;
|
|
511
|
+
declare function moveSection(): __PublicMethodMetaInfo<'PATCH', {}, MoveSectionRequest$1, MoveSectionRequest, MoveSectionResponse$1, MoveSectionResponse>;
|
|
512
|
+
declare function publishSection(): __PublicMethodMetaInfo<'PATCH', {}, PublishSectionRequest$1, PublishSectionRequest, PublishSectionResponse$1, PublishSectionResponse>;
|
|
513
|
+
|
|
514
|
+
export { type __PublicMethodMetaInfo, bulkCreateSection, bulkCreateSectionMigration, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
|