@wix/auto_sdk_quick-pages_pages 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 +806 -0
- package/build/cjs/index.js +1133 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +1011 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +532 -0
- package/build/cjs/meta.js +744 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +806 -0
- package/build/es/index.mjs +1092 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1 -0
- package/build/es/index.typings.mjs +970 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +532 -0
- package/build/es/meta.mjs +704 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +196 -0
- package/build/internal/cjs/index.js +1133 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +985 -0
- package/build/internal/cjs/index.typings.js +1011 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +533 -0
- package/build/internal/cjs/meta.js +744 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +196 -0
- package/build/internal/es/index.mjs +1092 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +985 -0
- package/build/internal/es/index.typings.mjs +970 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +533 -0
- package/build/internal/es/meta.mjs +704 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
import { CreatePageRequest as CreatePageRequest$1, CreatePageResponse as CreatePageResponse$1, GetPageRequest as GetPageRequest$1, GetPageResponse as GetPageResponse$1, UpdatePageRequest as UpdatePageRequest$1, UpdatePageResponse as UpdatePageResponse$1, SetPageRouteRequest as SetPageRouteRequest$1, SetPageRouteResponse as SetPageRouteResponse$1, RemovePageRouteRequest as RemovePageRouteRequest$1, RemovePageRouteResponse as RemovePageRouteResponse$1, PublishPageRequest as PublishPageRequest$1, PublishPageResponse as PublishPageResponse$1, UnpublishPageRequest as UnpublishPageRequest$1, UnpublishPageResponse as UnpublishPageResponse$1, ArchivePageRequest as ArchivePageRequest$1, ArchivePageResponse as ArchivePageResponse$1, UnarchivePageRequest as UnarchivePageRequest$1, UnarchivePageResponse as UnarchivePageResponse$1, SchedulePageRequest as SchedulePageRequest$1, SchedulePageResponse as SchedulePageResponse$1, DeletePageRequest as DeletePageRequest$1, DeletePageResponse as DeletePageResponse$1, QueryPagesRequest as QueryPagesRequest$1, QueryPagesResponse as QueryPagesResponse$1, BulkUpdatePageTagsRequest as BulkUpdatePageTagsRequest$1, BulkUpdatePageTagsResponse as BulkUpdatePageTagsResponse$1, BulkUpdatePageTagsByFilterRequest as BulkUpdatePageTagsByFilterRequest$1, BulkUpdatePageTagsByFilterResponse as BulkUpdatePageTagsByFilterResponse$1 } from './index.js';
|
|
2
|
+
|
|
3
|
+
/** QuickPage Page */
|
|
4
|
+
interface Page extends PageOriginOneOf {
|
|
5
|
+
/**
|
|
6
|
+
* The ID of a page from which the page was created.
|
|
7
|
+
* @format GUID
|
|
8
|
+
* @immutable
|
|
9
|
+
*/
|
|
10
|
+
originPageId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The ID of a template from which the page was created.
|
|
13
|
+
* @format GUID
|
|
14
|
+
* @immutable
|
|
15
|
+
*/
|
|
16
|
+
templateId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Page ID.
|
|
19
|
+
* @format GUID
|
|
20
|
+
* @readonly
|
|
21
|
+
*/
|
|
22
|
+
id?: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* Revision number. Incremented on every update.
|
|
25
|
+
* @readonly
|
|
26
|
+
*/
|
|
27
|
+
revision?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Date and time the Page was created.
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
|
+
createdDate?: Date | null;
|
|
33
|
+
/**
|
|
34
|
+
* Date and time the Page was last updated.
|
|
35
|
+
* @readonly
|
|
36
|
+
*/
|
|
37
|
+
updatedDate?: Date | null;
|
|
38
|
+
/**
|
|
39
|
+
* Date and time the Page was published or scheduled to be published depending on the status.
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
publishedDate?: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
* Date and time the Page was unpublished or scheduled to be unpublished depending on the status.
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
unpublishedDate?: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
* Page display name.
|
|
50
|
+
* @minLength 5
|
|
51
|
+
* @maxLength 100
|
|
52
|
+
*/
|
|
53
|
+
name?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The status of the Page.
|
|
56
|
+
* @readonly
|
|
57
|
+
*/
|
|
58
|
+
status?: StatusWithLiterals;
|
|
59
|
+
/** An image specifically designated for display when the page URL is shared on social media platforms. */
|
|
60
|
+
socialPreviewImage?: Image;
|
|
61
|
+
/** The small icon displayed in the browser tab, bookmarks, and potentially other areas. */
|
|
62
|
+
favicon?: Image;
|
|
63
|
+
/**
|
|
64
|
+
* The title of the page, visible in the browser tab and used as the primary clickable link in search engine results.
|
|
65
|
+
* @maxLength 100
|
|
66
|
+
*/
|
|
67
|
+
title?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* A brief summary of the page's content, often displayed below the title in search engine results.
|
|
70
|
+
* @maxLength 300
|
|
71
|
+
*/
|
|
72
|
+
description?: string | null;
|
|
73
|
+
/** A flag to indicate whether search engines should be allowed to index this page and include it in their search results. */
|
|
74
|
+
searchEngineIndexingEnabled?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* The route information for the page.
|
|
77
|
+
* @readonly
|
|
78
|
+
*/
|
|
79
|
+
pageRoute?: PageRoute;
|
|
80
|
+
/** Data Extensions */
|
|
81
|
+
extendedFields?: ExtendedFields;
|
|
82
|
+
/** Tags */
|
|
83
|
+
tags?: Tags;
|
|
84
|
+
}
|
|
85
|
+
/** @oneof */
|
|
86
|
+
interface PageOriginOneOf {
|
|
87
|
+
/**
|
|
88
|
+
* The ID of a page from which the page was created.
|
|
89
|
+
* @format GUID
|
|
90
|
+
* @immutable
|
|
91
|
+
*/
|
|
92
|
+
originPageId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The ID of a template from which the page was created.
|
|
95
|
+
* @format GUID
|
|
96
|
+
* @immutable
|
|
97
|
+
*/
|
|
98
|
+
templateId?: string;
|
|
99
|
+
}
|
|
100
|
+
declare enum Status {
|
|
101
|
+
/** Unknown status. */
|
|
102
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
103
|
+
/** The Page is draft. */
|
|
104
|
+
DRAFT = "DRAFT",
|
|
105
|
+
/** The Page is published. */
|
|
106
|
+
PUBLISHED = "PUBLISHED",
|
|
107
|
+
/** The Page is scheduled to be published. */
|
|
108
|
+
SCHEDULED = "SCHEDULED",
|
|
109
|
+
/** The Page is archived. */
|
|
110
|
+
ARCHIVED = "ARCHIVED"
|
|
111
|
+
}
|
|
112
|
+
/** @enumType */
|
|
113
|
+
type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'DRAFT' | 'PUBLISHED' | 'SCHEDULED' | 'ARCHIVED';
|
|
114
|
+
interface Image {
|
|
115
|
+
/**
|
|
116
|
+
* WixMedia image ID.
|
|
117
|
+
* @maxLength 100
|
|
118
|
+
*/
|
|
119
|
+
id?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Image URL.
|
|
122
|
+
* @format WEB_URL
|
|
123
|
+
* @readonly
|
|
124
|
+
*/
|
|
125
|
+
url?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Original image height.
|
|
128
|
+
* @readonly
|
|
129
|
+
*/
|
|
130
|
+
height?: number;
|
|
131
|
+
/**
|
|
132
|
+
* Original image width.
|
|
133
|
+
* @readonly
|
|
134
|
+
*/
|
|
135
|
+
width?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Image alt text.
|
|
138
|
+
* @maxLength 1000
|
|
139
|
+
*/
|
|
140
|
+
altText?: string | null;
|
|
141
|
+
}
|
|
142
|
+
interface PageRoute {
|
|
143
|
+
/**
|
|
144
|
+
* Page slug used in the URL.
|
|
145
|
+
* @minLength 3
|
|
146
|
+
* @maxLength 100
|
|
147
|
+
*/
|
|
148
|
+
slug?: string;
|
|
149
|
+
/** The URL type for the page, determining how it's accessed (subdomain or path). */
|
|
150
|
+
urlType?: TypeWithLiterals;
|
|
151
|
+
}
|
|
152
|
+
declare enum Type {
|
|
153
|
+
/** Unknown URL type. */
|
|
154
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
155
|
+
/** The page is accessed via a subdomain. */
|
|
156
|
+
SUBDOMAIN = "SUBDOMAIN",
|
|
157
|
+
/** The page is accessed via a path. */
|
|
158
|
+
PATH = "PATH"
|
|
159
|
+
}
|
|
160
|
+
/** @enumType */
|
|
161
|
+
type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'SUBDOMAIN' | 'PATH';
|
|
162
|
+
interface ExtendedFields {
|
|
163
|
+
/**
|
|
164
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
165
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
166
|
+
*
|
|
167
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
168
|
+
*
|
|
169
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
170
|
+
*/
|
|
171
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Common object for tags.
|
|
175
|
+
* Should be use as in this example:
|
|
176
|
+
* message Foo {
|
|
177
|
+
* string id = 1;
|
|
178
|
+
* ...
|
|
179
|
+
* Tags tags = 5
|
|
180
|
+
* }
|
|
181
|
+
*
|
|
182
|
+
* example of taggable entity
|
|
183
|
+
* {
|
|
184
|
+
* id: "123"
|
|
185
|
+
* tags: {
|
|
186
|
+
* tags: {
|
|
187
|
+
* tag_ids:["11","22"]
|
|
188
|
+
* },
|
|
189
|
+
* private_tags: {
|
|
190
|
+
* tag_ids: ["33", "44"]
|
|
191
|
+
* }
|
|
192
|
+
* }
|
|
193
|
+
* }
|
|
194
|
+
*/
|
|
195
|
+
interface Tags {
|
|
196
|
+
/** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
|
|
197
|
+
privateTags?: TagList;
|
|
198
|
+
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
199
|
+
tags?: TagList;
|
|
200
|
+
}
|
|
201
|
+
interface TagList {
|
|
202
|
+
/**
|
|
203
|
+
* List of tag IDs
|
|
204
|
+
* @maxSize 100
|
|
205
|
+
* @maxLength 5
|
|
206
|
+
*/
|
|
207
|
+
tagIds?: string[];
|
|
208
|
+
}
|
|
209
|
+
interface CreatePageRequest {
|
|
210
|
+
/** Page to be created. */
|
|
211
|
+
page: Page;
|
|
212
|
+
}
|
|
213
|
+
interface CreatePageResponse {
|
|
214
|
+
/** The created Page. */
|
|
215
|
+
page?: Page;
|
|
216
|
+
}
|
|
217
|
+
interface GetPageRequest {
|
|
218
|
+
/**
|
|
219
|
+
* ID of the Page to retrieve.
|
|
220
|
+
* @format GUID
|
|
221
|
+
*/
|
|
222
|
+
pageId: string;
|
|
223
|
+
}
|
|
224
|
+
interface GetPageResponse {
|
|
225
|
+
/** The requested Page. */
|
|
226
|
+
page?: Page;
|
|
227
|
+
}
|
|
228
|
+
interface UpdatePageRequest {
|
|
229
|
+
/** Page to be updated, may be partial. */
|
|
230
|
+
page: Page;
|
|
231
|
+
}
|
|
232
|
+
interface UpdatePageResponse {
|
|
233
|
+
/** Updated Page. */
|
|
234
|
+
page?: Page;
|
|
235
|
+
}
|
|
236
|
+
interface SetPageRouteRequest {
|
|
237
|
+
/**
|
|
238
|
+
* ID of the Page.
|
|
239
|
+
* @format GUID
|
|
240
|
+
*/
|
|
241
|
+
pageId: string;
|
|
242
|
+
/** Route to add. */
|
|
243
|
+
pageRoute: PageRoute;
|
|
244
|
+
}
|
|
245
|
+
interface SetPageRouteResponse {
|
|
246
|
+
}
|
|
247
|
+
interface RemovePageRouteRequest {
|
|
248
|
+
/**
|
|
249
|
+
* ID of the Page.
|
|
250
|
+
* @format GUID
|
|
251
|
+
*/
|
|
252
|
+
pageId: string;
|
|
253
|
+
}
|
|
254
|
+
interface RemovePageRouteResponse {
|
|
255
|
+
}
|
|
256
|
+
interface PublishPageRequest {
|
|
257
|
+
/**
|
|
258
|
+
* ID of the Page to publish.
|
|
259
|
+
* @format GUID
|
|
260
|
+
*/
|
|
261
|
+
pageId: string;
|
|
262
|
+
/** Date and time when the page should be unpublished. */
|
|
263
|
+
unpublishedDate?: Date | null;
|
|
264
|
+
}
|
|
265
|
+
interface PublishPageResponse {
|
|
266
|
+
/** Published Page. */
|
|
267
|
+
page?: Page;
|
|
268
|
+
}
|
|
269
|
+
interface UnpublishPageRequest {
|
|
270
|
+
/**
|
|
271
|
+
* ID of the Page to unpublish.
|
|
272
|
+
* @format GUID
|
|
273
|
+
*/
|
|
274
|
+
pageId: string;
|
|
275
|
+
}
|
|
276
|
+
interface UnpublishPageResponse {
|
|
277
|
+
/** Unpublished Page. */
|
|
278
|
+
page?: Page;
|
|
279
|
+
}
|
|
280
|
+
interface ArchivePageRequest {
|
|
281
|
+
/**
|
|
282
|
+
* ID of the Page to archive.
|
|
283
|
+
* @format GUID
|
|
284
|
+
*/
|
|
285
|
+
pageId: string;
|
|
286
|
+
}
|
|
287
|
+
interface ArchivePageResponse {
|
|
288
|
+
/** Archived Page. */
|
|
289
|
+
page?: Page;
|
|
290
|
+
}
|
|
291
|
+
interface UnarchivePageRequest {
|
|
292
|
+
/**
|
|
293
|
+
* ID of the Page to archive.
|
|
294
|
+
* @format GUID
|
|
295
|
+
*/
|
|
296
|
+
pageId: string;
|
|
297
|
+
}
|
|
298
|
+
interface UnarchivePageResponse {
|
|
299
|
+
/** Archived Page. */
|
|
300
|
+
page?: Page;
|
|
301
|
+
}
|
|
302
|
+
interface SchedulePageRequest {
|
|
303
|
+
/**
|
|
304
|
+
* ID of the Page to schedule.
|
|
305
|
+
* @format GUID
|
|
306
|
+
*/
|
|
307
|
+
pageId: string;
|
|
308
|
+
/** Date and time when the page should be published. */
|
|
309
|
+
publishedDate?: Date | null;
|
|
310
|
+
/** Date and time when the page should be unpublished. */
|
|
311
|
+
unpublishedDate?: Date | null;
|
|
312
|
+
}
|
|
313
|
+
interface SchedulePageResponse {
|
|
314
|
+
/** Scheduled Page. */
|
|
315
|
+
page?: Page;
|
|
316
|
+
}
|
|
317
|
+
interface DeletePageRequest {
|
|
318
|
+
/**
|
|
319
|
+
* Id of the Page to delete.
|
|
320
|
+
* @format GUID
|
|
321
|
+
*/
|
|
322
|
+
pageId: string;
|
|
323
|
+
}
|
|
324
|
+
interface DeletePageResponse {
|
|
325
|
+
}
|
|
326
|
+
interface QueryPagesRequest {
|
|
327
|
+
/** WQL expression. */
|
|
328
|
+
query?: CursorQuery;
|
|
329
|
+
}
|
|
330
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
331
|
+
/** 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`. */
|
|
332
|
+
cursorPaging?: CursorPaging;
|
|
333
|
+
/**
|
|
334
|
+
* Filter object in the following format:
|
|
335
|
+
* `"filter" : {
|
|
336
|
+
* "fieldName1": "value1",
|
|
337
|
+
* "fieldName2":{"$operator":"value2"}
|
|
338
|
+
* }`
|
|
339
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
340
|
+
*/
|
|
341
|
+
filter?: Record<string, any> | null;
|
|
342
|
+
/**
|
|
343
|
+
* Sort object in the following format:
|
|
344
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
345
|
+
* @maxSize 5
|
|
346
|
+
*/
|
|
347
|
+
sort?: Sorting[];
|
|
348
|
+
}
|
|
349
|
+
/** @oneof */
|
|
350
|
+
interface CursorQueryPagingMethodOneOf {
|
|
351
|
+
/** 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`. */
|
|
352
|
+
cursorPaging?: CursorPaging;
|
|
353
|
+
}
|
|
354
|
+
interface Sorting {
|
|
355
|
+
/**
|
|
356
|
+
* Name of the field to sort by.
|
|
357
|
+
* @maxLength 512
|
|
358
|
+
*/
|
|
359
|
+
fieldName?: string;
|
|
360
|
+
/** Sort order. */
|
|
361
|
+
order?: SortOrderWithLiterals;
|
|
362
|
+
}
|
|
363
|
+
declare enum SortOrder {
|
|
364
|
+
ASC = "ASC",
|
|
365
|
+
DESC = "DESC"
|
|
366
|
+
}
|
|
367
|
+
/** @enumType */
|
|
368
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
369
|
+
interface CursorPaging {
|
|
370
|
+
/**
|
|
371
|
+
* Maximum number of items to return in the results.
|
|
372
|
+
* @max 100
|
|
373
|
+
*/
|
|
374
|
+
limit?: number | null;
|
|
375
|
+
/**
|
|
376
|
+
* Pointer to the next or previous page in the list of results.
|
|
377
|
+
*
|
|
378
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
379
|
+
* Not relevant for the first request.
|
|
380
|
+
* @maxLength 16000
|
|
381
|
+
*/
|
|
382
|
+
cursor?: string | null;
|
|
383
|
+
}
|
|
384
|
+
interface QueryPagesResponse {
|
|
385
|
+
/** List of Pages. */
|
|
386
|
+
pages?: Page[];
|
|
387
|
+
/** Paging metadata */
|
|
388
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
389
|
+
}
|
|
390
|
+
interface CursorPagingMetadata {
|
|
391
|
+
/** Number of items returned in the response. */
|
|
392
|
+
count?: number | null;
|
|
393
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
394
|
+
cursors?: Cursors;
|
|
395
|
+
/**
|
|
396
|
+
* Whether there are more pages to retrieve following the current page.
|
|
397
|
+
*
|
|
398
|
+
* + `true`: Another page of results can be retrieved.
|
|
399
|
+
* + `false`: This is the last page.
|
|
400
|
+
*/
|
|
401
|
+
hasNext?: boolean | null;
|
|
402
|
+
}
|
|
403
|
+
interface Cursors {
|
|
404
|
+
/**
|
|
405
|
+
* Cursor string pointing to the next page in the list of results.
|
|
406
|
+
* @maxLength 16000
|
|
407
|
+
*/
|
|
408
|
+
next?: string | null;
|
|
409
|
+
/**
|
|
410
|
+
* Cursor pointing to the previous page in the list of results.
|
|
411
|
+
* @maxLength 16000
|
|
412
|
+
*/
|
|
413
|
+
prev?: string | null;
|
|
414
|
+
}
|
|
415
|
+
interface BulkUpdatePageTagsRequest {
|
|
416
|
+
/**
|
|
417
|
+
* List of NileProtoTagsEntities that their tags will update.
|
|
418
|
+
* @minSize 1
|
|
419
|
+
* @maxSize 100
|
|
420
|
+
* @format GUID
|
|
421
|
+
*/
|
|
422
|
+
pageIds: string[];
|
|
423
|
+
/** List of Tags to assign */
|
|
424
|
+
assignTags?: Tags;
|
|
425
|
+
/** List of Tags to unAssign */
|
|
426
|
+
unassignTags?: Tags;
|
|
427
|
+
}
|
|
428
|
+
interface BulkUpdatePageTagsResponse {
|
|
429
|
+
/**
|
|
430
|
+
* Results
|
|
431
|
+
* @minSize 1
|
|
432
|
+
* @maxSize 100
|
|
433
|
+
*/
|
|
434
|
+
results?: BulkUpdatePageTagsResult[];
|
|
435
|
+
/** Metadata regarding the bulk update operation */
|
|
436
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
437
|
+
}
|
|
438
|
+
interface ItemMetadata {
|
|
439
|
+
/**
|
|
440
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
441
|
+
* @format GUID
|
|
442
|
+
*/
|
|
443
|
+
id?: string | null;
|
|
444
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
445
|
+
originalIndex?: number;
|
|
446
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
447
|
+
success?: boolean;
|
|
448
|
+
/** Details about the error in case of failure. */
|
|
449
|
+
error?: ApplicationError;
|
|
450
|
+
}
|
|
451
|
+
interface ApplicationError {
|
|
452
|
+
/** Error code. */
|
|
453
|
+
code?: string;
|
|
454
|
+
/** Description of the error. */
|
|
455
|
+
description?: string;
|
|
456
|
+
/** Data related to the error. */
|
|
457
|
+
data?: Record<string, any> | null;
|
|
458
|
+
}
|
|
459
|
+
interface BulkUpdatePageTagsResult {
|
|
460
|
+
/** Metadata regarding the specific single update operation */
|
|
461
|
+
itemMetadata?: ItemMetadata;
|
|
462
|
+
}
|
|
463
|
+
interface BulkActionMetadata {
|
|
464
|
+
/** Number of items that were successfully processed. */
|
|
465
|
+
totalSuccesses?: number;
|
|
466
|
+
/** Number of items that couldn't be processed. */
|
|
467
|
+
totalFailures?: number;
|
|
468
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
469
|
+
undetailedFailures?: number;
|
|
470
|
+
}
|
|
471
|
+
interface BulkUpdatePageTagsByFilterRequest {
|
|
472
|
+
/** Filter */
|
|
473
|
+
filter: Record<string, any> | null;
|
|
474
|
+
/** List of Tags to assign */
|
|
475
|
+
assignTags?: Tags;
|
|
476
|
+
/** List of Tags to unAssign */
|
|
477
|
+
unassignTags?: Tags;
|
|
478
|
+
}
|
|
479
|
+
interface BulkUpdatePageTagsByFilterResponse {
|
|
480
|
+
/**
|
|
481
|
+
* Job ID
|
|
482
|
+
* @format GUID
|
|
483
|
+
*/
|
|
484
|
+
jobId?: string;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
488
|
+
getUrl: (context: any) => string;
|
|
489
|
+
httpMethod: K;
|
|
490
|
+
path: string;
|
|
491
|
+
pathParams: M;
|
|
492
|
+
__requestType: T;
|
|
493
|
+
__originalRequestType: S;
|
|
494
|
+
__responseType: Q;
|
|
495
|
+
__originalResponseType: R;
|
|
496
|
+
};
|
|
497
|
+
declare function createPage(): __PublicMethodMetaInfo<'POST', {}, CreatePageRequest$1, CreatePageRequest, CreatePageResponse$1, CreatePageResponse>;
|
|
498
|
+
declare function getPage(): __PublicMethodMetaInfo<'GET', {
|
|
499
|
+
pageId: string;
|
|
500
|
+
}, GetPageRequest$1, GetPageRequest, GetPageResponse$1, GetPageResponse>;
|
|
501
|
+
declare function updatePage(): __PublicMethodMetaInfo<'PATCH', {
|
|
502
|
+
pageId: string;
|
|
503
|
+
}, UpdatePageRequest$1, UpdatePageRequest, UpdatePageResponse$1, UpdatePageResponse>;
|
|
504
|
+
declare function setPageRoute(): __PublicMethodMetaInfo<'PATCH', {
|
|
505
|
+
pageId: string;
|
|
506
|
+
}, SetPageRouteRequest$1, SetPageRouteRequest, SetPageRouteResponse$1, SetPageRouteResponse>;
|
|
507
|
+
declare function removePageRoute(): __PublicMethodMetaInfo<'DELETE', {
|
|
508
|
+
pageId: string;
|
|
509
|
+
}, RemovePageRouteRequest$1, RemovePageRouteRequest, RemovePageRouteResponse$1, RemovePageRouteResponse>;
|
|
510
|
+
declare function publishPage(): __PublicMethodMetaInfo<'POST', {
|
|
511
|
+
pageId: string;
|
|
512
|
+
}, PublishPageRequest$1, PublishPageRequest, PublishPageResponse$1, PublishPageResponse>;
|
|
513
|
+
declare function unpublishPage(): __PublicMethodMetaInfo<'POST', {
|
|
514
|
+
pageId: string;
|
|
515
|
+
}, UnpublishPageRequest$1, UnpublishPageRequest, UnpublishPageResponse$1, UnpublishPageResponse>;
|
|
516
|
+
declare function archivePage(): __PublicMethodMetaInfo<'POST', {
|
|
517
|
+
pageId: string;
|
|
518
|
+
}, ArchivePageRequest$1, ArchivePageRequest, ArchivePageResponse$1, ArchivePageResponse>;
|
|
519
|
+
declare function unarchivePage(): __PublicMethodMetaInfo<'POST', {
|
|
520
|
+
pageId: string;
|
|
521
|
+
}, UnarchivePageRequest$1, UnarchivePageRequest, UnarchivePageResponse$1, UnarchivePageResponse>;
|
|
522
|
+
declare function schedulePage(): __PublicMethodMetaInfo<'POST', {
|
|
523
|
+
pageId: string;
|
|
524
|
+
}, SchedulePageRequest$1, SchedulePageRequest, SchedulePageResponse$1, SchedulePageResponse>;
|
|
525
|
+
declare function deletePage(): __PublicMethodMetaInfo<'DELETE', {
|
|
526
|
+
pageId: string;
|
|
527
|
+
}, DeletePageRequest$1, DeletePageRequest, DeletePageResponse$1, DeletePageResponse>;
|
|
528
|
+
declare function queryPages(): __PublicMethodMetaInfo<'GET', {}, QueryPagesRequest$1, QueryPagesRequest, QueryPagesResponse$1, QueryPagesResponse>;
|
|
529
|
+
declare function bulkUpdatePageTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePageTagsRequest$1, BulkUpdatePageTagsRequest, BulkUpdatePageTagsResponse$1, BulkUpdatePageTagsResponse>;
|
|
530
|
+
declare function bulkUpdatePageTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePageTagsByFilterRequest$1, BulkUpdatePageTagsByFilterRequest, BulkUpdatePageTagsByFilterResponse$1, BulkUpdatePageTagsByFilterResponse>;
|
|
531
|
+
|
|
532
|
+
export { type __PublicMethodMetaInfo, archivePage, bulkUpdatePageTags, bulkUpdatePageTagsByFilter, createPage, deletePage, getPage, publishPage, queryPages, removePageRoute, schedulePage, setPageRoute, unarchivePage, unpublishPage, updatePage };
|