@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
|
@@ -111,8 +111,68 @@ interface VideoResolution {
|
|
|
111
111
|
height?: number;
|
|
112
112
|
/** Video width. */
|
|
113
113
|
width?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Deprecated. Use the `posters` property in the parent entity instead.
|
|
116
|
+
* @internal
|
|
117
|
+
* @deprecated
|
|
118
|
+
*/
|
|
119
|
+
poster?: string;
|
|
114
120
|
/** Video format for example, mp4, hls. */
|
|
115
121
|
format?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
|
|
124
|
+
* @internal
|
|
125
|
+
* @deprecated
|
|
126
|
+
*/
|
|
127
|
+
urlExpirationDate?: Date | null;
|
|
128
|
+
/**
|
|
129
|
+
* Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
|
|
130
|
+
* @internal
|
|
131
|
+
* @format DECIMAL_VALUE
|
|
132
|
+
* @deprecated
|
|
133
|
+
*/
|
|
134
|
+
sizeInBytes?: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* Video quality. For example: 480p, 720p.
|
|
137
|
+
* @internal
|
|
138
|
+
*/
|
|
139
|
+
quality?: string | null;
|
|
140
|
+
/**
|
|
141
|
+
* Video filename.
|
|
142
|
+
* @internal
|
|
143
|
+
*/
|
|
144
|
+
filename?: string | null;
|
|
145
|
+
/**
|
|
146
|
+
* Video duration in seconds.
|
|
147
|
+
* @internal
|
|
148
|
+
* @readonly
|
|
149
|
+
* @deprecated Video duration in seconds.
|
|
150
|
+
* @replacedBy duration_in_milliseconds
|
|
151
|
+
* @targetRemovalDate 2024-08-01
|
|
152
|
+
*/
|
|
153
|
+
durationInSeconds?: number | null;
|
|
154
|
+
/**
|
|
155
|
+
* Video duration in milliseconds.
|
|
156
|
+
* @internal
|
|
157
|
+
* @readonly
|
|
158
|
+
*/
|
|
159
|
+
durationInMilliseconds?: number | null;
|
|
160
|
+
/**
|
|
161
|
+
* When true, this is a protected asset, and calling the URL will return a 403 error.
|
|
162
|
+
* In order to access private assets, make a request to:
|
|
163
|
+
* `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
|
|
164
|
+
* @internal
|
|
165
|
+
* @readonly
|
|
166
|
+
*/
|
|
167
|
+
private?: boolean | null;
|
|
168
|
+
/**
|
|
169
|
+
* Key to identify the video resolution's relationship to the original media in WixMedia.
|
|
170
|
+
* Can be used to request a download for the specific video resolution.
|
|
171
|
+
* For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
|
|
172
|
+
* @internal
|
|
173
|
+
* @readonly
|
|
174
|
+
*/
|
|
175
|
+
assetKey?: string | null;
|
|
116
176
|
}
|
|
117
177
|
declare enum State {
|
|
118
178
|
/** the section isn't ready to be shown to participants. */
|
|
@@ -320,7 +380,10 @@ interface BulkCreateSectionsResponse {
|
|
|
320
380
|
interface BulkSectionResult {
|
|
321
381
|
/** Metadata for the bulk operation result. */
|
|
322
382
|
itemMetadata?: ItemMetadata;
|
|
323
|
-
/**
|
|
383
|
+
/**
|
|
384
|
+
* Internal placeholder. Use `item_metadata` to identify the created section.
|
|
385
|
+
* @internal
|
|
386
|
+
*/
|
|
324
387
|
item?: Section;
|
|
325
388
|
/** Action associated with the bulk result. */
|
|
326
389
|
action?: BulkActionTypeWithLiterals;
|
|
@@ -365,7 +428,7 @@ interface BulkCreateSectionRequest {
|
|
|
365
428
|
* @minSize 1
|
|
366
429
|
* @maxSize 100
|
|
367
430
|
*/
|
|
368
|
-
sections
|
|
431
|
+
sections?: Section[];
|
|
369
432
|
/**
|
|
370
433
|
* Predefined sets of fields to return.
|
|
371
434
|
* @maxSize 1
|
|
@@ -421,6 +484,13 @@ interface GetSectionResponse {
|
|
|
421
484
|
interface UpdateSectionRequest {
|
|
422
485
|
/** Section to update. Include `section.id`, `section.revision`, and the fields to update. */
|
|
423
486
|
section?: Section;
|
|
487
|
+
/**
|
|
488
|
+
* Field mask that specifies which fields to update.
|
|
489
|
+
*
|
|
490
|
+
* Fields that aren't included in `fieldMask.paths` are ignored.
|
|
491
|
+
* @internal
|
|
492
|
+
*/
|
|
493
|
+
fieldMask?: string[];
|
|
424
494
|
/**
|
|
425
495
|
* Predefined sets of fields to return.
|
|
426
496
|
* @maxSize 1
|
|
@@ -511,6 +581,20 @@ interface Sorting {
|
|
|
511
581
|
fieldName?: string;
|
|
512
582
|
/** Sort order. */
|
|
513
583
|
order?: SortOrderWithLiterals;
|
|
584
|
+
/**
|
|
585
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
586
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
587
|
+
*
|
|
588
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
589
|
+
*
|
|
590
|
+
* Example:
|
|
591
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
592
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
593
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
594
|
+
* @internal
|
|
595
|
+
* @maxSize 10
|
|
596
|
+
*/
|
|
597
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
514
598
|
/**
|
|
515
599
|
* Origin point for geo-distance sorting on a GEO field
|
|
516
600
|
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
@@ -562,6 +646,13 @@ interface CursorPagingMetadata {
|
|
|
562
646
|
* + `false`: This is the last page.
|
|
563
647
|
*/
|
|
564
648
|
hasNext?: boolean | null;
|
|
649
|
+
/**
|
|
650
|
+
* Total number of items matching the filter.
|
|
651
|
+
* Available only on the first page of *Search* results, not included in *Query* or *List* results.
|
|
652
|
+
* If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.
|
|
653
|
+
* @internal
|
|
654
|
+
*/
|
|
655
|
+
total?: number | null;
|
|
565
656
|
}
|
|
566
657
|
interface Cursors {
|
|
567
658
|
/**
|
|
@@ -623,7 +714,7 @@ interface MoveSectionRequest {
|
|
|
623
714
|
* @format GUID
|
|
624
715
|
*/
|
|
625
716
|
afterSectionId?: string | null;
|
|
626
|
-
/** Current revision of the section. */
|
|
717
|
+
/** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
|
|
627
718
|
revision?: string;
|
|
628
719
|
/**
|
|
629
720
|
* Predefined sets of fields to return.
|
|
@@ -910,7 +1001,7 @@ interface CreateSectionOptions {
|
|
|
910
1001
|
* @applicableIdentity APP
|
|
911
1002
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections
|
|
912
1003
|
*/
|
|
913
|
-
declare function bulkCreateSections(sections: Section[], options?: BulkCreateSectionsOptions): Promise<NonNullablePaths<BulkCreateSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.
|
|
1004
|
+
declare function bulkCreateSections(sections: Section[], options?: BulkCreateSectionsOptions): Promise<NonNullablePaths<BulkCreateSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.action` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
914
1005
|
interface BulkCreateSectionsOptions {
|
|
915
1006
|
/**
|
|
916
1007
|
* Predefined sets of fields to return.
|
|
@@ -918,29 +1009,6 @@ interface BulkCreateSectionsOptions {
|
|
|
918
1009
|
*/
|
|
919
1010
|
fields?: RequestedFieldsWithLiterals[];
|
|
920
1011
|
}
|
|
921
|
-
/**
|
|
922
|
-
* Deprecated. Use [Bulk Create Sections](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/bulk-create-sections).
|
|
923
|
-
*
|
|
924
|
-
* To create a single section, call [Create Section](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/create-section).
|
|
925
|
-
* @param sections - List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
|
|
926
|
-
* @public
|
|
927
|
-
* @documentationMaturity preview
|
|
928
|
-
* @requiredField sections
|
|
929
|
-
* @permissionId ONLINE_PROGRAMS.SECTION_CREATE
|
|
930
|
-
* @applicableIdentity APP
|
|
931
|
-
* @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection
|
|
932
|
-
* @deprecated
|
|
933
|
-
* @replacedBy wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections
|
|
934
|
-
* @targetRemovalDate 2026-07-24
|
|
935
|
-
*/
|
|
936
|
-
declare function bulkCreateSection(sections: Section[], options?: BulkCreateSectionOptions): Promise<NonNullablePaths<BulkCreateSectionResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.programId` | `results.${number}.item.description.title` | `results.${number}.item.state` | `results.${number}.item.oldTotalSteps` | `results.${number}.item.trialSection` | `results.${number}.item.ordering` | `results.${number}.item.delayInDays` | `results.${number}.action` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
937
|
-
interface BulkCreateSectionOptions {
|
|
938
|
-
/**
|
|
939
|
-
* Predefined sets of fields to return.
|
|
940
|
-
* @maxSize 1
|
|
941
|
-
*/
|
|
942
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
943
|
-
}
|
|
944
1012
|
/**
|
|
945
1013
|
* Retrieves a section.
|
|
946
1014
|
*
|
|
@@ -1142,11 +1210,6 @@ interface SectionsQueryBuilder {
|
|
|
1142
1210
|
* @documentationMaturity preview
|
|
1143
1211
|
*/
|
|
1144
1212
|
startsWith: (propertyName: '_id', value: string) => SectionsQueryBuilder;
|
|
1145
|
-
/** @param propertyName - Property whose value is compared with `values`.
|
|
1146
|
-
* @param values - List of values to compare against.
|
|
1147
|
-
* @documentationMaturity preview
|
|
1148
|
-
*/
|
|
1149
|
-
hasSome: (propertyName: '_id' | 'state' | 'trialSection' | 'delayInDays', value: any[]) => SectionsQueryBuilder;
|
|
1150
1213
|
/** @documentationMaturity preview */
|
|
1151
1214
|
in: (propertyName: '_id' | 'state' | 'trialSection' | 'delayInDays', value: any) => SectionsQueryBuilder;
|
|
1152
1215
|
/** @documentationMaturity preview */
|
|
@@ -1241,6 +1304,20 @@ type SectionQuery = {
|
|
|
1241
1304
|
*/
|
|
1242
1305
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1243
1306
|
/**
|
|
1307
|
+
When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
1308
|
+
a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
1309
|
+
|
|
1310
|
+
If multiple filters are provided, they are combined with AND operator.
|
|
1311
|
+
|
|
1312
|
+
Example:
|
|
1313
|
+
Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
1314
|
+
and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
1315
|
+
{ fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
1316
|
+
@internal: undefined,
|
|
1317
|
+
@maxSize: 10
|
|
1318
|
+
*/
|
|
1319
|
+
selectItemsBy?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['selectItemsBy'] | null;
|
|
1320
|
+
/**
|
|
1244
1321
|
Origin point for geo-distance sorting on a GEO field
|
|
1245
1322
|
results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
1246
1323
|
*/
|
|
@@ -1248,11 +1325,7 @@ type SectionQuery = {
|
|
|
1248
1325
|
}[];
|
|
1249
1326
|
};
|
|
1250
1327
|
declare const utils: {
|
|
1251
|
-
query:
|
|
1252
|
-
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Section, SectionQuerySpec, SectionQuery>;
|
|
1253
|
-
Filter: _wix_sdk_types.FilterFactory<Section, SectionQuerySpec>;
|
|
1254
|
-
Sort: _wix_sdk_types.SortFactory<SectionQuerySpec>;
|
|
1255
|
-
};
|
|
1328
|
+
query: _wix_sdk_types.QueryHelpers<Section, SectionQuerySpec, SectionQuery>;
|
|
1256
1329
|
};
|
|
1257
1330
|
/**
|
|
1258
1331
|
* Retrieves the sections in a program.
|
|
@@ -1301,6 +1374,8 @@ interface CloneSectionOptions {
|
|
|
1301
1374
|
/**
|
|
1302
1375
|
* Moves a section within its program.
|
|
1303
1376
|
*
|
|
1377
|
+
* Each time the section is updated, its `revision` increments by 1. When provided, `revision` must match the current section revision to protect against conflicting updates.
|
|
1378
|
+
*
|
|
1304
1379
|
* If `afterSectionId` isn't specified, the section is moved to the beginning of the program. The stored ordering value is recalculated automatically.
|
|
1305
1380
|
* @public
|
|
1306
1381
|
* @documentationMaturity preview
|
|
@@ -1320,7 +1395,7 @@ interface MoveSectionOptions {
|
|
|
1320
1395
|
* @format GUID
|
|
1321
1396
|
*/
|
|
1322
1397
|
afterSectionId?: string | null;
|
|
1323
|
-
/** Current revision of the section. */
|
|
1398
|
+
/** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
|
|
1324
1399
|
revision?: string;
|
|
1325
1400
|
/**
|
|
1326
1401
|
* Predefined sets of fields to return.
|
|
@@ -1356,4 +1431,4 @@ interface PublishSectionOptions {
|
|
|
1356
1431
|
fields?: RequestedFieldsWithLiterals[];
|
|
1357
1432
|
}
|
|
1358
1433
|
|
|
1359
|
-
export { type AccountInfo, type ActionEvent, type AddressLocation, type ApplicationError, type BulkActionMetadata, BulkActionType, type BulkActionTypeWithLiterals, type BulkCloneSectionRequest, type BulkCloneSectionResponse, type BulkCreateSectionMigrationRequest, type BulkCreateSectionMigrationResponse, type
|
|
1434
|
+
export { type AccountInfo, type ActionEvent, type AddressLocation, type ApplicationError, type BulkActionMetadata, BulkActionType, type BulkActionTypeWithLiterals, type BulkCloneSectionRequest, type BulkCloneSectionResponse, type BulkCreateSectionMigrationRequest, type BulkCreateSectionMigrationResponse, type BulkCreateSectionRequest, type BulkCreateSectionResponse, type BulkCreateSectionsOptions, type BulkCreateSectionsRequest, type BulkCreateSectionsResponse, type BulkSectionResult, type CloneSectionOptions, type CloneSectionRequest, type CloneSectionResponse, type CommonQueryWithEntityContext, type CreateSectionOptions, type CreateSectionRequest, type CreateSectionResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteAllProgramSectionsRequest, type DeleteAllProgramSectionsResponse, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteSectionRequest, type DeleteSectionResponse, type Description, DescriptionFieldSet, type DescriptionFieldSetWithLiterals, type DescriptionMediaOneOf, type DocumentImage, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EnumWithLiterals, type ExtendedFields, type FocalPoint, type GetSectionOptions, type GetSectionRequest, type GetSectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type IndexDocument, type ItemMetadata, type ListSectionsOptions, type ListSectionsRequest, type ListSectionsResponse, type MessageEnvelope, type MoveSectionOptions, type MoveSectionRequest, type MoveSectionResponse, type PublishSectionOptions, type PublishSectionRequest, type PublishSectionResponse, type QuerySectionsOptions, type QuerySectionsRequest, type QuerySectionsResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type RestoreSectionFromTrashRequest, type RestoreSectionFromTrashResponse, type SearchIndexingNotification, SearchIndexingNotificationState, type SearchIndexingNotificationStateWithLiterals, type Section, type SectionCloned, type SectionDeleted, type SectionMoved, type SectionPublished, type SectionQuery, type SectionQuerySpec, type SectionUpdated, type SectionsQueryBuilder, type SectionsQueryResult, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateSectionOptions, type UpdateSectionRequest, type UpdateSectionResponse, type VideoResolution, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateSections, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, typedQuerySections, updateSection, utils };
|
|
@@ -28,7 +28,6 @@ __export(index_typings_exports, {
|
|
|
28
28
|
SortOrder: () => SortOrder,
|
|
29
29
|
State: () => State,
|
|
30
30
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
31
|
-
bulkCreateSection: () => bulkCreateSection2,
|
|
32
31
|
bulkCreateSections: () => bulkCreateSections2,
|
|
33
32
|
cloneSection: () => cloneSection2,
|
|
34
33
|
createSection: () => createSection2,
|
|
@@ -330,95 +329,6 @@ function bulkCreateSections(payload) {
|
|
|
330
329
|
}
|
|
331
330
|
return __bulkCreateSections;
|
|
332
331
|
}
|
|
333
|
-
function bulkCreateSection(payload) {
|
|
334
|
-
function __bulkCreateSection({ host }) {
|
|
335
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
336
|
-
{
|
|
337
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
338
|
-
paths: [
|
|
339
|
-
{ path: "sections.createdDate" },
|
|
340
|
-
{ path: "sections.updatedDate" },
|
|
341
|
-
{ path: "sections.description.image.urlExpirationDate" },
|
|
342
|
-
{ path: "sections.description.video.urlExpirationDate" },
|
|
343
|
-
{ path: "sections.description.video.resolutions.urlExpirationDate" },
|
|
344
|
-
{
|
|
345
|
-
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
346
|
-
},
|
|
347
|
-
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
348
|
-
]
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
352
|
-
paths: [
|
|
353
|
-
{ path: "sections.ordering" },
|
|
354
|
-
{ path: "sections.description.image.focalPoint.x" },
|
|
355
|
-
{ path: "sections.description.image.focalPoint.y" },
|
|
356
|
-
{
|
|
357
|
-
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
361
|
-
},
|
|
362
|
-
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
363
|
-
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
364
|
-
]
|
|
365
|
-
}
|
|
366
|
-
]);
|
|
367
|
-
const metadata = {
|
|
368
|
-
entityFqdn: "wix.online_programs.v3.section",
|
|
369
|
-
method: "POST",
|
|
370
|
-
methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
|
|
371
|
-
packageName: PACKAGE_NAME,
|
|
372
|
-
migrationOptions: {
|
|
373
|
-
optInTransformResponse: true
|
|
374
|
-
},
|
|
375
|
-
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
376
|
-
protoPath: "/v3/bulk/sections/create-deprecated",
|
|
377
|
-
data: serializedData,
|
|
378
|
-
host
|
|
379
|
-
}),
|
|
380
|
-
data: serializedData,
|
|
381
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
382
|
-
{
|
|
383
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
384
|
-
paths: [
|
|
385
|
-
{ path: "results.item.createdDate" },
|
|
386
|
-
{ path: "results.item.updatedDate" },
|
|
387
|
-
{ path: "results.item.description.image.urlExpirationDate" },
|
|
388
|
-
{ path: "results.item.description.video.urlExpirationDate" },
|
|
389
|
-
{
|
|
390
|
-
path: "results.item.description.video.resolutions.urlExpirationDate"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
path: "results.item.description.video.resolutions.poster.urlExpirationDate"
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
path: "results.item.description.video.posters.urlExpirationDate"
|
|
397
|
-
}
|
|
398
|
-
]
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
402
|
-
paths: [
|
|
403
|
-
{ path: "results.item.ordering" },
|
|
404
|
-
{ path: "results.item.description.image.focalPoint.x" },
|
|
405
|
-
{ path: "results.item.description.image.focalPoint.y" },
|
|
406
|
-
{
|
|
407
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.x"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.y"
|
|
411
|
-
},
|
|
412
|
-
{ path: "results.item.description.video.posters.focalPoint.x" },
|
|
413
|
-
{ path: "results.item.description.video.posters.focalPoint.y" }
|
|
414
|
-
]
|
|
415
|
-
}
|
|
416
|
-
])
|
|
417
|
-
};
|
|
418
|
-
return metadata;
|
|
419
|
-
}
|
|
420
|
-
return __bulkCreateSection;
|
|
421
|
-
}
|
|
422
332
|
function getSection(payload) {
|
|
423
333
|
function __getSection({ host }) {
|
|
424
334
|
const metadata = {
|
|
@@ -1021,55 +931,6 @@ async function bulkCreateSections2(sections, options) {
|
|
|
1021
931
|
throw transformedError;
|
|
1022
932
|
}
|
|
1023
933
|
}
|
|
1024
|
-
async function bulkCreateSection2(sections, options) {
|
|
1025
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1026
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1027
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1028
|
-
sections,
|
|
1029
|
-
fields: options?.fields
|
|
1030
|
-
}),
|
|
1031
|
-
[
|
|
1032
|
-
{
|
|
1033
|
-
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1034
|
-
paths: [{ path: "sections.description.image" }]
|
|
1035
|
-
},
|
|
1036
|
-
{
|
|
1037
|
-
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
1038
|
-
paths: [{ path: "sections.description.video" }]
|
|
1039
|
-
}
|
|
1040
|
-
]
|
|
1041
|
-
);
|
|
1042
|
-
const reqOpts = bulkCreateSection(payload);
|
|
1043
|
-
sideEffects?.onSiteCall?.();
|
|
1044
|
-
try {
|
|
1045
|
-
const result = await httpClient.request(reqOpts);
|
|
1046
|
-
sideEffects?.onSuccess?.(result);
|
|
1047
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1048
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1049
|
-
{
|
|
1050
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1051
|
-
paths: [{ path: "results.item.description.image" }]
|
|
1052
|
-
},
|
|
1053
|
-
{
|
|
1054
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1055
|
-
paths: [{ path: "results.item.description.video" }]
|
|
1056
|
-
}
|
|
1057
|
-
])
|
|
1058
|
-
);
|
|
1059
|
-
} catch (err) {
|
|
1060
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1061
|
-
err,
|
|
1062
|
-
{
|
|
1063
|
-
spreadPathsToArguments: {},
|
|
1064
|
-
explicitPathsToArguments: { sections: "$[0]", fields: "$[1].fields" },
|
|
1065
|
-
singleArgumentUnchanged: false
|
|
1066
|
-
},
|
|
1067
|
-
["sections", "options"]
|
|
1068
|
-
);
|
|
1069
|
-
sideEffects?.onError?.(err);
|
|
1070
|
-
throw transformedError;
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
934
|
async function getSection2(sectionId, options) {
|
|
1074
935
|
const { httpClient, sideEffects } = arguments[2];
|
|
1075
936
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1281,9 +1142,7 @@ async function typedQuerySections(query, options) {
|
|
|
1281
1142
|
}
|
|
1282
1143
|
}
|
|
1283
1144
|
var utils = {
|
|
1284
|
-
query:
|
|
1285
|
-
...(0, import_query_builder_utils.createQueryUtils)()
|
|
1286
|
-
}
|
|
1145
|
+
query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
|
|
1287
1146
|
};
|
|
1288
1147
|
async function listSections2(programId, options) {
|
|
1289
1148
|
const { httpClient, sideEffects } = arguments[2];
|
|
@@ -1460,7 +1319,6 @@ async function publishSection2(options) {
|
|
|
1460
1319
|
SortOrder,
|
|
1461
1320
|
State,
|
|
1462
1321
|
WebhookIdentityType,
|
|
1463
|
-
bulkCreateSection,
|
|
1464
1322
|
bulkCreateSections,
|
|
1465
1323
|
cloneSection,
|
|
1466
1324
|
createSection,
|