@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,806 @@
|
|
|
1
|
+
/** QuickPage Page */
|
|
2
|
+
interface Page extends PageOriginOneOf {
|
|
3
|
+
/**
|
|
4
|
+
* The ID of a page from which the page was created.
|
|
5
|
+
* @format GUID
|
|
6
|
+
* @immutable
|
|
7
|
+
*/
|
|
8
|
+
originPageId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The ID of a template from which the page was created.
|
|
11
|
+
* @format GUID
|
|
12
|
+
* @immutable
|
|
13
|
+
*/
|
|
14
|
+
templateId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Page ID.
|
|
17
|
+
* @format GUID
|
|
18
|
+
* @readonly
|
|
19
|
+
*/
|
|
20
|
+
_id?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Revision number. Incremented on every update.
|
|
23
|
+
* @readonly
|
|
24
|
+
*/
|
|
25
|
+
revision?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Date and time the Page was created.
|
|
28
|
+
* @readonly
|
|
29
|
+
*/
|
|
30
|
+
_createdDate?: Date | null;
|
|
31
|
+
/**
|
|
32
|
+
* Date and time the Page was last updated.
|
|
33
|
+
* @readonly
|
|
34
|
+
*/
|
|
35
|
+
_updatedDate?: Date | null;
|
|
36
|
+
/**
|
|
37
|
+
* Date and time the Page was published or scheduled to be published depending on the status.
|
|
38
|
+
* @readonly
|
|
39
|
+
*/
|
|
40
|
+
publishedDate?: Date | null;
|
|
41
|
+
/**
|
|
42
|
+
* Date and time the Page was unpublished or scheduled to be unpublished depending on the status.
|
|
43
|
+
* @readonly
|
|
44
|
+
*/
|
|
45
|
+
unpublishedDate?: Date | null;
|
|
46
|
+
/**
|
|
47
|
+
* Page display name.
|
|
48
|
+
* @minLength 5
|
|
49
|
+
* @maxLength 100
|
|
50
|
+
*/
|
|
51
|
+
name?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* The status of the Page.
|
|
54
|
+
* @readonly
|
|
55
|
+
*/
|
|
56
|
+
status?: StatusWithLiterals;
|
|
57
|
+
/** An image specifically designated for display when the page URL is shared on social media platforms. */
|
|
58
|
+
socialPreviewImage?: string;
|
|
59
|
+
/** The small icon displayed in the browser tab, bookmarks, and potentially other areas. */
|
|
60
|
+
favicon?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The title of the page, visible in the browser tab and used as the primary clickable link in search engine results.
|
|
63
|
+
* @maxLength 100
|
|
64
|
+
*/
|
|
65
|
+
title?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* A brief summary of the page's content, often displayed below the title in search engine results.
|
|
68
|
+
* @maxLength 300
|
|
69
|
+
*/
|
|
70
|
+
description?: string | null;
|
|
71
|
+
/** A flag to indicate whether search engines should be allowed to index this page and include it in their search results. */
|
|
72
|
+
searchEngineIndexingEnabled?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The route information for the page.
|
|
75
|
+
* @readonly
|
|
76
|
+
*/
|
|
77
|
+
pageRoute?: PageRoute;
|
|
78
|
+
/** Data Extensions */
|
|
79
|
+
extendedFields?: ExtendedFields;
|
|
80
|
+
/** Tags */
|
|
81
|
+
tags?: Tags;
|
|
82
|
+
}
|
|
83
|
+
/** @oneof */
|
|
84
|
+
interface PageOriginOneOf {
|
|
85
|
+
/**
|
|
86
|
+
* The ID of a page from which the page was created.
|
|
87
|
+
* @format GUID
|
|
88
|
+
* @immutable
|
|
89
|
+
*/
|
|
90
|
+
originPageId?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The ID of a template from which the page was created.
|
|
93
|
+
* @format GUID
|
|
94
|
+
* @immutable
|
|
95
|
+
*/
|
|
96
|
+
templateId?: string;
|
|
97
|
+
}
|
|
98
|
+
declare enum Status {
|
|
99
|
+
/** Unknown status. */
|
|
100
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
101
|
+
/** The Page is draft. */
|
|
102
|
+
DRAFT = "DRAFT",
|
|
103
|
+
/** The Page is published. */
|
|
104
|
+
PUBLISHED = "PUBLISHED",
|
|
105
|
+
/** The Page is scheduled to be published. */
|
|
106
|
+
SCHEDULED = "SCHEDULED",
|
|
107
|
+
/** The Page is archived. */
|
|
108
|
+
ARCHIVED = "ARCHIVED"
|
|
109
|
+
}
|
|
110
|
+
/** @enumType */
|
|
111
|
+
type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'DRAFT' | 'PUBLISHED' | 'SCHEDULED' | 'ARCHIVED';
|
|
112
|
+
interface PageRoute {
|
|
113
|
+
/**
|
|
114
|
+
* Page slug used in the URL.
|
|
115
|
+
* @minLength 3
|
|
116
|
+
* @maxLength 100
|
|
117
|
+
*/
|
|
118
|
+
slug?: string;
|
|
119
|
+
/** The URL type for the page, determining how it's accessed (subdomain or path). */
|
|
120
|
+
urlType?: TypeWithLiterals;
|
|
121
|
+
}
|
|
122
|
+
declare enum Type {
|
|
123
|
+
/** Unknown URL type. */
|
|
124
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
125
|
+
/** The page is accessed via a subdomain. */
|
|
126
|
+
SUBDOMAIN = "SUBDOMAIN",
|
|
127
|
+
/** The page is accessed via a path. */
|
|
128
|
+
PATH = "PATH"
|
|
129
|
+
}
|
|
130
|
+
/** @enumType */
|
|
131
|
+
type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'SUBDOMAIN' | 'PATH';
|
|
132
|
+
interface ExtendedFields {
|
|
133
|
+
/**
|
|
134
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
135
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
136
|
+
*
|
|
137
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
138
|
+
*
|
|
139
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
140
|
+
*/
|
|
141
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Common object for tags.
|
|
145
|
+
* Should be use as in this example:
|
|
146
|
+
* message Foo {
|
|
147
|
+
* string id = 1;
|
|
148
|
+
* ...
|
|
149
|
+
* Tags tags = 5
|
|
150
|
+
* }
|
|
151
|
+
*
|
|
152
|
+
* example of taggable entity
|
|
153
|
+
* {
|
|
154
|
+
* id: "123"
|
|
155
|
+
* tags: {
|
|
156
|
+
* tags: {
|
|
157
|
+
* tag_ids:["11","22"]
|
|
158
|
+
* },
|
|
159
|
+
* private_tags: {
|
|
160
|
+
* tag_ids: ["33", "44"]
|
|
161
|
+
* }
|
|
162
|
+
* }
|
|
163
|
+
* }
|
|
164
|
+
*/
|
|
165
|
+
interface Tags {
|
|
166
|
+
/** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
|
|
167
|
+
privateTags?: TagList;
|
|
168
|
+
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
169
|
+
tags?: TagList;
|
|
170
|
+
}
|
|
171
|
+
interface TagList {
|
|
172
|
+
/**
|
|
173
|
+
* List of tag IDs
|
|
174
|
+
* @maxSize 100
|
|
175
|
+
* @maxLength 5
|
|
176
|
+
*/
|
|
177
|
+
tagIds?: string[];
|
|
178
|
+
}
|
|
179
|
+
/** Page Published. */
|
|
180
|
+
interface PagePublished {
|
|
181
|
+
/** Page. */
|
|
182
|
+
page?: Page;
|
|
183
|
+
}
|
|
184
|
+
/** Page Unpublished. */
|
|
185
|
+
interface PageUnpublished {
|
|
186
|
+
/** Page. */
|
|
187
|
+
page?: Page;
|
|
188
|
+
}
|
|
189
|
+
/** Page Archived. */
|
|
190
|
+
interface PageArchived {
|
|
191
|
+
/** Page. */
|
|
192
|
+
page?: Page;
|
|
193
|
+
}
|
|
194
|
+
/** Page Archived. */
|
|
195
|
+
interface PageUnarchived {
|
|
196
|
+
/** Page. */
|
|
197
|
+
page?: Page;
|
|
198
|
+
}
|
|
199
|
+
/** Page Scheduled. */
|
|
200
|
+
interface PageScheduled {
|
|
201
|
+
/** Page. */
|
|
202
|
+
page?: Page;
|
|
203
|
+
}
|
|
204
|
+
interface CreatePageRequest {
|
|
205
|
+
/** Page to be created. */
|
|
206
|
+
page: Page;
|
|
207
|
+
}
|
|
208
|
+
interface CreatePageResponse {
|
|
209
|
+
/** The created Page. */
|
|
210
|
+
page?: Page;
|
|
211
|
+
}
|
|
212
|
+
interface GetPageRequest {
|
|
213
|
+
/**
|
|
214
|
+
* ID of the Page to retrieve.
|
|
215
|
+
* @format GUID
|
|
216
|
+
*/
|
|
217
|
+
pageId: string;
|
|
218
|
+
}
|
|
219
|
+
interface GetPageResponse {
|
|
220
|
+
/** The requested Page. */
|
|
221
|
+
page?: Page;
|
|
222
|
+
}
|
|
223
|
+
interface UpdatePageRequest {
|
|
224
|
+
/** Page to be updated, may be partial. */
|
|
225
|
+
page: Page;
|
|
226
|
+
}
|
|
227
|
+
interface UpdatePageResponse {
|
|
228
|
+
/** Updated Page. */
|
|
229
|
+
page?: Page;
|
|
230
|
+
}
|
|
231
|
+
interface SetPageRouteRequest {
|
|
232
|
+
/**
|
|
233
|
+
* ID of the Page.
|
|
234
|
+
* @format GUID
|
|
235
|
+
*/
|
|
236
|
+
pageId: string;
|
|
237
|
+
/** Route to add. */
|
|
238
|
+
pageRoute: PageRoute;
|
|
239
|
+
}
|
|
240
|
+
interface SetPageRouteResponse {
|
|
241
|
+
}
|
|
242
|
+
interface RemovePageRouteRequest {
|
|
243
|
+
/**
|
|
244
|
+
* ID of the Page.
|
|
245
|
+
* @format GUID
|
|
246
|
+
*/
|
|
247
|
+
pageId: string;
|
|
248
|
+
}
|
|
249
|
+
interface RemovePageRouteResponse {
|
|
250
|
+
}
|
|
251
|
+
interface PublishPageRequest {
|
|
252
|
+
/**
|
|
253
|
+
* ID of the Page to publish.
|
|
254
|
+
* @format GUID
|
|
255
|
+
*/
|
|
256
|
+
pageId: string;
|
|
257
|
+
/** Date and time when the page should be unpublished. */
|
|
258
|
+
unpublishedDate?: Date | null;
|
|
259
|
+
}
|
|
260
|
+
interface PublishPageResponse {
|
|
261
|
+
/** Published Page. */
|
|
262
|
+
page?: Page;
|
|
263
|
+
}
|
|
264
|
+
interface UnpublishPageRequest {
|
|
265
|
+
/**
|
|
266
|
+
* ID of the Page to unpublish.
|
|
267
|
+
* @format GUID
|
|
268
|
+
*/
|
|
269
|
+
pageId: string;
|
|
270
|
+
}
|
|
271
|
+
interface UnpublishPageResponse {
|
|
272
|
+
/** Unpublished Page. */
|
|
273
|
+
page?: Page;
|
|
274
|
+
}
|
|
275
|
+
interface ArchivePageRequest {
|
|
276
|
+
/**
|
|
277
|
+
* ID of the Page to archive.
|
|
278
|
+
* @format GUID
|
|
279
|
+
*/
|
|
280
|
+
pageId: string;
|
|
281
|
+
}
|
|
282
|
+
interface ArchivePageResponse {
|
|
283
|
+
/** Archived Page. */
|
|
284
|
+
page?: Page;
|
|
285
|
+
}
|
|
286
|
+
interface UnarchivePageRequest {
|
|
287
|
+
/**
|
|
288
|
+
* ID of the Page to archive.
|
|
289
|
+
* @format GUID
|
|
290
|
+
*/
|
|
291
|
+
pageId: string;
|
|
292
|
+
}
|
|
293
|
+
interface UnarchivePageResponse {
|
|
294
|
+
/** Archived Page. */
|
|
295
|
+
page?: Page;
|
|
296
|
+
}
|
|
297
|
+
interface SchedulePageRequest {
|
|
298
|
+
/**
|
|
299
|
+
* ID of the Page to schedule.
|
|
300
|
+
* @format GUID
|
|
301
|
+
*/
|
|
302
|
+
pageId: string;
|
|
303
|
+
/** Date and time when the page should be published. */
|
|
304
|
+
publishedDate?: Date | null;
|
|
305
|
+
/** Date and time when the page should be unpublished. */
|
|
306
|
+
unpublishedDate?: Date | null;
|
|
307
|
+
}
|
|
308
|
+
interface SchedulePageResponse {
|
|
309
|
+
/** Scheduled Page. */
|
|
310
|
+
page?: Page;
|
|
311
|
+
}
|
|
312
|
+
interface DeletePageRequest {
|
|
313
|
+
/**
|
|
314
|
+
* Id of the Page to delete.
|
|
315
|
+
* @format GUID
|
|
316
|
+
*/
|
|
317
|
+
pageId: string;
|
|
318
|
+
}
|
|
319
|
+
interface DeletePageResponse {
|
|
320
|
+
}
|
|
321
|
+
interface QueryPagesRequest {
|
|
322
|
+
/** WQL expression. */
|
|
323
|
+
query?: CursorQuery;
|
|
324
|
+
}
|
|
325
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
326
|
+
/** 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`. */
|
|
327
|
+
cursorPaging?: CursorPaging;
|
|
328
|
+
/**
|
|
329
|
+
* Filter object in the following format:
|
|
330
|
+
* `"filter" : {
|
|
331
|
+
* "fieldName1": "value1",
|
|
332
|
+
* "fieldName2":{"$operator":"value2"}
|
|
333
|
+
* }`
|
|
334
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
335
|
+
*/
|
|
336
|
+
filter?: Record<string, any> | null;
|
|
337
|
+
/**
|
|
338
|
+
* Sort object in the following format:
|
|
339
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
340
|
+
* @maxSize 5
|
|
341
|
+
*/
|
|
342
|
+
sort?: Sorting[];
|
|
343
|
+
}
|
|
344
|
+
/** @oneof */
|
|
345
|
+
interface CursorQueryPagingMethodOneOf {
|
|
346
|
+
/** 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`. */
|
|
347
|
+
cursorPaging?: CursorPaging;
|
|
348
|
+
}
|
|
349
|
+
interface Sorting {
|
|
350
|
+
/**
|
|
351
|
+
* Name of the field to sort by.
|
|
352
|
+
* @maxLength 512
|
|
353
|
+
*/
|
|
354
|
+
fieldName?: string;
|
|
355
|
+
/** Sort order. */
|
|
356
|
+
order?: SortOrderWithLiterals;
|
|
357
|
+
}
|
|
358
|
+
declare enum SortOrder {
|
|
359
|
+
ASC = "ASC",
|
|
360
|
+
DESC = "DESC"
|
|
361
|
+
}
|
|
362
|
+
/** @enumType */
|
|
363
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
364
|
+
interface CursorPaging {
|
|
365
|
+
/**
|
|
366
|
+
* Maximum number of items to return in the results.
|
|
367
|
+
* @max 100
|
|
368
|
+
*/
|
|
369
|
+
limit?: number | null;
|
|
370
|
+
/**
|
|
371
|
+
* Pointer to the next or previous page in the list of results.
|
|
372
|
+
*
|
|
373
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
374
|
+
* Not relevant for the first request.
|
|
375
|
+
* @maxLength 16000
|
|
376
|
+
*/
|
|
377
|
+
cursor?: string | null;
|
|
378
|
+
}
|
|
379
|
+
interface QueryPagesResponse {
|
|
380
|
+
/** List of Pages. */
|
|
381
|
+
pages?: Page[];
|
|
382
|
+
/** Paging metadata */
|
|
383
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
384
|
+
}
|
|
385
|
+
interface CursorPagingMetadata {
|
|
386
|
+
/** Number of items returned in the response. */
|
|
387
|
+
count?: number | null;
|
|
388
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
389
|
+
cursors?: Cursors;
|
|
390
|
+
/**
|
|
391
|
+
* Whether there are more pages to retrieve following the current page.
|
|
392
|
+
*
|
|
393
|
+
* + `true`: Another page of results can be retrieved.
|
|
394
|
+
* + `false`: This is the last page.
|
|
395
|
+
*/
|
|
396
|
+
hasNext?: boolean | null;
|
|
397
|
+
}
|
|
398
|
+
interface Cursors {
|
|
399
|
+
/**
|
|
400
|
+
* Cursor string pointing to the next page in the list of results.
|
|
401
|
+
* @maxLength 16000
|
|
402
|
+
*/
|
|
403
|
+
next?: string | null;
|
|
404
|
+
/**
|
|
405
|
+
* Cursor pointing to the previous page in the list of results.
|
|
406
|
+
* @maxLength 16000
|
|
407
|
+
*/
|
|
408
|
+
prev?: string | null;
|
|
409
|
+
}
|
|
410
|
+
interface BulkUpdatePageTagsRequest {
|
|
411
|
+
/**
|
|
412
|
+
* List of NileProtoTagsEntities that their tags will update.
|
|
413
|
+
* @minSize 1
|
|
414
|
+
* @maxSize 100
|
|
415
|
+
* @format GUID
|
|
416
|
+
*/
|
|
417
|
+
pageIds: string[];
|
|
418
|
+
/** List of Tags to assign */
|
|
419
|
+
assignTags?: Tags;
|
|
420
|
+
/** List of Tags to unAssign */
|
|
421
|
+
unassignTags?: Tags;
|
|
422
|
+
}
|
|
423
|
+
interface BulkUpdatePageTagsResponse {
|
|
424
|
+
/**
|
|
425
|
+
* Results
|
|
426
|
+
* @minSize 1
|
|
427
|
+
* @maxSize 100
|
|
428
|
+
*/
|
|
429
|
+
results?: BulkUpdatePageTagsResult[];
|
|
430
|
+
/** Metadata regarding the bulk update operation */
|
|
431
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
432
|
+
}
|
|
433
|
+
interface ItemMetadata {
|
|
434
|
+
/**
|
|
435
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
436
|
+
* @format GUID
|
|
437
|
+
*/
|
|
438
|
+
_id?: string | null;
|
|
439
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
440
|
+
originalIndex?: number;
|
|
441
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
442
|
+
success?: boolean;
|
|
443
|
+
/** Details about the error in case of failure. */
|
|
444
|
+
error?: ApplicationError;
|
|
445
|
+
}
|
|
446
|
+
interface ApplicationError {
|
|
447
|
+
/** Error code. */
|
|
448
|
+
code?: string;
|
|
449
|
+
/** Description of the error. */
|
|
450
|
+
description?: string;
|
|
451
|
+
/** Data related to the error. */
|
|
452
|
+
data?: Record<string, any> | null;
|
|
453
|
+
}
|
|
454
|
+
interface BulkUpdatePageTagsResult {
|
|
455
|
+
/** Metadata regarding the specific single update operation */
|
|
456
|
+
itemMetadata?: ItemMetadata;
|
|
457
|
+
}
|
|
458
|
+
interface BulkActionMetadata {
|
|
459
|
+
/** Number of items that were successfully processed. */
|
|
460
|
+
totalSuccesses?: number;
|
|
461
|
+
/** Number of items that couldn't be processed. */
|
|
462
|
+
totalFailures?: number;
|
|
463
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
464
|
+
undetailedFailures?: number;
|
|
465
|
+
}
|
|
466
|
+
interface BulkUpdatePageTagsByFilterRequest {
|
|
467
|
+
/** Filter */
|
|
468
|
+
filter: Record<string, any> | null;
|
|
469
|
+
/** List of Tags to assign */
|
|
470
|
+
assignTags?: Tags;
|
|
471
|
+
/** List of Tags to unAssign */
|
|
472
|
+
unassignTags?: Tags;
|
|
473
|
+
}
|
|
474
|
+
interface BulkUpdatePageTagsByFilterResponse {
|
|
475
|
+
/**
|
|
476
|
+
* Job ID
|
|
477
|
+
* @format GUID
|
|
478
|
+
*/
|
|
479
|
+
jobId?: string;
|
|
480
|
+
}
|
|
481
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
482
|
+
createdEvent?: EntityCreatedEvent;
|
|
483
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
484
|
+
deletedEvent?: EntityDeletedEvent;
|
|
485
|
+
actionEvent?: ActionEvent;
|
|
486
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
487
|
+
_id?: string;
|
|
488
|
+
/**
|
|
489
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
490
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
491
|
+
*/
|
|
492
|
+
entityFqdn?: string;
|
|
493
|
+
/**
|
|
494
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
495
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
496
|
+
*/
|
|
497
|
+
slug?: string;
|
|
498
|
+
/** ID of the entity associated with the event. */
|
|
499
|
+
entityId?: string;
|
|
500
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
501
|
+
eventTime?: Date | null;
|
|
502
|
+
/**
|
|
503
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
504
|
+
* (for example, GDPR).
|
|
505
|
+
*/
|
|
506
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
507
|
+
/** If present, indicates the action that triggered the event. */
|
|
508
|
+
originatedFrom?: string | null;
|
|
509
|
+
/**
|
|
510
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
511
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
512
|
+
*/
|
|
513
|
+
entityEventSequence?: string | null;
|
|
514
|
+
}
|
|
515
|
+
/** @oneof */
|
|
516
|
+
interface DomainEventBodyOneOf {
|
|
517
|
+
createdEvent?: EntityCreatedEvent;
|
|
518
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
519
|
+
deletedEvent?: EntityDeletedEvent;
|
|
520
|
+
actionEvent?: ActionEvent;
|
|
521
|
+
}
|
|
522
|
+
interface EntityCreatedEvent {
|
|
523
|
+
entity?: string;
|
|
524
|
+
}
|
|
525
|
+
interface RestoreInfo {
|
|
526
|
+
deletedDate?: Date | null;
|
|
527
|
+
}
|
|
528
|
+
interface EntityUpdatedEvent {
|
|
529
|
+
/**
|
|
530
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
531
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
532
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
533
|
+
*/
|
|
534
|
+
currentEntity?: string;
|
|
535
|
+
}
|
|
536
|
+
interface EntityDeletedEvent {
|
|
537
|
+
/** Entity that was deleted. */
|
|
538
|
+
deletedEntity?: string | null;
|
|
539
|
+
}
|
|
540
|
+
interface ActionEvent {
|
|
541
|
+
body?: string;
|
|
542
|
+
}
|
|
543
|
+
interface MessageEnvelope {
|
|
544
|
+
/**
|
|
545
|
+
* App instance ID.
|
|
546
|
+
* @format GUID
|
|
547
|
+
*/
|
|
548
|
+
instanceId?: string | null;
|
|
549
|
+
/**
|
|
550
|
+
* Event type.
|
|
551
|
+
* @maxLength 150
|
|
552
|
+
*/
|
|
553
|
+
eventType?: string;
|
|
554
|
+
/** The identification type and identity data. */
|
|
555
|
+
identity?: IdentificationData;
|
|
556
|
+
/** Stringify payload. */
|
|
557
|
+
data?: string;
|
|
558
|
+
}
|
|
559
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
560
|
+
/**
|
|
561
|
+
* ID of a site visitor that has not logged in to the site.
|
|
562
|
+
* @format GUID
|
|
563
|
+
*/
|
|
564
|
+
anonymousVisitorId?: string;
|
|
565
|
+
/**
|
|
566
|
+
* ID of a site visitor that has logged in to the site.
|
|
567
|
+
* @format GUID
|
|
568
|
+
*/
|
|
569
|
+
memberId?: string;
|
|
570
|
+
/**
|
|
571
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
572
|
+
* @format GUID
|
|
573
|
+
*/
|
|
574
|
+
wixUserId?: string;
|
|
575
|
+
/**
|
|
576
|
+
* ID of an app.
|
|
577
|
+
* @format GUID
|
|
578
|
+
*/
|
|
579
|
+
appId?: string;
|
|
580
|
+
/** @readonly */
|
|
581
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
582
|
+
}
|
|
583
|
+
/** @oneof */
|
|
584
|
+
interface IdentificationDataIdOneOf {
|
|
585
|
+
/**
|
|
586
|
+
* ID of a site visitor that has not logged in to the site.
|
|
587
|
+
* @format GUID
|
|
588
|
+
*/
|
|
589
|
+
anonymousVisitorId?: string;
|
|
590
|
+
/**
|
|
591
|
+
* ID of a site visitor that has logged in to the site.
|
|
592
|
+
* @format GUID
|
|
593
|
+
*/
|
|
594
|
+
memberId?: string;
|
|
595
|
+
/**
|
|
596
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
597
|
+
* @format GUID
|
|
598
|
+
*/
|
|
599
|
+
wixUserId?: string;
|
|
600
|
+
/**
|
|
601
|
+
* ID of an app.
|
|
602
|
+
* @format GUID
|
|
603
|
+
*/
|
|
604
|
+
appId?: string;
|
|
605
|
+
}
|
|
606
|
+
declare enum WebhookIdentityType {
|
|
607
|
+
UNKNOWN = "UNKNOWN",
|
|
608
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
609
|
+
MEMBER = "MEMBER",
|
|
610
|
+
WIX_USER = "WIX_USER",
|
|
611
|
+
APP = "APP"
|
|
612
|
+
}
|
|
613
|
+
/** @enumType */
|
|
614
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
615
|
+
type BulkUpdatePageTagsApplicationErrors = {
|
|
616
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
617
|
+
description?: string;
|
|
618
|
+
data?: Record<string, any>;
|
|
619
|
+
};
|
|
620
|
+
type BulkUpdatePageTagsByFilterApplicationErrors = {
|
|
621
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
622
|
+
description?: string;
|
|
623
|
+
data?: Record<string, any>;
|
|
624
|
+
};
|
|
625
|
+
interface UpdatePage {
|
|
626
|
+
/**
|
|
627
|
+
* The ID of a page from which the page was created.
|
|
628
|
+
* @format GUID
|
|
629
|
+
* @immutable
|
|
630
|
+
*/
|
|
631
|
+
originPageId?: string;
|
|
632
|
+
/**
|
|
633
|
+
* The ID of a template from which the page was created.
|
|
634
|
+
* @format GUID
|
|
635
|
+
* @immutable
|
|
636
|
+
*/
|
|
637
|
+
templateId?: string;
|
|
638
|
+
/**
|
|
639
|
+
* Page ID.
|
|
640
|
+
* @format GUID
|
|
641
|
+
* @readonly
|
|
642
|
+
*/
|
|
643
|
+
_id?: string | null;
|
|
644
|
+
/**
|
|
645
|
+
* Revision number. Incremented on every update.
|
|
646
|
+
* @readonly
|
|
647
|
+
*/
|
|
648
|
+
revision?: string | null;
|
|
649
|
+
/**
|
|
650
|
+
* Date and time the Page was created.
|
|
651
|
+
* @readonly
|
|
652
|
+
*/
|
|
653
|
+
_createdDate?: Date | null;
|
|
654
|
+
/**
|
|
655
|
+
* Date and time the Page was last updated.
|
|
656
|
+
* @readonly
|
|
657
|
+
*/
|
|
658
|
+
_updatedDate?: Date | null;
|
|
659
|
+
/**
|
|
660
|
+
* Date and time the Page was published or scheduled to be published depending on the status.
|
|
661
|
+
* @readonly
|
|
662
|
+
*/
|
|
663
|
+
publishedDate?: Date | null;
|
|
664
|
+
/**
|
|
665
|
+
* Date and time the Page was unpublished or scheduled to be unpublished depending on the status.
|
|
666
|
+
* @readonly
|
|
667
|
+
*/
|
|
668
|
+
unpublishedDate?: Date | null;
|
|
669
|
+
/**
|
|
670
|
+
* Page display name.
|
|
671
|
+
* @minLength 5
|
|
672
|
+
* @maxLength 100
|
|
673
|
+
*/
|
|
674
|
+
name?: string | null;
|
|
675
|
+
/**
|
|
676
|
+
* The status of the Page.
|
|
677
|
+
* @readonly
|
|
678
|
+
*/
|
|
679
|
+
status?: StatusWithLiterals;
|
|
680
|
+
/** An image specifically designated for display when the page URL is shared on social media platforms. */
|
|
681
|
+
socialPreviewImage?: string;
|
|
682
|
+
/** The small icon displayed in the browser tab, bookmarks, and potentially other areas. */
|
|
683
|
+
favicon?: string;
|
|
684
|
+
/**
|
|
685
|
+
* The title of the page, visible in the browser tab and used as the primary clickable link in search engine results.
|
|
686
|
+
* @maxLength 100
|
|
687
|
+
*/
|
|
688
|
+
title?: string | null;
|
|
689
|
+
/**
|
|
690
|
+
* A brief summary of the page's content, often displayed below the title in search engine results.
|
|
691
|
+
* @maxLength 300
|
|
692
|
+
*/
|
|
693
|
+
description?: string | null;
|
|
694
|
+
/** A flag to indicate whether search engines should be allowed to index this page and include it in their search results. */
|
|
695
|
+
searchEngineIndexingEnabled?: boolean;
|
|
696
|
+
/**
|
|
697
|
+
* The route information for the page.
|
|
698
|
+
* @readonly
|
|
699
|
+
*/
|
|
700
|
+
pageRoute?: PageRoute;
|
|
701
|
+
/** Data Extensions */
|
|
702
|
+
extendedFields?: ExtendedFields;
|
|
703
|
+
/** Tags */
|
|
704
|
+
tags?: Tags;
|
|
705
|
+
}
|
|
706
|
+
interface PublishPageOptions {
|
|
707
|
+
/** Date and time when the page should be unpublished. */
|
|
708
|
+
unpublishedDate?: Date | null;
|
|
709
|
+
}
|
|
710
|
+
interface SchedulePageOptions {
|
|
711
|
+
/** Date and time when the page should be published. */
|
|
712
|
+
publishedDate?: Date | null;
|
|
713
|
+
/** Date and time when the page should be unpublished. */
|
|
714
|
+
unpublishedDate?: Date | null;
|
|
715
|
+
}
|
|
716
|
+
interface QueryCursorResult {
|
|
717
|
+
cursors: Cursors;
|
|
718
|
+
hasNext: () => boolean;
|
|
719
|
+
hasPrev: () => boolean;
|
|
720
|
+
length: number;
|
|
721
|
+
pageSize: number;
|
|
722
|
+
}
|
|
723
|
+
interface PagesQueryResult extends QueryCursorResult {
|
|
724
|
+
items: Page[];
|
|
725
|
+
query: PagesQueryBuilder;
|
|
726
|
+
next: () => Promise<PagesQueryResult>;
|
|
727
|
+
prev: () => Promise<PagesQueryResult>;
|
|
728
|
+
}
|
|
729
|
+
interface PagesQueryBuilder {
|
|
730
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
731
|
+
* @param value - Value to compare against.
|
|
732
|
+
* @documentationMaturity preview
|
|
733
|
+
*/
|
|
734
|
+
eq: (propertyName: '_id' | '_createdDate' | 'status', value: any) => PagesQueryBuilder;
|
|
735
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
736
|
+
* @param value - Value to compare against.
|
|
737
|
+
* @documentationMaturity preview
|
|
738
|
+
*/
|
|
739
|
+
ne: (propertyName: '_id' | '_createdDate' | 'status', value: any) => PagesQueryBuilder;
|
|
740
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
741
|
+
* @param value - Value to compare against.
|
|
742
|
+
* @documentationMaturity preview
|
|
743
|
+
*/
|
|
744
|
+
ge: (propertyName: '_id' | '_createdDate', value: any) => PagesQueryBuilder;
|
|
745
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
746
|
+
* @param value - Value to compare against.
|
|
747
|
+
* @documentationMaturity preview
|
|
748
|
+
*/
|
|
749
|
+
gt: (propertyName: '_id' | '_createdDate', value: any) => PagesQueryBuilder;
|
|
750
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
751
|
+
* @param value - Value to compare against.
|
|
752
|
+
* @documentationMaturity preview
|
|
753
|
+
*/
|
|
754
|
+
le: (propertyName: '_id' | '_createdDate', value: any) => PagesQueryBuilder;
|
|
755
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
756
|
+
* @param value - Value to compare against.
|
|
757
|
+
* @documentationMaturity preview
|
|
758
|
+
*/
|
|
759
|
+
lt: (propertyName: '_id' | '_createdDate', value: any) => PagesQueryBuilder;
|
|
760
|
+
/** @param propertyName - Property whose value is compared with `string`.
|
|
761
|
+
* @param string - String to compare against. Case-insensitive.
|
|
762
|
+
* @documentationMaturity preview
|
|
763
|
+
*/
|
|
764
|
+
startsWith: (propertyName: '_id', value: string) => PagesQueryBuilder;
|
|
765
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
766
|
+
* @param values - List of values to compare against.
|
|
767
|
+
* @documentationMaturity preview
|
|
768
|
+
*/
|
|
769
|
+
hasSome: (propertyName: '_id' | '_createdDate' | 'status', value: any[]) => PagesQueryBuilder;
|
|
770
|
+
/** @documentationMaturity preview */
|
|
771
|
+
in: (propertyName: '_id' | '_createdDate' | 'status', value: any) => PagesQueryBuilder;
|
|
772
|
+
/** @documentationMaturity preview */
|
|
773
|
+
exists: (propertyName: '_id' | '_createdDate' | 'status', value: boolean) => PagesQueryBuilder;
|
|
774
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
775
|
+
* @documentationMaturity preview
|
|
776
|
+
*/
|
|
777
|
+
ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'status'>) => PagesQueryBuilder;
|
|
778
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
779
|
+
* @documentationMaturity preview
|
|
780
|
+
*/
|
|
781
|
+
descending: (...propertyNames: Array<'_id' | '_createdDate' | 'status'>) => PagesQueryBuilder;
|
|
782
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
783
|
+
* @documentationMaturity preview
|
|
784
|
+
*/
|
|
785
|
+
limit: (limit: number) => PagesQueryBuilder;
|
|
786
|
+
/** @param cursor - A pointer to specific record
|
|
787
|
+
* @documentationMaturity preview
|
|
788
|
+
*/
|
|
789
|
+
skipTo: (cursor: string) => PagesQueryBuilder;
|
|
790
|
+
/** @documentationMaturity preview */
|
|
791
|
+
find: () => Promise<PagesQueryResult>;
|
|
792
|
+
}
|
|
793
|
+
interface BulkUpdatePageTagsOptions {
|
|
794
|
+
/** List of Tags to assign */
|
|
795
|
+
assignTags?: Tags;
|
|
796
|
+
/** List of Tags to unAssign */
|
|
797
|
+
unassignTags?: Tags;
|
|
798
|
+
}
|
|
799
|
+
interface BulkUpdatePageTagsByFilterOptions {
|
|
800
|
+
/** List of Tags to assign */
|
|
801
|
+
assignTags?: Tags;
|
|
802
|
+
/** List of Tags to unAssign */
|
|
803
|
+
unassignTags?: Tags;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
export { type ActionEvent, type ApplicationError, type ArchivePageRequest, type ArchivePageResponse, type BulkUpdatePageTagsApplicationErrors as B, type BulkActionMetadata, type BulkUpdatePageTagsByFilterOptions, type BulkUpdatePageTagsByFilterRequest, type BulkUpdatePageTagsByFilterResponse, type BulkUpdatePageTagsOptions, type BulkUpdatePageTagsRequest, type BulkUpdatePageTagsResponse, type BulkUpdatePageTagsResult, type CreatePageRequest, type CreatePageResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeletePageRequest, type DeletePageResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetPageRequest, type GetPageResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type Page, type PageArchived, type PageOriginOneOf, type PagePublished, type PageRoute, type PageScheduled, type PageUnarchived, type PageUnpublished, type PagesQueryBuilder, type PagesQueryResult, type PublishPageOptions, type PublishPageRequest, type PublishPageResponse, type QueryPagesRequest, type QueryPagesResponse, type RemovePageRouteRequest, type RemovePageRouteResponse, type RestoreInfo, type StatusWithLiterals as S, type SchedulePageOptions, type SchedulePageRequest, type SchedulePageResponse, type SetPageRouteRequest, type SetPageRouteResponse, SortOrder, type Sorting, Status, type TypeWithLiterals as T, type TagList, type Tags, Type, type UnarchivePageRequest, type UnarchivePageResponse, type UnpublishPageRequest, type UnpublishPageResponse, type UpdatePage, type UpdatePageRequest, type UpdatePageResponse, type WebhookIdentityTypeWithLiterals as W, WebhookIdentityType, type SortOrderWithLiterals as a, type BulkUpdatePageTagsByFilterApplicationErrors as b };
|