@wix/auto_sdk_online-programs_sections 1.0.15 → 1.0.17
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 +6 -16
- package/build/cjs/index.js +2 -153
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -40
- package/build/cjs/index.typings.js +1 -143
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -7
- package/build/cjs/meta.js +0 -109
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +1 -129
- package/build/cjs/schemas.js +23 -212
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +6 -16
- package/build/es/index.mjs +2 -152
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -40
- package/build/es/index.typings.mjs +1 -142
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +4 -7
- package/build/es/meta.mjs +0 -108
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +1 -129
- package/build/es/schemas.mjs +23 -210
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +6 -16
- package/build/internal/cjs/index.js +2 -153
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +114 -39
- package/build/internal/cjs/index.typings.js +1 -143
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +210 -6
- package/build/internal/cjs/meta.js +0 -109
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +1 -129
- package/build/internal/cjs/schemas.js +23 -212
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +6 -16
- package/build/internal/es/index.mjs +2 -152
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +114 -39
- package/build/internal/es/index.typings.mjs +1 -142
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +210 -6
- package/build/internal/es/meta.mjs +0 -108
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +1 -129
- package/build/internal/es/schemas.mjs +23 -210
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateSectionRequest as CreateSectionRequest$1, CreateSectionResponse as CreateSectionResponse$1, BulkCreateSectionsRequest as BulkCreateSectionsRequest$1, BulkCreateSectionsResponse as BulkCreateSectionsResponse$1,
|
|
1
|
+
import { CreateSectionRequest as CreateSectionRequest$1, CreateSectionResponse as CreateSectionResponse$1, BulkCreateSectionsRequest as BulkCreateSectionsRequest$1, BulkCreateSectionsResponse as BulkCreateSectionsResponse$1, GetSectionRequest as GetSectionRequest$1, GetSectionResponse as GetSectionResponse$1, UpdateSectionRequest as UpdateSectionRequest$1, UpdateSectionResponse as UpdateSectionResponse$1, DeleteSectionRequest as DeleteSectionRequest$1, DeleteSectionResponse as DeleteSectionResponse$1, QuerySectionsRequest as QuerySectionsRequest$1, QuerySectionsResponse as QuerySectionsResponse$1, ListSectionsRequest as ListSectionsRequest$1, ListSectionsResponse as ListSectionsResponse$1, CloneSectionRequest as CloneSectionRequest$1, CloneSectionResponse as CloneSectionResponse$1, MoveSectionRequest as MoveSectionRequest$1, MoveSectionResponse as MoveSectionResponse$1, PublishSectionRequest as PublishSectionRequest$1, PublishSectionResponse as PublishSectionResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
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. */
|
|
@@ -358,7 +490,10 @@ interface BulkCreateSectionsResponse {
|
|
|
358
490
|
interface BulkSectionResult {
|
|
359
491
|
/** Metadata for the bulk operation result. */
|
|
360
492
|
itemMetadata?: ItemMetadata;
|
|
361
|
-
/**
|
|
493
|
+
/**
|
|
494
|
+
* Internal placeholder. Use `item_metadata` to identify the created section.
|
|
495
|
+
* @internal
|
|
496
|
+
*/
|
|
362
497
|
item?: Section;
|
|
363
498
|
/** Action associated with the bulk result. */
|
|
364
499
|
action?: BulkActionTypeWithLiterals;
|
|
@@ -403,7 +538,7 @@ interface BulkCreateSectionRequest {
|
|
|
403
538
|
* @minSize 1
|
|
404
539
|
* @maxSize 100
|
|
405
540
|
*/
|
|
406
|
-
sections
|
|
541
|
+
sections?: Section[];
|
|
407
542
|
/**
|
|
408
543
|
* Predefined sets of fields to return.
|
|
409
544
|
* @maxSize 1
|
|
@@ -459,6 +594,13 @@ interface GetSectionResponse {
|
|
|
459
594
|
interface UpdateSectionRequest {
|
|
460
595
|
/** Section to update. Include `section.id`, `section.revision`, and the fields to update. */
|
|
461
596
|
section?: Section;
|
|
597
|
+
/**
|
|
598
|
+
* Field mask that specifies which fields to update.
|
|
599
|
+
*
|
|
600
|
+
* Fields that aren't included in `fieldMask.paths` are ignored.
|
|
601
|
+
* @internal
|
|
602
|
+
*/
|
|
603
|
+
fieldMask?: string[];
|
|
462
604
|
/**
|
|
463
605
|
* Predefined sets of fields to return.
|
|
464
606
|
* @maxSize 1
|
|
@@ -549,6 +691,20 @@ interface Sorting {
|
|
|
549
691
|
fieldName?: string;
|
|
550
692
|
/** Sort order. */
|
|
551
693
|
order?: SortOrderWithLiterals;
|
|
694
|
+
/**
|
|
695
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
696
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
697
|
+
*
|
|
698
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
699
|
+
*
|
|
700
|
+
* Example:
|
|
701
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
702
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
703
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
704
|
+
* @internal
|
|
705
|
+
* @maxSize 10
|
|
706
|
+
*/
|
|
707
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
552
708
|
/**
|
|
553
709
|
* Origin point for geo-distance sorting on a GEO field
|
|
554
710
|
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
@@ -600,6 +756,13 @@ interface CursorPagingMetadata {
|
|
|
600
756
|
* + `false`: This is the last page.
|
|
601
757
|
*/
|
|
602
758
|
hasNext?: boolean | null;
|
|
759
|
+
/**
|
|
760
|
+
* Total number of items matching the filter.
|
|
761
|
+
* Available only on the first page of *Search* results, not included in *Query* or *List* results.
|
|
762
|
+
* If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.
|
|
763
|
+
* @internal
|
|
764
|
+
*/
|
|
765
|
+
total?: number | null;
|
|
603
766
|
}
|
|
604
767
|
interface Cursors {
|
|
605
768
|
/**
|
|
@@ -661,7 +824,7 @@ interface MoveSectionRequest {
|
|
|
661
824
|
* @format GUID
|
|
662
825
|
*/
|
|
663
826
|
afterSectionId?: string | null;
|
|
664
|
-
/** Current revision of the section. */
|
|
827
|
+
/** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
|
|
665
828
|
revision?: string;
|
|
666
829
|
/**
|
|
667
830
|
* Predefined sets of fields to return.
|
|
@@ -776,8 +939,18 @@ interface DomainEventBodyOneOf {
|
|
|
776
939
|
}
|
|
777
940
|
interface EntityCreatedEvent {
|
|
778
941
|
entityAsJson?: string;
|
|
942
|
+
/**
|
|
943
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
944
|
+
* @internal
|
|
945
|
+
*/
|
|
946
|
+
triggeredByUndelete?: boolean | null;
|
|
779
947
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
780
948
|
restoreInfo?: RestoreInfo;
|
|
949
|
+
/**
|
|
950
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
951
|
+
* @internal
|
|
952
|
+
*/
|
|
953
|
+
additionalMetadataAsJson?: string | null;
|
|
781
954
|
}
|
|
782
955
|
interface RestoreInfo {
|
|
783
956
|
deletedDate?: Date | null;
|
|
@@ -789,10 +962,42 @@ interface EntityUpdatedEvent {
|
|
|
789
962
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
790
963
|
*/
|
|
791
964
|
currentEntityAsJson?: string;
|
|
965
|
+
/**
|
|
966
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
967
|
+
* wont populate it / have any reference to it in the API.
|
|
968
|
+
* 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,
|
|
969
|
+
* the developer should send only the new (current) entity.
|
|
970
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
971
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
972
|
+
* @internal
|
|
973
|
+
* @deprecated
|
|
974
|
+
*/
|
|
975
|
+
previousEntityAsJson?: string | null;
|
|
976
|
+
/**
|
|
977
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
978
|
+
* 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)
|
|
979
|
+
* @internal
|
|
980
|
+
*/
|
|
981
|
+
modifiedFields?: Record<string, any>;
|
|
982
|
+
/**
|
|
983
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
984
|
+
* @internal
|
|
985
|
+
*/
|
|
986
|
+
additionalMetadataAsJson?: string | null;
|
|
792
987
|
}
|
|
793
988
|
interface EntityDeletedEvent {
|
|
989
|
+
/**
|
|
990
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
991
|
+
* @internal
|
|
992
|
+
*/
|
|
993
|
+
movedToTrash?: boolean | null;
|
|
794
994
|
/** Entity that was deleted. */
|
|
795
995
|
deletedEntityAsJson?: string | null;
|
|
996
|
+
/**
|
|
997
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
998
|
+
* @internal
|
|
999
|
+
*/
|
|
1000
|
+
additionalMetadataAsJson?: string | null;
|
|
796
1001
|
}
|
|
797
1002
|
interface ActionEvent {
|
|
798
1003
|
bodyAsJson?: string;
|
|
@@ -926,7 +1131,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
926
1131
|
};
|
|
927
1132
|
declare function createSection(): __PublicMethodMetaInfo<'POST', {}, CreateSectionRequest$1, CreateSectionRequest, CreateSectionResponse$1, CreateSectionResponse>;
|
|
928
1133
|
declare function bulkCreateSections(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionsRequest$1, BulkCreateSectionsRequest, BulkCreateSectionsResponse$1, BulkCreateSectionsResponse>;
|
|
929
|
-
declare function bulkCreateSection(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionRequest$1, BulkCreateSectionRequest, BulkCreateSectionResponse$1, BulkCreateSectionResponse>;
|
|
930
1134
|
declare function getSection(): __PublicMethodMetaInfo<'GET', {
|
|
931
1135
|
sectionId: string;
|
|
932
1136
|
}, GetSectionRequest$1, GetSectionRequest, GetSectionResponse$1, GetSectionResponse>;
|
|
@@ -944,4 +1148,4 @@ declare function cloneSection(): __PublicMethodMetaInfo<'POST', {
|
|
|
944
1148
|
declare function moveSection(): __PublicMethodMetaInfo<'PATCH', {}, MoveSectionRequest$1, MoveSectionRequest, MoveSectionResponse$1, MoveSectionResponse>;
|
|
945
1149
|
declare function publishSection(): __PublicMethodMetaInfo<'PATCH', {}, PublishSectionRequest$1, PublishSectionRequest, PublishSectionResponse$1, PublishSectionResponse>;
|
|
946
1150
|
|
|
947
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, BulkActionType as BulkActionTypeOriginal, type BulkActionTypeWithLiterals as BulkActionTypeWithLiteralsOriginal, type BulkCloneSectionRequest as BulkCloneSectionRequestOriginal, type BulkCloneSectionResponse as BulkCloneSectionResponseOriginal, type BulkCreateSectionMigrationRequest as BulkCreateSectionMigrationRequestOriginal, type BulkCreateSectionMigrationResponse as BulkCreateSectionMigrationResponseOriginal, type BulkCreateSectionRequest as BulkCreateSectionRequestOriginal, type BulkCreateSectionResponse as BulkCreateSectionResponseOriginal, type BulkCreateSectionsRequest as BulkCreateSectionsRequestOriginal, type BulkCreateSectionsResponse as BulkCreateSectionsResponseOriginal, type BulkSectionResult as BulkSectionResultOriginal, type CloneSectionRequest as CloneSectionRequestOriginal, type CloneSectionResponse as CloneSectionResponseOriginal, type CreateSectionRequest as CreateSectionRequestOriginal, type CreateSectionResponse as CreateSectionResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteAllProgramSectionsRequest as DeleteAllProgramSectionsRequestOriginal, type DeleteAllProgramSectionsResponse as DeleteAllProgramSectionsResponseOriginal, type DeleteByFilterOperation as DeleteByFilterOperationOriginal, type DeleteByIdsOperation as DeleteByIdsOperationOriginal, type DeleteSectionRequest as DeleteSectionRequestOriginal, type DeleteSectionResponse as DeleteSectionResponseOriginal, DescriptionFieldSet as DescriptionFieldSetOriginal, type DescriptionFieldSetWithLiterals as DescriptionFieldSetWithLiteralsOriginal, type DescriptionMediaOneOf as DescriptionMediaOneOfOriginal, type Description as DescriptionOriginal, type DocumentImage as DocumentImageOriginal, type DocumentPayload as DocumentPayloadOriginal, type DocumentUpdateOperation as DocumentUpdateOperationOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, Enum as EnumOriginal, type EnumWithLiterals as EnumWithLiteralsOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FocalPoint as FocalPointOriginal, type GetSectionRequest as GetSectionRequestOriginal, type GetSectionResponse as GetSectionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type IndexDocument as IndexDocumentOriginal, type ItemMetadata as ItemMetadataOriginal, type ListSectionsRequest as ListSectionsRequestOriginal, type ListSectionsResponse as ListSectionsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MoveSectionRequest as MoveSectionRequestOriginal, type MoveSectionResponse as MoveSectionResponseOriginal, type PublishSectionRequest as PublishSectionRequestOriginal, type PublishSectionResponse as PublishSectionResponseOriginal, type QuerySectionsRequest as QuerySectionsRequestOriginal, type QuerySectionsResponse as QuerySectionsResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreSectionFromTrashRequest as RestoreSectionFromTrashRequestOriginal, type RestoreSectionFromTrashResponse as RestoreSectionFromTrashResponseOriginal, type SearchIndexingNotification as SearchIndexingNotificationOriginal, SearchIndexingNotificationState as SearchIndexingNotificationStateOriginal, type SearchIndexingNotificationStateWithLiterals as SearchIndexingNotificationStateWithLiteralsOriginal, type SectionCloned as SectionClonedOriginal, type SectionDeleted as SectionDeletedOriginal, type SectionMoved as SectionMovedOriginal, type Section as SectionOriginal, type SectionPublished as SectionPublishedOriginal, type SectionUpdated as SectionUpdatedOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, type UpdateByFilterOperation as UpdateByFilterOperationOriginal, type UpdateDocumentsEventOperationOneOf as UpdateDocumentsEventOperationOneOfOriginal, type UpdateDocumentsEvent as UpdateDocumentsEventOriginal, type UpdateExistingOperation as UpdateExistingOperationOriginal, type UpdateSectionRequest as UpdateSectionRequestOriginal, type UpdateSectionResponse as UpdateSectionResponseOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo,
|
|
1151
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, BulkActionType as BulkActionTypeOriginal, type BulkActionTypeWithLiterals as BulkActionTypeWithLiteralsOriginal, type BulkCloneSectionRequest as BulkCloneSectionRequestOriginal, type BulkCloneSectionResponse as BulkCloneSectionResponseOriginal, type BulkCreateSectionMigrationRequest as BulkCreateSectionMigrationRequestOriginal, type BulkCreateSectionMigrationResponse as BulkCreateSectionMigrationResponseOriginal, type BulkCreateSectionRequest as BulkCreateSectionRequestOriginal, type BulkCreateSectionResponse as BulkCreateSectionResponseOriginal, type BulkCreateSectionsRequest as BulkCreateSectionsRequestOriginal, type BulkCreateSectionsResponse as BulkCreateSectionsResponseOriginal, type BulkSectionResult as BulkSectionResultOriginal, type CloneSectionRequest as CloneSectionRequestOriginal, type CloneSectionResponse as CloneSectionResponseOriginal, type CreateSectionRequest as CreateSectionRequestOriginal, type CreateSectionResponse as CreateSectionResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteAllProgramSectionsRequest as DeleteAllProgramSectionsRequestOriginal, type DeleteAllProgramSectionsResponse as DeleteAllProgramSectionsResponseOriginal, type DeleteByFilterOperation as DeleteByFilterOperationOriginal, type DeleteByIdsOperation as DeleteByIdsOperationOriginal, type DeleteSectionRequest as DeleteSectionRequestOriginal, type DeleteSectionResponse as DeleteSectionResponseOriginal, DescriptionFieldSet as DescriptionFieldSetOriginal, type DescriptionFieldSetWithLiterals as DescriptionFieldSetWithLiteralsOriginal, type DescriptionMediaOneOf as DescriptionMediaOneOfOriginal, type Description as DescriptionOriginal, type DocumentImage as DocumentImageOriginal, type DocumentPayload as DocumentPayloadOriginal, type DocumentUpdateOperation as DocumentUpdateOperationOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, Enum as EnumOriginal, type EnumWithLiterals as EnumWithLiteralsOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FocalPoint as FocalPointOriginal, type GetSectionRequest as GetSectionRequestOriginal, type GetSectionResponse as GetSectionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type IndexDocument as IndexDocumentOriginal, type ItemMetadata as ItemMetadataOriginal, type ListSectionsRequest as ListSectionsRequestOriginal, type ListSectionsResponse as ListSectionsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MoveSectionRequest as MoveSectionRequestOriginal, type MoveSectionResponse as MoveSectionResponseOriginal, type PublishSectionRequest as PublishSectionRequestOriginal, type PublishSectionResponse as PublishSectionResponseOriginal, type QuerySectionsRequest as QuerySectionsRequestOriginal, type QuerySectionsResponse as QuerySectionsResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreSectionFromTrashRequest as RestoreSectionFromTrashRequestOriginal, type RestoreSectionFromTrashResponse as RestoreSectionFromTrashResponseOriginal, type SearchIndexingNotification as SearchIndexingNotificationOriginal, SearchIndexingNotificationState as SearchIndexingNotificationStateOriginal, type SearchIndexingNotificationStateWithLiterals as SearchIndexingNotificationStateWithLiteralsOriginal, type SectionCloned as SectionClonedOriginal, type SectionDeleted as SectionDeletedOriginal, type SectionMoved as SectionMovedOriginal, type Section as SectionOriginal, type SectionPublished as SectionPublishedOriginal, type SectionUpdated as SectionUpdatedOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, type UpdateByFilterOperation as UpdateByFilterOperationOriginal, type UpdateDocumentsEventOperationOneOf as UpdateDocumentsEventOperationOneOfOriginal, type UpdateDocumentsEvent as UpdateDocumentsEventOriginal, type UpdateExistingOperation as UpdateExistingOperationOriginal, type UpdateSectionRequest as UpdateSectionRequestOriginal, type UpdateSectionResponse as UpdateSectionResponseOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateSections, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
|
|
@@ -279,95 +279,6 @@ function bulkCreateSections(payload) {
|
|
|
279
279
|
}
|
|
280
280
|
return __bulkCreateSections;
|
|
281
281
|
}
|
|
282
|
-
function bulkCreateSection(payload) {
|
|
283
|
-
function __bulkCreateSection({ host }) {
|
|
284
|
-
const serializedData = transformPaths(payload, [
|
|
285
|
-
{
|
|
286
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
287
|
-
paths: [
|
|
288
|
-
{ path: "sections.createdDate" },
|
|
289
|
-
{ path: "sections.updatedDate" },
|
|
290
|
-
{ path: "sections.description.image.urlExpirationDate" },
|
|
291
|
-
{ path: "sections.description.video.urlExpirationDate" },
|
|
292
|
-
{ path: "sections.description.video.resolutions.urlExpirationDate" },
|
|
293
|
-
{
|
|
294
|
-
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
295
|
-
},
|
|
296
|
-
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
297
|
-
]
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
301
|
-
paths: [
|
|
302
|
-
{ path: "sections.ordering" },
|
|
303
|
-
{ path: "sections.description.image.focalPoint.x" },
|
|
304
|
-
{ path: "sections.description.image.focalPoint.y" },
|
|
305
|
-
{
|
|
306
|
-
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
310
|
-
},
|
|
311
|
-
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
312
|
-
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
313
|
-
]
|
|
314
|
-
}
|
|
315
|
-
]);
|
|
316
|
-
const metadata = {
|
|
317
|
-
entityFqdn: "wix.online_programs.v3.section",
|
|
318
|
-
method: "POST",
|
|
319
|
-
methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
|
|
320
|
-
packageName: PACKAGE_NAME,
|
|
321
|
-
migrationOptions: {
|
|
322
|
-
optInTransformResponse: true
|
|
323
|
-
},
|
|
324
|
-
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
325
|
-
protoPath: "/v3/bulk/sections/create-deprecated",
|
|
326
|
-
data: serializedData,
|
|
327
|
-
host
|
|
328
|
-
}),
|
|
329
|
-
data: serializedData,
|
|
330
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
331
|
-
{
|
|
332
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
333
|
-
paths: [
|
|
334
|
-
{ path: "results.item.createdDate" },
|
|
335
|
-
{ path: "results.item.updatedDate" },
|
|
336
|
-
{ path: "results.item.description.image.urlExpirationDate" },
|
|
337
|
-
{ path: "results.item.description.video.urlExpirationDate" },
|
|
338
|
-
{
|
|
339
|
-
path: "results.item.description.video.resolutions.urlExpirationDate"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
path: "results.item.description.video.resolutions.poster.urlExpirationDate"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
path: "results.item.description.video.posters.urlExpirationDate"
|
|
346
|
-
}
|
|
347
|
-
]
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
351
|
-
paths: [
|
|
352
|
-
{ path: "results.item.ordering" },
|
|
353
|
-
{ path: "results.item.description.image.focalPoint.x" },
|
|
354
|
-
{ path: "results.item.description.image.focalPoint.y" },
|
|
355
|
-
{
|
|
356
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.x"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.y"
|
|
360
|
-
},
|
|
361
|
-
{ path: "results.item.description.video.posters.focalPoint.x" },
|
|
362
|
-
{ path: "results.item.description.video.posters.focalPoint.y" }
|
|
363
|
-
]
|
|
364
|
-
}
|
|
365
|
-
])
|
|
366
|
-
};
|
|
367
|
-
return metadata;
|
|
368
|
-
}
|
|
369
|
-
return __bulkCreateSection;
|
|
370
|
-
}
|
|
371
282
|
function getSection(payload) {
|
|
372
283
|
function __getSection({ host }) {
|
|
373
284
|
const metadata = {
|
|
@@ -904,24 +815,6 @@ function bulkCreateSections2() {
|
|
|
904
815
|
__originalResponseType: null
|
|
905
816
|
};
|
|
906
817
|
}
|
|
907
|
-
function bulkCreateSection2() {
|
|
908
|
-
const payload = {};
|
|
909
|
-
const getRequestOptions = bulkCreateSection(payload);
|
|
910
|
-
const getUrl = (context) => {
|
|
911
|
-
const { url } = getRequestOptions(context);
|
|
912
|
-
return url;
|
|
913
|
-
};
|
|
914
|
-
return {
|
|
915
|
-
getUrl,
|
|
916
|
-
httpMethod: "POST",
|
|
917
|
-
path: "/v3/bulk/sections/create-deprecated",
|
|
918
|
-
pathParams: {},
|
|
919
|
-
__requestType: null,
|
|
920
|
-
__originalRequestType: null,
|
|
921
|
-
__responseType: null,
|
|
922
|
-
__originalResponseType: null
|
|
923
|
-
};
|
|
924
|
-
}
|
|
925
818
|
function getSection2() {
|
|
926
819
|
const payload = { sectionId: ":sectionId" };
|
|
927
820
|
const getRequestOptions = getSection(payload);
|
|
@@ -1075,7 +968,6 @@ export {
|
|
|
1075
968
|
SortOrder as SortOrderOriginal,
|
|
1076
969
|
State as StateOriginal,
|
|
1077
970
|
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
1078
|
-
bulkCreateSection2 as bulkCreateSection,
|
|
1079
971
|
bulkCreateSections2 as bulkCreateSections,
|
|
1080
972
|
cloneSection2 as cloneSection,
|
|
1081
973
|
createSection2 as createSection,
|