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