@wix/auto_sdk_online-programs_sections 1.0.14 → 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.d.ts +18 -6
- package/build/cjs/index.js +163 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +63 -14
- package/build/cjs/index.typings.js +153 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +35 -4
- package/build/cjs/meta.js +122 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +101 -1
- package/build/cjs/schemas.js +168 -21
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +18 -6
- package/build/es/index.mjs +162 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +63 -14
- package/build/es/index.typings.mjs +152 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +35 -4
- package/build/es/meta.mjs +121 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +101 -1
- package/build/es/schemas.mjs +166 -21
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -6
- package/build/internal/cjs/index.js +163 -7
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +165 -14
- package/build/internal/cjs/index.typings.js +153 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +237 -4
- package/build/internal/cjs/meta.js +122 -4
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +101 -1
- package/build/internal/cjs/schemas.js +168 -21
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +18 -6
- package/build/internal/es/index.mjs +162 -7
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +165 -14
- package/build/internal/es/index.typings.mjs +152 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +237 -4
- package/build/internal/es/meta.mjs +121 -4
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +101 -1
- package/build/internal/es/schemas.mjs +166 -21
- 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, BulkCreateSectionRequest as BulkCreateSectionRequest$1, BulkCreateSectionResponse as BulkCreateSectionResponse$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';
|
|
1
|
+
import { CreateSectionRequest as CreateSectionRequest$1, CreateSectionResponse as CreateSectionResponse$1, BulkCreateSectionsRequest as BulkCreateSectionsRequest$1, BulkCreateSectionsResponse as BulkCreateSectionsResponse$1, BulkCreateSectionRequest as BulkCreateSectionRequest$1, BulkCreateSectionResponse as BulkCreateSectionResponse$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. */
|
|
@@ -336,7 +468,7 @@ interface CreateSectionResponse {
|
|
|
336
468
|
/** Created section. */
|
|
337
469
|
section?: Section;
|
|
338
470
|
}
|
|
339
|
-
interface
|
|
471
|
+
interface BulkCreateSectionsRequest {
|
|
340
472
|
/**
|
|
341
473
|
* List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
|
|
342
474
|
* @minSize 1
|
|
@@ -349,7 +481,7 @@ interface BulkCreateSectionRequest {
|
|
|
349
481
|
*/
|
|
350
482
|
fields?: RequestedFieldsWithLiterals[];
|
|
351
483
|
}
|
|
352
|
-
interface
|
|
484
|
+
interface BulkCreateSectionsResponse {
|
|
353
485
|
/** Results for the bulk create operation. */
|
|
354
486
|
results?: BulkSectionResult[];
|
|
355
487
|
/** Summary of the bulk create operation. */
|
|
@@ -397,6 +529,25 @@ interface BulkActionMetadata {
|
|
|
397
529
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
398
530
|
undetailedFailures?: number;
|
|
399
531
|
}
|
|
532
|
+
interface BulkCreateSectionRequest {
|
|
533
|
+
/**
|
|
534
|
+
* List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
|
|
535
|
+
* @minSize 1
|
|
536
|
+
* @maxSize 100
|
|
537
|
+
*/
|
|
538
|
+
sections: Section[];
|
|
539
|
+
/**
|
|
540
|
+
* Predefined sets of fields to return.
|
|
541
|
+
* @maxSize 1
|
|
542
|
+
*/
|
|
543
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
544
|
+
}
|
|
545
|
+
interface BulkCreateSectionResponse {
|
|
546
|
+
/** Results for the bulk create operation. */
|
|
547
|
+
results?: BulkSectionResult[];
|
|
548
|
+
/** Summary of the bulk create operation. */
|
|
549
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
550
|
+
}
|
|
400
551
|
interface BulkCreateSectionMigrationRequest {
|
|
401
552
|
/**
|
|
402
553
|
* List of sections to create.
|
|
@@ -440,6 +591,13 @@ interface GetSectionResponse {
|
|
|
440
591
|
interface UpdateSectionRequest {
|
|
441
592
|
/** Section to update. Include `section.id`, `section.revision`, and the fields to update. */
|
|
442
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[];
|
|
443
601
|
/**
|
|
444
602
|
* Predefined sets of fields to return.
|
|
445
603
|
* @maxSize 1
|
|
@@ -530,6 +688,25 @@ interface Sorting {
|
|
|
530
688
|
fieldName?: string;
|
|
531
689
|
/** Sort order. */
|
|
532
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;
|
|
705
|
+
/**
|
|
706
|
+
* Origin point for geo-distance sorting on a GEO field
|
|
707
|
+
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
708
|
+
*/
|
|
709
|
+
origin?: AddressLocation;
|
|
533
710
|
}
|
|
534
711
|
declare enum SortOrder {
|
|
535
712
|
ASC = "ASC",
|
|
@@ -537,6 +714,12 @@ declare enum SortOrder {
|
|
|
537
714
|
}
|
|
538
715
|
/** @enumType */
|
|
539
716
|
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
717
|
+
interface AddressLocation {
|
|
718
|
+
/** Address latitude. */
|
|
719
|
+
latitude?: number | null;
|
|
720
|
+
/** Address longitude. */
|
|
721
|
+
longitude?: number | null;
|
|
722
|
+
}
|
|
540
723
|
interface CursorPaging {
|
|
541
724
|
/**
|
|
542
725
|
* Maximum number of items to return in the results.
|
|
@@ -570,6 +753,13 @@ interface CursorPagingMetadata {
|
|
|
570
753
|
* + `false`: This is the last page.
|
|
571
754
|
*/
|
|
572
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;
|
|
573
763
|
}
|
|
574
764
|
interface Cursors {
|
|
575
765
|
/**
|
|
@@ -746,8 +936,18 @@ interface DomainEventBodyOneOf {
|
|
|
746
936
|
}
|
|
747
937
|
interface EntityCreatedEvent {
|
|
748
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;
|
|
749
944
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
750
945
|
restoreInfo?: RestoreInfo;
|
|
946
|
+
/**
|
|
947
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
948
|
+
* @internal
|
|
949
|
+
*/
|
|
950
|
+
additionalMetadataAsJson?: string | null;
|
|
751
951
|
}
|
|
752
952
|
interface RestoreInfo {
|
|
753
953
|
deletedDate?: Date | null;
|
|
@@ -759,10 +959,42 @@ interface EntityUpdatedEvent {
|
|
|
759
959
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
760
960
|
*/
|
|
761
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;
|
|
762
984
|
}
|
|
763
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;
|
|
764
991
|
/** Entity that was deleted. */
|
|
765
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;
|
|
766
998
|
}
|
|
767
999
|
interface ActionEvent {
|
|
768
1000
|
bodyAsJson?: string;
|
|
@@ -895,6 +1127,7 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
895
1127
|
__originalResponseType: R;
|
|
896
1128
|
};
|
|
897
1129
|
declare function createSection(): __PublicMethodMetaInfo<'POST', {}, CreateSectionRequest$1, CreateSectionRequest, CreateSectionResponse$1, CreateSectionResponse>;
|
|
1130
|
+
declare function bulkCreateSections(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionsRequest$1, BulkCreateSectionsRequest, BulkCreateSectionsResponse$1, BulkCreateSectionsResponse>;
|
|
898
1131
|
declare function bulkCreateSection(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionRequest$1, BulkCreateSectionRequest, BulkCreateSectionResponse$1, BulkCreateSectionResponse>;
|
|
899
1132
|
declare function getSection(): __PublicMethodMetaInfo<'GET', {
|
|
900
1133
|
sectionId: string;
|
|
@@ -913,4 +1146,4 @@ declare function cloneSection(): __PublicMethodMetaInfo<'POST', {
|
|
|
913
1146
|
declare function moveSection(): __PublicMethodMetaInfo<'PATCH', {}, MoveSectionRequest$1, MoveSectionRequest, MoveSectionResponse$1, MoveSectionResponse>;
|
|
914
1147
|
declare function publishSection(): __PublicMethodMetaInfo<'PATCH', {}, PublishSectionRequest$1, PublishSectionRequest, PublishSectionResponse$1, PublishSectionResponse>;
|
|
915
1148
|
|
|
916
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, 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 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, bulkCreateSection, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
|
|
1149
|
+
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, bulkCreateSection, bulkCreateSections, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
|
|
@@ -190,6 +190,95 @@ function createSection(payload) {
|
|
|
190
190
|
}
|
|
191
191
|
return __createSection;
|
|
192
192
|
}
|
|
193
|
+
function bulkCreateSections(payload) {
|
|
194
|
+
function __bulkCreateSections({ host }) {
|
|
195
|
+
const serializedData = transformPaths(payload, [
|
|
196
|
+
{
|
|
197
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
198
|
+
paths: [
|
|
199
|
+
{ path: "sections.createdDate" },
|
|
200
|
+
{ path: "sections.updatedDate" },
|
|
201
|
+
{ path: "sections.description.image.urlExpirationDate" },
|
|
202
|
+
{ path: "sections.description.video.urlExpirationDate" },
|
|
203
|
+
{ path: "sections.description.video.resolutions.urlExpirationDate" },
|
|
204
|
+
{
|
|
205
|
+
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
206
|
+
},
|
|
207
|
+
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
212
|
+
paths: [
|
|
213
|
+
{ path: "sections.ordering" },
|
|
214
|
+
{ path: "sections.description.image.focalPoint.x" },
|
|
215
|
+
{ path: "sections.description.image.focalPoint.y" },
|
|
216
|
+
{
|
|
217
|
+
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
221
|
+
},
|
|
222
|
+
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
223
|
+
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
]);
|
|
227
|
+
const metadata = {
|
|
228
|
+
entityFqdn: "wix.online_programs.v3.section",
|
|
229
|
+
method: "POST",
|
|
230
|
+
methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections",
|
|
231
|
+
packageName: PACKAGE_NAME,
|
|
232
|
+
migrationOptions: {
|
|
233
|
+
optInTransformResponse: true
|
|
234
|
+
},
|
|
235
|
+
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
236
|
+
protoPath: "/v3/bulk/sections/create",
|
|
237
|
+
data: serializedData,
|
|
238
|
+
host
|
|
239
|
+
}),
|
|
240
|
+
data: serializedData,
|
|
241
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
242
|
+
{
|
|
243
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
244
|
+
paths: [
|
|
245
|
+
{ path: "results.item.createdDate" },
|
|
246
|
+
{ path: "results.item.updatedDate" },
|
|
247
|
+
{ path: "results.item.description.image.urlExpirationDate" },
|
|
248
|
+
{ path: "results.item.description.video.urlExpirationDate" },
|
|
249
|
+
{
|
|
250
|
+
path: "results.item.description.video.resolutions.urlExpirationDate"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
path: "results.item.description.video.resolutions.poster.urlExpirationDate"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
path: "results.item.description.video.posters.urlExpirationDate"
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
262
|
+
paths: [
|
|
263
|
+
{ path: "results.item.ordering" },
|
|
264
|
+
{ path: "results.item.description.image.focalPoint.x" },
|
|
265
|
+
{ path: "results.item.description.image.focalPoint.y" },
|
|
266
|
+
{
|
|
267
|
+
path: "results.item.description.video.resolutions.poster.focalPoint.x"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
path: "results.item.description.video.resolutions.poster.focalPoint.y"
|
|
271
|
+
},
|
|
272
|
+
{ path: "results.item.description.video.posters.focalPoint.x" },
|
|
273
|
+
{ path: "results.item.description.video.posters.focalPoint.y" }
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
])
|
|
277
|
+
};
|
|
278
|
+
return metadata;
|
|
279
|
+
}
|
|
280
|
+
return __bulkCreateSections;
|
|
281
|
+
}
|
|
193
282
|
function bulkCreateSection(payload) {
|
|
194
283
|
function __bulkCreateSection({ host }) {
|
|
195
284
|
const serializedData = transformPaths(payload, [
|
|
@@ -233,7 +322,7 @@ function bulkCreateSection(payload) {
|
|
|
233
322
|
optInTransformResponse: true
|
|
234
323
|
},
|
|
235
324
|
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
236
|
-
protoPath: "/v3/bulk/sections/create",
|
|
325
|
+
protoPath: "/v3/bulk/sections/create-deprecated",
|
|
237
326
|
data: serializedData,
|
|
238
327
|
host
|
|
239
328
|
}),
|
|
@@ -444,6 +533,15 @@ function deleteSection(payload) {
|
|
|
444
533
|
}
|
|
445
534
|
function querySections(payload) {
|
|
446
535
|
function __querySections({ host }) {
|
|
536
|
+
const serializedData = transformPaths(payload, [
|
|
537
|
+
{
|
|
538
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
539
|
+
paths: [
|
|
540
|
+
{ path: "query.sort.origin.latitude" },
|
|
541
|
+
{ path: "query.sort.origin.longitude" }
|
|
542
|
+
]
|
|
543
|
+
}
|
|
544
|
+
]);
|
|
447
545
|
const metadata = {
|
|
448
546
|
entityFqdn: "wix.online_programs.v3.section",
|
|
449
547
|
method: "POST",
|
|
@@ -454,10 +552,10 @@ function querySections(payload) {
|
|
|
454
552
|
},
|
|
455
553
|
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
456
554
|
protoPath: "/v3/sections/query",
|
|
457
|
-
data:
|
|
555
|
+
data: serializedData,
|
|
458
556
|
host
|
|
459
557
|
}),
|
|
460
|
-
data:
|
|
558
|
+
data: serializedData,
|
|
461
559
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
462
560
|
{
|
|
463
561
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -788,6 +886,24 @@ function createSection2() {
|
|
|
788
886
|
__originalResponseType: null
|
|
789
887
|
};
|
|
790
888
|
}
|
|
889
|
+
function bulkCreateSections2() {
|
|
890
|
+
const payload = {};
|
|
891
|
+
const getRequestOptions = bulkCreateSections(payload);
|
|
892
|
+
const getUrl = (context) => {
|
|
893
|
+
const { url } = getRequestOptions(context);
|
|
894
|
+
return url;
|
|
895
|
+
};
|
|
896
|
+
return {
|
|
897
|
+
getUrl,
|
|
898
|
+
httpMethod: "POST",
|
|
899
|
+
path: "/v3/bulk/sections/create",
|
|
900
|
+
pathParams: {},
|
|
901
|
+
__requestType: null,
|
|
902
|
+
__originalRequestType: null,
|
|
903
|
+
__responseType: null,
|
|
904
|
+
__originalResponseType: null
|
|
905
|
+
};
|
|
906
|
+
}
|
|
791
907
|
function bulkCreateSection2() {
|
|
792
908
|
const payload = {};
|
|
793
909
|
const getRequestOptions = bulkCreateSection(payload);
|
|
@@ -798,7 +914,7 @@ function bulkCreateSection2() {
|
|
|
798
914
|
return {
|
|
799
915
|
getUrl,
|
|
800
916
|
httpMethod: "POST",
|
|
801
|
-
path: "/v3/bulk/sections/create",
|
|
917
|
+
path: "/v3/bulk/sections/create-deprecated",
|
|
802
918
|
pathParams: {},
|
|
803
919
|
__requestType: null,
|
|
804
920
|
__originalRequestType: null,
|
|
@@ -960,6 +1076,7 @@ export {
|
|
|
960
1076
|
State as StateOriginal,
|
|
961
1077
|
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
962
1078
|
bulkCreateSection2 as bulkCreateSection,
|
|
1079
|
+
bulkCreateSections2 as bulkCreateSections,
|
|
963
1080
|
cloneSection2 as cloneSection,
|
|
964
1081
|
createSection2 as createSection,
|
|
965
1082
|
deleteSection2 as deleteSection,
|