@wix/auto_sdk_viewer_site-structure-service 1.0.18 → 1.0.19
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.js.map +1 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +90 -0
- package/build/internal/cjs/meta.d.ts +179 -0
- package/build/internal/es/index.typings.d.mts +90 -0
- package/build/internal/es/meta.d.mts +179 -0
- package/package.json +5 -12
- package/build/cjs/schemas.d.ts +0 -106
- package/build/cjs/schemas.js +0 -222
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -106
- package/build/es/schemas.mjs +0 -182
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -294
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -273
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -216
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -106
- package/build/internal/cjs/schemas.js +0 -222
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -267
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -246
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -186
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -106
- package/build/internal/es/schemas.mjs +0 -182
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
|
@@ -99,6 +99,12 @@ interface SiteStructureItem {
|
|
|
99
99
|
translationId?: string;
|
|
100
100
|
/** A value indicating whether the item is a custom error page or not. */
|
|
101
101
|
isCustomErrorPage?: boolean | null;
|
|
102
|
+
/**
|
|
103
|
+
* An page identifier.
|
|
104
|
+
* For items that are the result of a dynamic router - page key
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
pageIdentifier?: string | null;
|
|
102
108
|
}
|
|
103
109
|
/** Deprecated - Copy this message into your service, do not reference it */
|
|
104
110
|
interface MediaItem extends MediaItemMediaOneOf {
|
|
@@ -135,11 +141,29 @@ interface Image {
|
|
|
135
141
|
width?: number;
|
|
136
142
|
/** Image alt text. */
|
|
137
143
|
altText?: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* Image URL expiration date (when relevant).
|
|
146
|
+
* @internal
|
|
147
|
+
* @readonly
|
|
148
|
+
*/
|
|
149
|
+
urlExpirationDate?: Date | null;
|
|
138
150
|
/**
|
|
139
151
|
* Image filename.
|
|
140
152
|
* @readonly
|
|
141
153
|
*/
|
|
142
154
|
filename?: string | null;
|
|
155
|
+
/**
|
|
156
|
+
* Image size in bytes.
|
|
157
|
+
* @internal
|
|
158
|
+
* @readonly
|
|
159
|
+
* @format DECIMAL_VALUE
|
|
160
|
+
*/
|
|
161
|
+
sizeInBytes?: string | null;
|
|
162
|
+
/**
|
|
163
|
+
* Focal point of the image.
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
focalPoint?: FocalPoint;
|
|
143
167
|
}
|
|
144
168
|
interface FocalPoint {
|
|
145
169
|
/** X-coordinate of the focal point. */
|
|
@@ -175,12 +199,34 @@ interface Document {
|
|
|
175
199
|
id?: string;
|
|
176
200
|
/** Document URL. */
|
|
177
201
|
url?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Document URL expiration date (when relevant).
|
|
204
|
+
* @internal
|
|
205
|
+
*/
|
|
206
|
+
urlExpirationDate?: Date | null;
|
|
207
|
+
/**
|
|
208
|
+
* Document size in bytes.
|
|
209
|
+
* @internal
|
|
210
|
+
* @format DECIMAL_VALUE
|
|
211
|
+
*/
|
|
212
|
+
sizeInBytes?: string | null;
|
|
178
213
|
/** Document filename. */
|
|
179
214
|
filename?: string | null;
|
|
215
|
+
/**
|
|
216
|
+
* Document thumbnail.
|
|
217
|
+
* @internal
|
|
218
|
+
* @readonly
|
|
219
|
+
*/
|
|
220
|
+
thumbnail?: Image;
|
|
180
221
|
}
|
|
181
222
|
interface VideoV2 {
|
|
182
223
|
/** WixMedia ID. */
|
|
183
224
|
id?: string;
|
|
225
|
+
/**
|
|
226
|
+
* Original video URL.
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
url?: string;
|
|
184
230
|
/**
|
|
185
231
|
* Available resolutions for the video, starting with the optimal resolution.
|
|
186
232
|
* @readonly
|
|
@@ -192,6 +238,55 @@ interface VideoV2 {
|
|
|
192
238
|
* @readonly
|
|
193
239
|
*/
|
|
194
240
|
filename?: string | null;
|
|
241
|
+
/**
|
|
242
|
+
* Video posters.
|
|
243
|
+
* @internal
|
|
244
|
+
* @readonly
|
|
245
|
+
*/
|
|
246
|
+
posters?: Image[];
|
|
247
|
+
/**
|
|
248
|
+
* Original video size in bytes.
|
|
249
|
+
* @internal
|
|
250
|
+
* @readonly
|
|
251
|
+
* @format DECIMAL_VALUE
|
|
252
|
+
*/
|
|
253
|
+
sizeInBytes?: string | null;
|
|
254
|
+
/**
|
|
255
|
+
* Video URL expiration date (when relevant).
|
|
256
|
+
* @internal
|
|
257
|
+
* @readonly
|
|
258
|
+
*/
|
|
259
|
+
urlExpirationDate?: Date | null;
|
|
260
|
+
/**
|
|
261
|
+
* Original video duration in milliseconds.
|
|
262
|
+
* @internal
|
|
263
|
+
* @readonly
|
|
264
|
+
*/
|
|
265
|
+
durationInMilliseconds?: number | null;
|
|
266
|
+
/**
|
|
267
|
+
* A short title for the video. will be used for SEO purposes.
|
|
268
|
+
* @internal
|
|
269
|
+
* @maxLength 300
|
|
270
|
+
*/
|
|
271
|
+
title?: string | null;
|
|
272
|
+
/**
|
|
273
|
+
* A long description for the video. will be used for SEO purposes.
|
|
274
|
+
* @internal
|
|
275
|
+
* @maxLength 2000
|
|
276
|
+
*/
|
|
277
|
+
description?: string | null;
|
|
278
|
+
/**
|
|
279
|
+
* Original video height.
|
|
280
|
+
* @internal
|
|
281
|
+
* @readonly
|
|
282
|
+
*/
|
|
283
|
+
height?: number | null;
|
|
284
|
+
/**
|
|
285
|
+
* Original video width.
|
|
286
|
+
* @internal
|
|
287
|
+
* @readonly
|
|
288
|
+
*/
|
|
289
|
+
width?: number | null;
|
|
195
290
|
}
|
|
196
291
|
interface VideoResolution {
|
|
197
292
|
/** Video URL. */
|
|
@@ -200,8 +295,68 @@ interface VideoResolution {
|
|
|
200
295
|
height?: number;
|
|
201
296
|
/** Video width. */
|
|
202
297
|
width?: number;
|
|
298
|
+
/**
|
|
299
|
+
* Deprecated. Use the `posters` property in the parent entity instead.
|
|
300
|
+
* @internal
|
|
301
|
+
* @deprecated
|
|
302
|
+
*/
|
|
303
|
+
poster?: Image;
|
|
203
304
|
/** Video format for example, mp4, hls. */
|
|
204
305
|
format?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
|
|
308
|
+
* @internal
|
|
309
|
+
* @deprecated
|
|
310
|
+
*/
|
|
311
|
+
urlExpirationDate?: Date | null;
|
|
312
|
+
/**
|
|
313
|
+
* Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
|
|
314
|
+
* @internal
|
|
315
|
+
* @format DECIMAL_VALUE
|
|
316
|
+
* @deprecated
|
|
317
|
+
*/
|
|
318
|
+
sizeInBytes?: string | null;
|
|
319
|
+
/**
|
|
320
|
+
* Video quality. For example: 480p, 720p.
|
|
321
|
+
* @internal
|
|
322
|
+
*/
|
|
323
|
+
quality?: string | null;
|
|
324
|
+
/**
|
|
325
|
+
* Video filename.
|
|
326
|
+
* @internal
|
|
327
|
+
*/
|
|
328
|
+
filename?: string | null;
|
|
329
|
+
/**
|
|
330
|
+
* Video duration in seconds.
|
|
331
|
+
* @internal
|
|
332
|
+
* @readonly
|
|
333
|
+
* @deprecated Video duration in seconds.
|
|
334
|
+
* @replacedBy duration_in_milliseconds
|
|
335
|
+
* @targetRemovalDate 2024-08-01
|
|
336
|
+
*/
|
|
337
|
+
durationInSeconds?: number | null;
|
|
338
|
+
/**
|
|
339
|
+
* Video duration in milliseconds.
|
|
340
|
+
* @internal
|
|
341
|
+
* @readonly
|
|
342
|
+
*/
|
|
343
|
+
durationInMilliseconds?: number | null;
|
|
344
|
+
/**
|
|
345
|
+
* When true, this is a protected asset, and calling the URL will return a 403 error.
|
|
346
|
+
* In order to access private assets, make a request to:
|
|
347
|
+
* `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
|
|
348
|
+
* @internal
|
|
349
|
+
* @readonly
|
|
350
|
+
*/
|
|
351
|
+
private?: boolean | null;
|
|
352
|
+
/**
|
|
353
|
+
* Key to identify the video resolution's relationship to the original media in WixMedia.
|
|
354
|
+
* Can be used to request a download for the specific video resolution.
|
|
355
|
+
* For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
|
|
356
|
+
* @internal
|
|
357
|
+
* @readonly
|
|
358
|
+
*/
|
|
359
|
+
assetKey?: string | null;
|
|
205
360
|
}
|
|
206
361
|
interface SiteStructureRequest {
|
|
207
362
|
/** An enum indicating whether the request is for the latest published version (0) or the latest saved version (1) of the site */
|
|
@@ -255,6 +410,11 @@ interface SiteStructureRequestFilter {
|
|
|
255
410
|
sourceId?: string;
|
|
256
411
|
/** In accordance to SiteStructureItem.config_id */
|
|
257
412
|
configId?: string;
|
|
413
|
+
/**
|
|
414
|
+
* In accordance to SiteStructureItem.page_identifier
|
|
415
|
+
* @internal
|
|
416
|
+
*/
|
|
417
|
+
pageIdentifier?: string | null;
|
|
258
418
|
}
|
|
259
419
|
interface Sorting {
|
|
260
420
|
/**
|
|
@@ -264,6 +424,20 @@ interface Sorting {
|
|
|
264
424
|
fieldName?: string;
|
|
265
425
|
/** Sort order. */
|
|
266
426
|
order?: SortOrderWithLiterals;
|
|
427
|
+
/**
|
|
428
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
429
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
430
|
+
*
|
|
431
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
432
|
+
*
|
|
433
|
+
* Example:
|
|
434
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
435
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
436
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
437
|
+
* @internal
|
|
438
|
+
* @maxSize 10
|
|
439
|
+
*/
|
|
440
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
267
441
|
/**
|
|
268
442
|
* Origin point for geo-distance sorting on a GEO field
|
|
269
443
|
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
@@ -370,6 +544,11 @@ interface SitePageType {
|
|
|
370
544
|
sourceId?: string;
|
|
371
545
|
/** Site's page-type configId */
|
|
372
546
|
configId?: string;
|
|
547
|
+
/**
|
|
548
|
+
* Site's pages identifiers
|
|
549
|
+
* @internal
|
|
550
|
+
*/
|
|
551
|
+
pageIdentifiers?: string[];
|
|
373
552
|
}
|
|
374
553
|
interface GetSiteStructureChunksRequest {
|
|
375
554
|
/** @maxLength 8192 */
|
|
@@ -98,6 +98,12 @@ interface SiteStructureItem {
|
|
|
98
98
|
translationId?: string;
|
|
99
99
|
/** A value indicating whether the item is a custom error page or not. */
|
|
100
100
|
isCustomErrorPage?: boolean | null;
|
|
101
|
+
/**
|
|
102
|
+
* An page identifier.
|
|
103
|
+
* For items that are the result of a dynamic router - page key
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
pageIdentifier?: string | null;
|
|
101
107
|
}
|
|
102
108
|
/** Deprecated - Copy this message into your service, do not reference it */
|
|
103
109
|
interface MediaItem extends MediaItemMediaOneOf {
|
|
@@ -134,8 +140,68 @@ interface VideoResolution {
|
|
|
134
140
|
height?: number;
|
|
135
141
|
/** Video width. */
|
|
136
142
|
width?: number;
|
|
143
|
+
/**
|
|
144
|
+
* Deprecated. Use the `posters` property in the parent entity instead.
|
|
145
|
+
* @internal
|
|
146
|
+
* @deprecated
|
|
147
|
+
*/
|
|
148
|
+
poster?: string;
|
|
137
149
|
/** Video format for example, mp4, hls. */
|
|
138
150
|
format?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
|
|
153
|
+
* @internal
|
|
154
|
+
* @deprecated
|
|
155
|
+
*/
|
|
156
|
+
urlExpirationDate?: Date | null;
|
|
157
|
+
/**
|
|
158
|
+
* Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
|
|
159
|
+
* @internal
|
|
160
|
+
* @format DECIMAL_VALUE
|
|
161
|
+
* @deprecated
|
|
162
|
+
*/
|
|
163
|
+
sizeInBytes?: string | null;
|
|
164
|
+
/**
|
|
165
|
+
* Video quality. For example: 480p, 720p.
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
quality?: string | null;
|
|
169
|
+
/**
|
|
170
|
+
* Video filename.
|
|
171
|
+
* @internal
|
|
172
|
+
*/
|
|
173
|
+
filename?: string | null;
|
|
174
|
+
/**
|
|
175
|
+
* Video duration in seconds.
|
|
176
|
+
* @internal
|
|
177
|
+
* @readonly
|
|
178
|
+
* @deprecated Video duration in seconds.
|
|
179
|
+
* @replacedBy duration_in_milliseconds
|
|
180
|
+
* @targetRemovalDate 2024-08-01
|
|
181
|
+
*/
|
|
182
|
+
durationInSeconds?: number | null;
|
|
183
|
+
/**
|
|
184
|
+
* Video duration in milliseconds.
|
|
185
|
+
* @internal
|
|
186
|
+
* @readonly
|
|
187
|
+
*/
|
|
188
|
+
durationInMilliseconds?: number | null;
|
|
189
|
+
/**
|
|
190
|
+
* When true, this is a protected asset, and calling the URL will return a 403 error.
|
|
191
|
+
* In order to access private assets, make a request to:
|
|
192
|
+
* `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
|
|
193
|
+
* @internal
|
|
194
|
+
* @readonly
|
|
195
|
+
*/
|
|
196
|
+
private?: boolean | null;
|
|
197
|
+
/**
|
|
198
|
+
* Key to identify the video resolution's relationship to the original media in WixMedia.
|
|
199
|
+
* Can be used to request a download for the specific video resolution.
|
|
200
|
+
* For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
|
|
201
|
+
* @internal
|
|
202
|
+
* @readonly
|
|
203
|
+
*/
|
|
204
|
+
assetKey?: string | null;
|
|
139
205
|
}
|
|
140
206
|
interface SiteStructureRequest {
|
|
141
207
|
/** An enum indicating whether the request is for the latest published version (0) or the latest saved version (1) of the site */
|
|
@@ -189,6 +255,11 @@ interface SiteStructureRequestFilter {
|
|
|
189
255
|
sourceId?: string;
|
|
190
256
|
/** In accordance to SiteStructureItem.config_id */
|
|
191
257
|
configId?: string;
|
|
258
|
+
/**
|
|
259
|
+
* In accordance to SiteStructureItem.page_identifier
|
|
260
|
+
* @internal
|
|
261
|
+
*/
|
|
262
|
+
pageIdentifier?: string | null;
|
|
192
263
|
}
|
|
193
264
|
interface Sorting {
|
|
194
265
|
/**
|
|
@@ -198,6 +269,20 @@ interface Sorting {
|
|
|
198
269
|
fieldName?: string;
|
|
199
270
|
/** Sort order. */
|
|
200
271
|
order?: SortOrderWithLiterals;
|
|
272
|
+
/**
|
|
273
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
274
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
275
|
+
*
|
|
276
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
277
|
+
*
|
|
278
|
+
* Example:
|
|
279
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
280
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
281
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
282
|
+
* @internal
|
|
283
|
+
* @maxSize 10
|
|
284
|
+
*/
|
|
285
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
201
286
|
/**
|
|
202
287
|
* Origin point for geo-distance sorting on a GEO field
|
|
203
288
|
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
@@ -304,6 +389,11 @@ interface SitePageType {
|
|
|
304
389
|
sourceId?: string;
|
|
305
390
|
/** Site's page-type configId */
|
|
306
391
|
configId?: string;
|
|
392
|
+
/**
|
|
393
|
+
* Site's pages identifiers
|
|
394
|
+
* @internal
|
|
395
|
+
*/
|
|
396
|
+
pageIdentifiers?: string[];
|
|
307
397
|
}
|
|
308
398
|
interface GetSiteStructureChunksRequest {
|
|
309
399
|
/** @maxLength 8192 */
|
|
@@ -99,6 +99,12 @@ interface SiteStructureItem {
|
|
|
99
99
|
translationId?: string;
|
|
100
100
|
/** A value indicating whether the item is a custom error page or not. */
|
|
101
101
|
isCustomErrorPage?: boolean | null;
|
|
102
|
+
/**
|
|
103
|
+
* An page identifier.
|
|
104
|
+
* For items that are the result of a dynamic router - page key
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
pageIdentifier?: string | null;
|
|
102
108
|
}
|
|
103
109
|
/** Deprecated - Copy this message into your service, do not reference it */
|
|
104
110
|
interface MediaItem extends MediaItemMediaOneOf {
|
|
@@ -135,11 +141,29 @@ interface Image {
|
|
|
135
141
|
width?: number;
|
|
136
142
|
/** Image alt text. */
|
|
137
143
|
altText?: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* Image URL expiration date (when relevant).
|
|
146
|
+
* @internal
|
|
147
|
+
* @readonly
|
|
148
|
+
*/
|
|
149
|
+
urlExpirationDate?: Date | null;
|
|
138
150
|
/**
|
|
139
151
|
* Image filename.
|
|
140
152
|
* @readonly
|
|
141
153
|
*/
|
|
142
154
|
filename?: string | null;
|
|
155
|
+
/**
|
|
156
|
+
* Image size in bytes.
|
|
157
|
+
* @internal
|
|
158
|
+
* @readonly
|
|
159
|
+
* @format DECIMAL_VALUE
|
|
160
|
+
*/
|
|
161
|
+
sizeInBytes?: string | null;
|
|
162
|
+
/**
|
|
163
|
+
* Focal point of the image.
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
focalPoint?: FocalPoint;
|
|
143
167
|
}
|
|
144
168
|
interface FocalPoint {
|
|
145
169
|
/** X-coordinate of the focal point. */
|
|
@@ -175,12 +199,34 @@ interface Document {
|
|
|
175
199
|
id?: string;
|
|
176
200
|
/** Document URL. */
|
|
177
201
|
url?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Document URL expiration date (when relevant).
|
|
204
|
+
* @internal
|
|
205
|
+
*/
|
|
206
|
+
urlExpirationDate?: Date | null;
|
|
207
|
+
/**
|
|
208
|
+
* Document size in bytes.
|
|
209
|
+
* @internal
|
|
210
|
+
* @format DECIMAL_VALUE
|
|
211
|
+
*/
|
|
212
|
+
sizeInBytes?: string | null;
|
|
178
213
|
/** Document filename. */
|
|
179
214
|
filename?: string | null;
|
|
215
|
+
/**
|
|
216
|
+
* Document thumbnail.
|
|
217
|
+
* @internal
|
|
218
|
+
* @readonly
|
|
219
|
+
*/
|
|
220
|
+
thumbnail?: Image;
|
|
180
221
|
}
|
|
181
222
|
interface VideoV2 {
|
|
182
223
|
/** WixMedia ID. */
|
|
183
224
|
id?: string;
|
|
225
|
+
/**
|
|
226
|
+
* Original video URL.
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
url?: string;
|
|
184
230
|
/**
|
|
185
231
|
* Available resolutions for the video, starting with the optimal resolution.
|
|
186
232
|
* @readonly
|
|
@@ -192,6 +238,55 @@ interface VideoV2 {
|
|
|
192
238
|
* @readonly
|
|
193
239
|
*/
|
|
194
240
|
filename?: string | null;
|
|
241
|
+
/**
|
|
242
|
+
* Video posters.
|
|
243
|
+
* @internal
|
|
244
|
+
* @readonly
|
|
245
|
+
*/
|
|
246
|
+
posters?: Image[];
|
|
247
|
+
/**
|
|
248
|
+
* Original video size in bytes.
|
|
249
|
+
* @internal
|
|
250
|
+
* @readonly
|
|
251
|
+
* @format DECIMAL_VALUE
|
|
252
|
+
*/
|
|
253
|
+
sizeInBytes?: string | null;
|
|
254
|
+
/**
|
|
255
|
+
* Video URL expiration date (when relevant).
|
|
256
|
+
* @internal
|
|
257
|
+
* @readonly
|
|
258
|
+
*/
|
|
259
|
+
urlExpirationDate?: Date | null;
|
|
260
|
+
/**
|
|
261
|
+
* Original video duration in milliseconds.
|
|
262
|
+
* @internal
|
|
263
|
+
* @readonly
|
|
264
|
+
*/
|
|
265
|
+
durationInMilliseconds?: number | null;
|
|
266
|
+
/**
|
|
267
|
+
* A short title for the video. will be used for SEO purposes.
|
|
268
|
+
* @internal
|
|
269
|
+
* @maxLength 300
|
|
270
|
+
*/
|
|
271
|
+
title?: string | null;
|
|
272
|
+
/**
|
|
273
|
+
* A long description for the video. will be used for SEO purposes.
|
|
274
|
+
* @internal
|
|
275
|
+
* @maxLength 2000
|
|
276
|
+
*/
|
|
277
|
+
description?: string | null;
|
|
278
|
+
/**
|
|
279
|
+
* Original video height.
|
|
280
|
+
* @internal
|
|
281
|
+
* @readonly
|
|
282
|
+
*/
|
|
283
|
+
height?: number | null;
|
|
284
|
+
/**
|
|
285
|
+
* Original video width.
|
|
286
|
+
* @internal
|
|
287
|
+
* @readonly
|
|
288
|
+
*/
|
|
289
|
+
width?: number | null;
|
|
195
290
|
}
|
|
196
291
|
interface VideoResolution {
|
|
197
292
|
/** Video URL. */
|
|
@@ -200,8 +295,68 @@ interface VideoResolution {
|
|
|
200
295
|
height?: number;
|
|
201
296
|
/** Video width. */
|
|
202
297
|
width?: number;
|
|
298
|
+
/**
|
|
299
|
+
* Deprecated. Use the `posters` property in the parent entity instead.
|
|
300
|
+
* @internal
|
|
301
|
+
* @deprecated
|
|
302
|
+
*/
|
|
303
|
+
poster?: Image;
|
|
203
304
|
/** Video format for example, mp4, hls. */
|
|
204
305
|
format?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
|
|
308
|
+
* @internal
|
|
309
|
+
* @deprecated
|
|
310
|
+
*/
|
|
311
|
+
urlExpirationDate?: Date | null;
|
|
312
|
+
/**
|
|
313
|
+
* Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
|
|
314
|
+
* @internal
|
|
315
|
+
* @format DECIMAL_VALUE
|
|
316
|
+
* @deprecated
|
|
317
|
+
*/
|
|
318
|
+
sizeInBytes?: string | null;
|
|
319
|
+
/**
|
|
320
|
+
* Video quality. For example: 480p, 720p.
|
|
321
|
+
* @internal
|
|
322
|
+
*/
|
|
323
|
+
quality?: string | null;
|
|
324
|
+
/**
|
|
325
|
+
* Video filename.
|
|
326
|
+
* @internal
|
|
327
|
+
*/
|
|
328
|
+
filename?: string | null;
|
|
329
|
+
/**
|
|
330
|
+
* Video duration in seconds.
|
|
331
|
+
* @internal
|
|
332
|
+
* @readonly
|
|
333
|
+
* @deprecated Video duration in seconds.
|
|
334
|
+
* @replacedBy duration_in_milliseconds
|
|
335
|
+
* @targetRemovalDate 2024-08-01
|
|
336
|
+
*/
|
|
337
|
+
durationInSeconds?: number | null;
|
|
338
|
+
/**
|
|
339
|
+
* Video duration in milliseconds.
|
|
340
|
+
* @internal
|
|
341
|
+
* @readonly
|
|
342
|
+
*/
|
|
343
|
+
durationInMilliseconds?: number | null;
|
|
344
|
+
/**
|
|
345
|
+
* When true, this is a protected asset, and calling the URL will return a 403 error.
|
|
346
|
+
* In order to access private assets, make a request to:
|
|
347
|
+
* `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
|
|
348
|
+
* @internal
|
|
349
|
+
* @readonly
|
|
350
|
+
*/
|
|
351
|
+
private?: boolean | null;
|
|
352
|
+
/**
|
|
353
|
+
* Key to identify the video resolution's relationship to the original media in WixMedia.
|
|
354
|
+
* Can be used to request a download for the specific video resolution.
|
|
355
|
+
* For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
|
|
356
|
+
* @internal
|
|
357
|
+
* @readonly
|
|
358
|
+
*/
|
|
359
|
+
assetKey?: string | null;
|
|
205
360
|
}
|
|
206
361
|
interface SiteStructureRequest {
|
|
207
362
|
/** An enum indicating whether the request is for the latest published version (0) or the latest saved version (1) of the site */
|
|
@@ -255,6 +410,11 @@ interface SiteStructureRequestFilter {
|
|
|
255
410
|
sourceId?: string;
|
|
256
411
|
/** In accordance to SiteStructureItem.config_id */
|
|
257
412
|
configId?: string;
|
|
413
|
+
/**
|
|
414
|
+
* In accordance to SiteStructureItem.page_identifier
|
|
415
|
+
* @internal
|
|
416
|
+
*/
|
|
417
|
+
pageIdentifier?: string | null;
|
|
258
418
|
}
|
|
259
419
|
interface Sorting {
|
|
260
420
|
/**
|
|
@@ -264,6 +424,20 @@ interface Sorting {
|
|
|
264
424
|
fieldName?: string;
|
|
265
425
|
/** Sort order. */
|
|
266
426
|
order?: SortOrderWithLiterals;
|
|
427
|
+
/**
|
|
428
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
429
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
430
|
+
*
|
|
431
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
432
|
+
*
|
|
433
|
+
* Example:
|
|
434
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
435
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
436
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
437
|
+
* @internal
|
|
438
|
+
* @maxSize 10
|
|
439
|
+
*/
|
|
440
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
267
441
|
/**
|
|
268
442
|
* Origin point for geo-distance sorting on a GEO field
|
|
269
443
|
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
@@ -370,6 +544,11 @@ interface SitePageType {
|
|
|
370
544
|
sourceId?: string;
|
|
371
545
|
/** Site's page-type configId */
|
|
372
546
|
configId?: string;
|
|
547
|
+
/**
|
|
548
|
+
* Site's pages identifiers
|
|
549
|
+
* @internal
|
|
550
|
+
*/
|
|
551
|
+
pageIdentifiers?: string[];
|
|
373
552
|
}
|
|
374
553
|
interface GetSiteStructureChunksRequest {
|
|
375
554
|
/** @maxLength 8192 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_viewer_site-structure-service",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,23 +21,16 @@
|
|
|
21
21
|
"import": "./build/es/meta.mjs",
|
|
22
22
|
"require": "./build/cjs/meta.js",
|
|
23
23
|
"types": "./build/es/meta.d.mts"
|
|
24
|
-
},
|
|
25
|
-
"./schemas": {
|
|
26
|
-
"import": "./build/es/schemas.mjs",
|
|
27
|
-
"require": "./build/cjs/schemas.js",
|
|
28
|
-
"types": "./build/es/schemas.d.mts"
|
|
29
24
|
}
|
|
30
25
|
},
|
|
31
26
|
"files": [
|
|
32
27
|
"build",
|
|
33
28
|
"meta",
|
|
34
|
-
"service-plugins"
|
|
35
|
-
"schemas"
|
|
29
|
+
"service-plugins"
|
|
36
30
|
],
|
|
37
31
|
"dependencies": {
|
|
38
|
-
"@wix/sdk-runtime": "^1.0.
|
|
39
|
-
"@wix/sdk-types": "^1.17.
|
|
40
|
-
"zod": "^4.3.6"
|
|
32
|
+
"@wix/sdk-runtime": "^1.0.24",
|
|
33
|
+
"@wix/sdk-types": "^1.17.11"
|
|
41
34
|
},
|
|
42
35
|
"devDependencies": {
|
|
43
36
|
"tsup": "^8.4.0",
|
|
@@ -57,5 +50,5 @@
|
|
|
57
50
|
"fqdn": "wix.viewer.structure.v1.site_structure_item"
|
|
58
51
|
}
|
|
59
52
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "70ba1e7fb5f8815ed05ce70a6ce3c662ae4c31164efebf4513b6ef81"
|
|
61
54
|
}
|