@wix/auto_sdk_quick-pages_published-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 +384 -0
- package/build/cjs/index.js +356 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +320 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +194 -0
- package/build/cjs/meta.js +253 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +384 -0
- package/build/es/index.mjs +327 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1 -0
- package/build/es/index.typings.mjs +291 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +194 -0
- package/build/es/meta.mjs +223 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +63 -0
- package/build/internal/cjs/index.js +356 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +437 -0
- package/build/internal/cjs/index.typings.js +320 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +195 -0
- package/build/internal/cjs/meta.js +253 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +63 -0
- package/build/internal/es/index.mjs +327 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +437 -0
- package/build/internal/es/index.typings.mjs +291 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +195 -0
- package/build/internal/es/meta.mjs +223 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
/** A PublishedPage of QuickPages */
|
|
2
|
+
interface PublishedPage {
|
|
3
|
+
/**
|
|
4
|
+
* PublishedPage ID.
|
|
5
|
+
* @format GUID
|
|
6
|
+
* @readonly
|
|
7
|
+
*/
|
|
8
|
+
_id?: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Revision number, which increments by 1 each time the PublishedPage is updated.
|
|
11
|
+
* To prevent conflicting changes,
|
|
12
|
+
* the current revision must be passed when updating the PublishedPage.
|
|
13
|
+
*
|
|
14
|
+
* Ignored when creating a PublishedPage.
|
|
15
|
+
* @readonly
|
|
16
|
+
*/
|
|
17
|
+
revision?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* QuickPage page ID.
|
|
20
|
+
* @format GUID
|
|
21
|
+
* @immutable
|
|
22
|
+
*/
|
|
23
|
+
pageId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* QuickPage page ID.
|
|
26
|
+
* @format GUID
|
|
27
|
+
* @immutable
|
|
28
|
+
*/
|
|
29
|
+
contentId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Page slug used in the URL.
|
|
32
|
+
* @minLength 3
|
|
33
|
+
* @maxLength 100
|
|
34
|
+
*/
|
|
35
|
+
slug?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Date and time the PublishedPage was created.
|
|
38
|
+
* @readonly
|
|
39
|
+
*/
|
|
40
|
+
_createdDate?: Date | null;
|
|
41
|
+
/**
|
|
42
|
+
* Date and time the PublishedPage was last updated.
|
|
43
|
+
* @readonly
|
|
44
|
+
*/
|
|
45
|
+
_updatedDate?: Date | null;
|
|
46
|
+
}
|
|
47
|
+
interface GetPublishedPageRequest {
|
|
48
|
+
/**
|
|
49
|
+
* ID of the PublishedPage to retrieve.
|
|
50
|
+
* @format GUID
|
|
51
|
+
*/
|
|
52
|
+
publishedPageId: string;
|
|
53
|
+
}
|
|
54
|
+
interface GetPublishedPageResponse {
|
|
55
|
+
/** The requested PublishedPage. */
|
|
56
|
+
publishedPage?: PublishedPage;
|
|
57
|
+
}
|
|
58
|
+
interface GetPublishedPageBySlugRequest {
|
|
59
|
+
/**
|
|
60
|
+
* ID of the PublishedPage to retrieve.
|
|
61
|
+
* @minLength 3
|
|
62
|
+
* @maxLength 100
|
|
63
|
+
*/
|
|
64
|
+
slug: string;
|
|
65
|
+
}
|
|
66
|
+
interface GetPublishedPageBySlugResponse {
|
|
67
|
+
/** The requested PublishedPage. */
|
|
68
|
+
publishedPage?: PublishedPage;
|
|
69
|
+
}
|
|
70
|
+
interface GetPublishedPageByPageIdRequest {
|
|
71
|
+
/**
|
|
72
|
+
* ID of the PublishedPage to retrieve.
|
|
73
|
+
* @format GUID
|
|
74
|
+
*/
|
|
75
|
+
pageId: string;
|
|
76
|
+
}
|
|
77
|
+
interface GetPublishedPageByPageIdResponse {
|
|
78
|
+
/** The requested PublishedPage. */
|
|
79
|
+
publishedPage?: PublishedPage;
|
|
80
|
+
}
|
|
81
|
+
interface QueryPublishedPagesRequest {
|
|
82
|
+
/** WQL expression. */
|
|
83
|
+
query?: CursorQuery;
|
|
84
|
+
}
|
|
85
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
86
|
+
/** 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`. */
|
|
87
|
+
cursorPaging?: CursorPaging;
|
|
88
|
+
/**
|
|
89
|
+
* Filter object in the following format:
|
|
90
|
+
* `"filter" : {
|
|
91
|
+
* "fieldName1": "value1",
|
|
92
|
+
* "fieldName2":{"$operator":"value2"}
|
|
93
|
+
* }`
|
|
94
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
95
|
+
*/
|
|
96
|
+
filter?: Record<string, any> | null;
|
|
97
|
+
/**
|
|
98
|
+
* Sort object in the following format:
|
|
99
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
100
|
+
* @maxSize 5
|
|
101
|
+
*/
|
|
102
|
+
sort?: Sorting[];
|
|
103
|
+
}
|
|
104
|
+
/** @oneof */
|
|
105
|
+
interface CursorQueryPagingMethodOneOf {
|
|
106
|
+
/** 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`. */
|
|
107
|
+
cursorPaging?: CursorPaging;
|
|
108
|
+
}
|
|
109
|
+
interface Sorting {
|
|
110
|
+
/**
|
|
111
|
+
* Name of the field to sort by.
|
|
112
|
+
* @maxLength 512
|
|
113
|
+
*/
|
|
114
|
+
fieldName?: string;
|
|
115
|
+
/** Sort order. */
|
|
116
|
+
order?: SortOrderWithLiterals;
|
|
117
|
+
}
|
|
118
|
+
declare enum SortOrder {
|
|
119
|
+
ASC = "ASC",
|
|
120
|
+
DESC = "DESC"
|
|
121
|
+
}
|
|
122
|
+
/** @enumType */
|
|
123
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
124
|
+
interface CursorPaging {
|
|
125
|
+
/**
|
|
126
|
+
* Maximum number of items to return in the results.
|
|
127
|
+
* @max 100
|
|
128
|
+
*/
|
|
129
|
+
limit?: number | null;
|
|
130
|
+
/**
|
|
131
|
+
* Pointer to the next or previous page in the list of results.
|
|
132
|
+
*
|
|
133
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
134
|
+
* Not relevant for the first request.
|
|
135
|
+
* @maxLength 16000
|
|
136
|
+
*/
|
|
137
|
+
cursor?: string | null;
|
|
138
|
+
}
|
|
139
|
+
interface QueryPublishedPagesResponse {
|
|
140
|
+
/** List of PublishedPages. */
|
|
141
|
+
publishedPages?: PublishedPage[];
|
|
142
|
+
/** Paging metadata */
|
|
143
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
144
|
+
}
|
|
145
|
+
interface CursorPagingMetadata {
|
|
146
|
+
/** Number of items returned in the response. */
|
|
147
|
+
count?: number | null;
|
|
148
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
149
|
+
cursors?: Cursors;
|
|
150
|
+
/**
|
|
151
|
+
* Whether there are more pages to retrieve following the current page.
|
|
152
|
+
*
|
|
153
|
+
* + `true`: Another page of results can be retrieved.
|
|
154
|
+
* + `false`: This is the last page.
|
|
155
|
+
*/
|
|
156
|
+
hasNext?: boolean | null;
|
|
157
|
+
}
|
|
158
|
+
interface Cursors {
|
|
159
|
+
/**
|
|
160
|
+
* Cursor string pointing to the next page in the list of results.
|
|
161
|
+
* @maxLength 16000
|
|
162
|
+
*/
|
|
163
|
+
next?: string | null;
|
|
164
|
+
/**
|
|
165
|
+
* Cursor pointing to the previous page in the list of results.
|
|
166
|
+
* @maxLength 16000
|
|
167
|
+
*/
|
|
168
|
+
prev?: string | null;
|
|
169
|
+
}
|
|
170
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
171
|
+
createdEvent?: EntityCreatedEvent;
|
|
172
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
173
|
+
deletedEvent?: EntityDeletedEvent;
|
|
174
|
+
actionEvent?: ActionEvent;
|
|
175
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
176
|
+
_id?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
179
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
180
|
+
*/
|
|
181
|
+
entityFqdn?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
184
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
185
|
+
*/
|
|
186
|
+
slug?: string;
|
|
187
|
+
/** ID of the entity associated with the event. */
|
|
188
|
+
entityId?: string;
|
|
189
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
190
|
+
eventTime?: Date | null;
|
|
191
|
+
/**
|
|
192
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
193
|
+
* (for example, GDPR).
|
|
194
|
+
*/
|
|
195
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
196
|
+
/** If present, indicates the action that triggered the event. */
|
|
197
|
+
originatedFrom?: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* 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.
|
|
200
|
+
* 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.
|
|
201
|
+
*/
|
|
202
|
+
entityEventSequence?: string | null;
|
|
203
|
+
}
|
|
204
|
+
/** @oneof */
|
|
205
|
+
interface DomainEventBodyOneOf {
|
|
206
|
+
createdEvent?: EntityCreatedEvent;
|
|
207
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
208
|
+
deletedEvent?: EntityDeletedEvent;
|
|
209
|
+
actionEvent?: ActionEvent;
|
|
210
|
+
}
|
|
211
|
+
interface EntityCreatedEvent {
|
|
212
|
+
entity?: string;
|
|
213
|
+
}
|
|
214
|
+
interface RestoreInfo {
|
|
215
|
+
deletedDate?: Date | null;
|
|
216
|
+
}
|
|
217
|
+
interface EntityUpdatedEvent {
|
|
218
|
+
/**
|
|
219
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
220
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
221
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
222
|
+
*/
|
|
223
|
+
currentEntity?: string;
|
|
224
|
+
}
|
|
225
|
+
interface EntityDeletedEvent {
|
|
226
|
+
/** Entity that was deleted. */
|
|
227
|
+
deletedEntity?: string | null;
|
|
228
|
+
}
|
|
229
|
+
interface ActionEvent {
|
|
230
|
+
body?: string;
|
|
231
|
+
}
|
|
232
|
+
interface Empty {
|
|
233
|
+
}
|
|
234
|
+
interface MessageEnvelope {
|
|
235
|
+
/**
|
|
236
|
+
* App instance ID.
|
|
237
|
+
* @format GUID
|
|
238
|
+
*/
|
|
239
|
+
instanceId?: string | null;
|
|
240
|
+
/**
|
|
241
|
+
* Event type.
|
|
242
|
+
* @maxLength 150
|
|
243
|
+
*/
|
|
244
|
+
eventType?: string;
|
|
245
|
+
/** The identification type and identity data. */
|
|
246
|
+
identity?: IdentificationData;
|
|
247
|
+
/** Stringify payload. */
|
|
248
|
+
data?: string;
|
|
249
|
+
}
|
|
250
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
251
|
+
/**
|
|
252
|
+
* ID of a site visitor that has not logged in to the site.
|
|
253
|
+
* @format GUID
|
|
254
|
+
*/
|
|
255
|
+
anonymousVisitorId?: string;
|
|
256
|
+
/**
|
|
257
|
+
* ID of a site visitor that has logged in to the site.
|
|
258
|
+
* @format GUID
|
|
259
|
+
*/
|
|
260
|
+
memberId?: string;
|
|
261
|
+
/**
|
|
262
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
263
|
+
* @format GUID
|
|
264
|
+
*/
|
|
265
|
+
wixUserId?: string;
|
|
266
|
+
/**
|
|
267
|
+
* ID of an app.
|
|
268
|
+
* @format GUID
|
|
269
|
+
*/
|
|
270
|
+
appId?: string;
|
|
271
|
+
/** @readonly */
|
|
272
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
273
|
+
}
|
|
274
|
+
/** @oneof */
|
|
275
|
+
interface IdentificationDataIdOneOf {
|
|
276
|
+
/**
|
|
277
|
+
* ID of a site visitor that has not logged in to the site.
|
|
278
|
+
* @format GUID
|
|
279
|
+
*/
|
|
280
|
+
anonymousVisitorId?: string;
|
|
281
|
+
/**
|
|
282
|
+
* ID of a site visitor that has logged in to the site.
|
|
283
|
+
* @format GUID
|
|
284
|
+
*/
|
|
285
|
+
memberId?: string;
|
|
286
|
+
/**
|
|
287
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
288
|
+
* @format GUID
|
|
289
|
+
*/
|
|
290
|
+
wixUserId?: string;
|
|
291
|
+
/**
|
|
292
|
+
* ID of an app.
|
|
293
|
+
* @format GUID
|
|
294
|
+
*/
|
|
295
|
+
appId?: string;
|
|
296
|
+
}
|
|
297
|
+
declare enum WebhookIdentityType {
|
|
298
|
+
UNKNOWN = "UNKNOWN",
|
|
299
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
300
|
+
MEMBER = "MEMBER",
|
|
301
|
+
WIX_USER = "WIX_USER",
|
|
302
|
+
APP = "APP"
|
|
303
|
+
}
|
|
304
|
+
/** @enumType */
|
|
305
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
306
|
+
interface QueryCursorResult {
|
|
307
|
+
cursors: Cursors;
|
|
308
|
+
hasNext: () => boolean;
|
|
309
|
+
hasPrev: () => boolean;
|
|
310
|
+
length: number;
|
|
311
|
+
pageSize: number;
|
|
312
|
+
}
|
|
313
|
+
interface PublishedPagesQueryResult extends QueryCursorResult {
|
|
314
|
+
items: PublishedPage[];
|
|
315
|
+
query: PublishedPagesQueryBuilder;
|
|
316
|
+
next: () => Promise<PublishedPagesQueryResult>;
|
|
317
|
+
prev: () => Promise<PublishedPagesQueryResult>;
|
|
318
|
+
}
|
|
319
|
+
interface PublishedPagesQueryBuilder {
|
|
320
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
321
|
+
* @param value - Value to compare against.
|
|
322
|
+
* @documentationMaturity preview
|
|
323
|
+
*/
|
|
324
|
+
eq: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;
|
|
325
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
326
|
+
* @param value - Value to compare against.
|
|
327
|
+
* @documentationMaturity preview
|
|
328
|
+
*/
|
|
329
|
+
ne: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;
|
|
330
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
331
|
+
* @param value - Value to compare against.
|
|
332
|
+
* @documentationMaturity preview
|
|
333
|
+
*/
|
|
334
|
+
ge: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;
|
|
335
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
336
|
+
* @param value - Value to compare against.
|
|
337
|
+
* @documentationMaturity preview
|
|
338
|
+
*/
|
|
339
|
+
gt: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;
|
|
340
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
341
|
+
* @param value - Value to compare against.
|
|
342
|
+
* @documentationMaturity preview
|
|
343
|
+
*/
|
|
344
|
+
le: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;
|
|
345
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
346
|
+
* @param value - Value to compare against.
|
|
347
|
+
* @documentationMaturity preview
|
|
348
|
+
*/
|
|
349
|
+
lt: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;
|
|
350
|
+
/** @param propertyName - Property whose value is compared with `string`.
|
|
351
|
+
* @param string - String to compare against. Case-insensitive.
|
|
352
|
+
* @documentationMaturity preview
|
|
353
|
+
*/
|
|
354
|
+
startsWith: (propertyName: '_id', value: string) => PublishedPagesQueryBuilder;
|
|
355
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
356
|
+
* @param values - List of values to compare against.
|
|
357
|
+
* @documentationMaturity preview
|
|
358
|
+
*/
|
|
359
|
+
hasSome: (propertyName: '_id', value: any[]) => PublishedPagesQueryBuilder;
|
|
360
|
+
/** @documentationMaturity preview */
|
|
361
|
+
in: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;
|
|
362
|
+
/** @documentationMaturity preview */
|
|
363
|
+
exists: (propertyName: '_id', value: boolean) => PublishedPagesQueryBuilder;
|
|
364
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
365
|
+
* @documentationMaturity preview
|
|
366
|
+
*/
|
|
367
|
+
ascending: (...propertyNames: Array<'_id'>) => PublishedPagesQueryBuilder;
|
|
368
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
369
|
+
* @documentationMaturity preview
|
|
370
|
+
*/
|
|
371
|
+
descending: (...propertyNames: Array<'_id'>) => PublishedPagesQueryBuilder;
|
|
372
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
373
|
+
* @documentationMaturity preview
|
|
374
|
+
*/
|
|
375
|
+
limit: (limit: number) => PublishedPagesQueryBuilder;
|
|
376
|
+
/** @param cursor - A pointer to specific record
|
|
377
|
+
* @documentationMaturity preview
|
|
378
|
+
*/
|
|
379
|
+
skipTo: (cursor: string) => PublishedPagesQueryBuilder;
|
|
380
|
+
/** @documentationMaturity preview */
|
|
381
|
+
find: () => Promise<PublishedPagesQueryResult>;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export { type ActionEvent, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GetPublishedPageByPageIdRequest, type GetPublishedPageByPageIdResponse, type GetPublishedPageBySlugRequest, type GetPublishedPageBySlugResponse, type GetPublishedPageRequest, type GetPublishedPageResponse, type IdentificationData, type IdentificationDataIdOneOf, type MessageEnvelope, type PublishedPage, type PublishedPagesQueryBuilder, type PublishedPagesQueryResult, type QueryPublishedPagesRequest, type QueryPublishedPagesResponse, type RestoreInfo, type SortOrderWithLiterals as S, SortOrder, type Sorting, type WebhookIdentityTypeWithLiterals as W, WebhookIdentityType };
|