@wix/auto_sdk_online-programs_sections 1.0.15 → 1.0.16
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 +2 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -10
- package/build/cjs/index.typings.js +1 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +22 -22
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +2 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -10
- package/build/es/index.typings.mjs +1 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +22 -22
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +2 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +103 -10
- package/build/internal/cjs/index.typings.js +1 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +202 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +22 -22
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +2 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +103 -10
- package/build/internal/es/index.typings.mjs +1 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +202 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +22 -22
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -111,11 +111,29 @@ interface Image {
|
|
|
111
111
|
width?: number;
|
|
112
112
|
/** Image alt text. */
|
|
113
113
|
altText?: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* Image URL expiration date (when relevant).
|
|
116
|
+
* @internal
|
|
117
|
+
* @readonly
|
|
118
|
+
*/
|
|
119
|
+
urlExpirationDate?: Date | null;
|
|
114
120
|
/**
|
|
115
121
|
* Image filename.
|
|
116
122
|
* @readonly
|
|
117
123
|
*/
|
|
118
124
|
filename?: string | null;
|
|
125
|
+
/**
|
|
126
|
+
* Image size in bytes.
|
|
127
|
+
* @internal
|
|
128
|
+
* @readonly
|
|
129
|
+
* @format DECIMAL_VALUE
|
|
130
|
+
*/
|
|
131
|
+
sizeInBytes?: string | null;
|
|
132
|
+
/**
|
|
133
|
+
* Focal point of the image.
|
|
134
|
+
* @internal
|
|
135
|
+
*/
|
|
136
|
+
focalPoint?: FocalPoint;
|
|
119
137
|
}
|
|
120
138
|
interface FocalPoint {
|
|
121
139
|
/** X-coordinate of the focal point. */
|
|
@@ -130,6 +148,11 @@ interface FocalPoint {
|
|
|
130
148
|
interface VideoV2 {
|
|
131
149
|
/** WixMedia ID. */
|
|
132
150
|
id?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Original video URL.
|
|
153
|
+
* @internal
|
|
154
|
+
*/
|
|
155
|
+
url?: string;
|
|
133
156
|
/**
|
|
134
157
|
* Available resolutions for the video, starting with the optimal resolution.
|
|
135
158
|
* @readonly
|
|
@@ -141,6 +164,55 @@ interface VideoV2 {
|
|
|
141
164
|
* @readonly
|
|
142
165
|
*/
|
|
143
166
|
filename?: string | null;
|
|
167
|
+
/**
|
|
168
|
+
* Video posters.
|
|
169
|
+
* @internal
|
|
170
|
+
* @readonly
|
|
171
|
+
*/
|
|
172
|
+
posters?: Image[];
|
|
173
|
+
/**
|
|
174
|
+
* Original video size in bytes.
|
|
175
|
+
* @internal
|
|
176
|
+
* @readonly
|
|
177
|
+
* @format DECIMAL_VALUE
|
|
178
|
+
*/
|
|
179
|
+
sizeInBytes?: string | null;
|
|
180
|
+
/**
|
|
181
|
+
* Video URL expiration date (when relevant).
|
|
182
|
+
* @internal
|
|
183
|
+
* @readonly
|
|
184
|
+
*/
|
|
185
|
+
urlExpirationDate?: Date | null;
|
|
186
|
+
/**
|
|
187
|
+
* Original video duration in milliseconds.
|
|
188
|
+
* @internal
|
|
189
|
+
* @readonly
|
|
190
|
+
*/
|
|
191
|
+
durationInMilliseconds?: number | null;
|
|
192
|
+
/**
|
|
193
|
+
* A short title for the video. will be used for SEO purposes.
|
|
194
|
+
* @internal
|
|
195
|
+
* @maxLength 300
|
|
196
|
+
*/
|
|
197
|
+
title?: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* A long description for the video. will be used for SEO purposes.
|
|
200
|
+
* @internal
|
|
201
|
+
* @maxLength 2000
|
|
202
|
+
*/
|
|
203
|
+
description?: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* Original video height.
|
|
206
|
+
* @internal
|
|
207
|
+
* @readonly
|
|
208
|
+
*/
|
|
209
|
+
height?: number | null;
|
|
210
|
+
/**
|
|
211
|
+
* Original video width.
|
|
212
|
+
* @internal
|
|
213
|
+
* @readonly
|
|
214
|
+
*/
|
|
215
|
+
width?: number | null;
|
|
144
216
|
}
|
|
145
217
|
interface VideoResolution {
|
|
146
218
|
/** Video URL. */
|
|
@@ -149,8 +221,68 @@ interface VideoResolution {
|
|
|
149
221
|
height?: number;
|
|
150
222
|
/** Video width. */
|
|
151
223
|
width?: number;
|
|
224
|
+
/**
|
|
225
|
+
* Deprecated. Use the `posters` property in the parent entity instead.
|
|
226
|
+
* @internal
|
|
227
|
+
* @deprecated
|
|
228
|
+
*/
|
|
229
|
+
poster?: Image;
|
|
152
230
|
/** Video format for example, mp4, hls. */
|
|
153
231
|
format?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
|
|
234
|
+
* @internal
|
|
235
|
+
* @deprecated
|
|
236
|
+
*/
|
|
237
|
+
urlExpirationDate?: Date | null;
|
|
238
|
+
/**
|
|
239
|
+
* Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
|
|
240
|
+
* @internal
|
|
241
|
+
* @format DECIMAL_VALUE
|
|
242
|
+
* @deprecated
|
|
243
|
+
*/
|
|
244
|
+
sizeInBytes?: string | null;
|
|
245
|
+
/**
|
|
246
|
+
* Video quality. For example: 480p, 720p.
|
|
247
|
+
* @internal
|
|
248
|
+
*/
|
|
249
|
+
quality?: string | null;
|
|
250
|
+
/**
|
|
251
|
+
* Video filename.
|
|
252
|
+
* @internal
|
|
253
|
+
*/
|
|
254
|
+
filename?: string | null;
|
|
255
|
+
/**
|
|
256
|
+
* Video duration in seconds.
|
|
257
|
+
* @internal
|
|
258
|
+
* @readonly
|
|
259
|
+
* @deprecated Video duration in seconds.
|
|
260
|
+
* @replacedBy duration_in_milliseconds
|
|
261
|
+
* @targetRemovalDate 2024-08-01
|
|
262
|
+
*/
|
|
263
|
+
durationInSeconds?: number | null;
|
|
264
|
+
/**
|
|
265
|
+
* Video duration in milliseconds.
|
|
266
|
+
* @internal
|
|
267
|
+
* @readonly
|
|
268
|
+
*/
|
|
269
|
+
durationInMilliseconds?: number | null;
|
|
270
|
+
/**
|
|
271
|
+
* When true, this is a protected asset, and calling the URL will return a 403 error.
|
|
272
|
+
* In order to access private assets, make a request to:
|
|
273
|
+
* `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
|
|
274
|
+
* @internal
|
|
275
|
+
* @readonly
|
|
276
|
+
*/
|
|
277
|
+
private?: boolean | null;
|
|
278
|
+
/**
|
|
279
|
+
* Key to identify the video resolution's relationship to the original media in WixMedia.
|
|
280
|
+
* Can be used to request a download for the specific video resolution.
|
|
281
|
+
* For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
|
|
282
|
+
* @internal
|
|
283
|
+
* @readonly
|
|
284
|
+
*/
|
|
285
|
+
assetKey?: string | null;
|
|
154
286
|
}
|
|
155
287
|
declare enum State {
|
|
156
288
|
/** the section isn't ready to be shown to participants. */
|
|
@@ -459,6 +591,13 @@ interface GetSectionResponse {
|
|
|
459
591
|
interface UpdateSectionRequest {
|
|
460
592
|
/** Section to update. Include `section.id`, `section.revision`, and the fields to update. */
|
|
461
593
|
section?: Section;
|
|
594
|
+
/**
|
|
595
|
+
* Field mask that specifies which fields to update.
|
|
596
|
+
*
|
|
597
|
+
* Fields that aren't included in `fieldMask.paths` are ignored.
|
|
598
|
+
* @internal
|
|
599
|
+
*/
|
|
600
|
+
fieldMask?: string[];
|
|
462
601
|
/**
|
|
463
602
|
* Predefined sets of fields to return.
|
|
464
603
|
* @maxSize 1
|
|
@@ -549,6 +688,20 @@ interface Sorting {
|
|
|
549
688
|
fieldName?: string;
|
|
550
689
|
/** Sort order. */
|
|
551
690
|
order?: SortOrderWithLiterals;
|
|
691
|
+
/**
|
|
692
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
693
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
694
|
+
*
|
|
695
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
696
|
+
*
|
|
697
|
+
* Example:
|
|
698
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
699
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
700
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
701
|
+
* @internal
|
|
702
|
+
* @maxSize 10
|
|
703
|
+
*/
|
|
704
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
552
705
|
/**
|
|
553
706
|
* Origin point for geo-distance sorting on a GEO field
|
|
554
707
|
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
@@ -600,6 +753,13 @@ interface CursorPagingMetadata {
|
|
|
600
753
|
* + `false`: This is the last page.
|
|
601
754
|
*/
|
|
602
755
|
hasNext?: boolean | null;
|
|
756
|
+
/**
|
|
757
|
+
* Total number of items matching the filter.
|
|
758
|
+
* Available only on the first page of *Search* results, not included in *Query* or *List* results.
|
|
759
|
+
* If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.
|
|
760
|
+
* @internal
|
|
761
|
+
*/
|
|
762
|
+
total?: number | null;
|
|
603
763
|
}
|
|
604
764
|
interface Cursors {
|
|
605
765
|
/**
|
|
@@ -776,8 +936,18 @@ interface DomainEventBodyOneOf {
|
|
|
776
936
|
}
|
|
777
937
|
interface EntityCreatedEvent {
|
|
778
938
|
entityAsJson?: string;
|
|
939
|
+
/**
|
|
940
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
941
|
+
* @internal
|
|
942
|
+
*/
|
|
943
|
+
triggeredByUndelete?: boolean | null;
|
|
779
944
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
780
945
|
restoreInfo?: RestoreInfo;
|
|
946
|
+
/**
|
|
947
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
948
|
+
* @internal
|
|
949
|
+
*/
|
|
950
|
+
additionalMetadataAsJson?: string | null;
|
|
781
951
|
}
|
|
782
952
|
interface RestoreInfo {
|
|
783
953
|
deletedDate?: Date | null;
|
|
@@ -789,10 +959,42 @@ interface EntityUpdatedEvent {
|
|
|
789
959
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
790
960
|
*/
|
|
791
961
|
currentEntityAsJson?: string;
|
|
962
|
+
/**
|
|
963
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
964
|
+
* wont populate it / have any reference to it in the API.
|
|
965
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
966
|
+
* the developer should send only the new (current) entity.
|
|
967
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
968
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
969
|
+
* @internal
|
|
970
|
+
* @deprecated
|
|
971
|
+
*/
|
|
972
|
+
previousEntityAsJson?: string | null;
|
|
973
|
+
/**
|
|
974
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
975
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
976
|
+
* @internal
|
|
977
|
+
*/
|
|
978
|
+
modifiedFields?: Record<string, any>;
|
|
979
|
+
/**
|
|
980
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
981
|
+
* @internal
|
|
982
|
+
*/
|
|
983
|
+
additionalMetadataAsJson?: string | null;
|
|
792
984
|
}
|
|
793
985
|
interface EntityDeletedEvent {
|
|
986
|
+
/**
|
|
987
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
988
|
+
* @internal
|
|
989
|
+
*/
|
|
990
|
+
movedToTrash?: boolean | null;
|
|
794
991
|
/** Entity that was deleted. */
|
|
795
992
|
deletedEntityAsJson?: string | null;
|
|
993
|
+
/**
|
|
994
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
995
|
+
* @internal
|
|
996
|
+
*/
|
|
997
|
+
additionalMetadataAsJson?: string | null;
|
|
796
998
|
}
|
|
797
999
|
interface ActionEvent {
|
|
798
1000
|
bodyAsJson?: string;
|