@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
package/build/cjs/meta.d.ts
CHANGED
|
@@ -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.js';
|
|
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.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -336,7 +336,7 @@ interface CreateSectionResponse {
|
|
|
336
336
|
/** Created section. */
|
|
337
337
|
section?: Section;
|
|
338
338
|
}
|
|
339
|
-
interface
|
|
339
|
+
interface BulkCreateSectionsRequest {
|
|
340
340
|
/**
|
|
341
341
|
* List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
|
|
342
342
|
* @minSize 1
|
|
@@ -349,7 +349,7 @@ interface BulkCreateSectionRequest {
|
|
|
349
349
|
*/
|
|
350
350
|
fields?: RequestedFieldsWithLiterals[];
|
|
351
351
|
}
|
|
352
|
-
interface
|
|
352
|
+
interface BulkCreateSectionsResponse {
|
|
353
353
|
/** Results for the bulk create operation. */
|
|
354
354
|
results?: BulkSectionResult[];
|
|
355
355
|
/** Summary of the bulk create operation. */
|
|
@@ -397,6 +397,25 @@ interface BulkActionMetadata {
|
|
|
397
397
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
398
398
|
undetailedFailures?: number;
|
|
399
399
|
}
|
|
400
|
+
interface BulkCreateSectionRequest {
|
|
401
|
+
/**
|
|
402
|
+
* List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
|
|
403
|
+
* @minSize 1
|
|
404
|
+
* @maxSize 100
|
|
405
|
+
*/
|
|
406
|
+
sections: Section[];
|
|
407
|
+
/**
|
|
408
|
+
* Predefined sets of fields to return.
|
|
409
|
+
* @maxSize 1
|
|
410
|
+
*/
|
|
411
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
412
|
+
}
|
|
413
|
+
interface BulkCreateSectionResponse {
|
|
414
|
+
/** Results for the bulk create operation. */
|
|
415
|
+
results?: BulkSectionResult[];
|
|
416
|
+
/** Summary of the bulk create operation. */
|
|
417
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
418
|
+
}
|
|
400
419
|
interface BulkCreateSectionMigrationRequest {
|
|
401
420
|
/**
|
|
402
421
|
* List of sections to create.
|
|
@@ -530,6 +549,11 @@ interface Sorting {
|
|
|
530
549
|
fieldName?: string;
|
|
531
550
|
/** Sort order. */
|
|
532
551
|
order?: SortOrderWithLiterals;
|
|
552
|
+
/**
|
|
553
|
+
* Origin point for geo-distance sorting on a GEO field
|
|
554
|
+
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
555
|
+
*/
|
|
556
|
+
origin?: AddressLocation;
|
|
533
557
|
}
|
|
534
558
|
declare enum SortOrder {
|
|
535
559
|
ASC = "ASC",
|
|
@@ -537,6 +561,12 @@ declare enum SortOrder {
|
|
|
537
561
|
}
|
|
538
562
|
/** @enumType */
|
|
539
563
|
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
564
|
+
interface AddressLocation {
|
|
565
|
+
/** Address latitude. */
|
|
566
|
+
latitude?: number | null;
|
|
567
|
+
/** Address longitude. */
|
|
568
|
+
longitude?: number | null;
|
|
569
|
+
}
|
|
540
570
|
interface CursorPaging {
|
|
541
571
|
/**
|
|
542
572
|
* Maximum number of items to return in the results.
|
|
@@ -895,6 +925,7 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
895
925
|
__originalResponseType: R;
|
|
896
926
|
};
|
|
897
927
|
declare function createSection(): __PublicMethodMetaInfo<'POST', {}, CreateSectionRequest$1, CreateSectionRequest, CreateSectionResponse$1, CreateSectionResponse>;
|
|
928
|
+
declare function bulkCreateSections(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionsRequest$1, BulkCreateSectionsRequest, BulkCreateSectionsResponse$1, BulkCreateSectionsResponse>;
|
|
898
929
|
declare function bulkCreateSection(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionRequest$1, BulkCreateSectionRequest, BulkCreateSectionResponse$1, BulkCreateSectionResponse>;
|
|
899
930
|
declare function getSection(): __PublicMethodMetaInfo<'GET', {
|
|
900
931
|
sectionId: string;
|
|
@@ -913,4 +944,4 @@ declare function cloneSection(): __PublicMethodMetaInfo<'POST', {
|
|
|
913
944
|
declare function moveSection(): __PublicMethodMetaInfo<'PATCH', {}, MoveSectionRequest$1, MoveSectionRequest, MoveSectionResponse$1, MoveSectionResponse>;
|
|
914
945
|
declare function publishSection(): __PublicMethodMetaInfo<'PATCH', {}, PublishSectionRequest$1, PublishSectionRequest, PublishSectionResponse$1, PublishSectionResponse>;
|
|
915
946
|
|
|
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 };
|
|
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, bulkCreateSection, bulkCreateSections, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
|
package/build/cjs/meta.js
CHANGED
|
@@ -29,6 +29,7 @@ __export(meta_exports, {
|
|
|
29
29
|
StateOriginal: () => State,
|
|
30
30
|
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
31
31
|
bulkCreateSection: () => bulkCreateSection2,
|
|
32
|
+
bulkCreateSections: () => bulkCreateSections2,
|
|
32
33
|
cloneSection: () => cloneSection2,
|
|
33
34
|
createSection: () => createSection2,
|
|
34
35
|
deleteSection: () => deleteSection2,
|
|
@@ -233,6 +234,95 @@ function createSection(payload) {
|
|
|
233
234
|
}
|
|
234
235
|
return __createSection;
|
|
235
236
|
}
|
|
237
|
+
function bulkCreateSections(payload) {
|
|
238
|
+
function __bulkCreateSections({ host }) {
|
|
239
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
240
|
+
{
|
|
241
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
242
|
+
paths: [
|
|
243
|
+
{ path: "sections.createdDate" },
|
|
244
|
+
{ path: "sections.updatedDate" },
|
|
245
|
+
{ path: "sections.description.image.urlExpirationDate" },
|
|
246
|
+
{ path: "sections.description.video.urlExpirationDate" },
|
|
247
|
+
{ path: "sections.description.video.resolutions.urlExpirationDate" },
|
|
248
|
+
{
|
|
249
|
+
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
250
|
+
},
|
|
251
|
+
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
256
|
+
paths: [
|
|
257
|
+
{ path: "sections.ordering" },
|
|
258
|
+
{ path: "sections.description.image.focalPoint.x" },
|
|
259
|
+
{ path: "sections.description.image.focalPoint.y" },
|
|
260
|
+
{
|
|
261
|
+
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
265
|
+
},
|
|
266
|
+
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
267
|
+
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
]);
|
|
271
|
+
const metadata = {
|
|
272
|
+
entityFqdn: "wix.online_programs.v3.section",
|
|
273
|
+
method: "POST",
|
|
274
|
+
methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections",
|
|
275
|
+
packageName: PACKAGE_NAME,
|
|
276
|
+
migrationOptions: {
|
|
277
|
+
optInTransformResponse: true
|
|
278
|
+
},
|
|
279
|
+
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
280
|
+
protoPath: "/v3/bulk/sections/create",
|
|
281
|
+
data: serializedData,
|
|
282
|
+
host
|
|
283
|
+
}),
|
|
284
|
+
data: serializedData,
|
|
285
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
286
|
+
{
|
|
287
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
288
|
+
paths: [
|
|
289
|
+
{ path: "results.item.createdDate" },
|
|
290
|
+
{ path: "results.item.updatedDate" },
|
|
291
|
+
{ path: "results.item.description.image.urlExpirationDate" },
|
|
292
|
+
{ path: "results.item.description.video.urlExpirationDate" },
|
|
293
|
+
{
|
|
294
|
+
path: "results.item.description.video.resolutions.urlExpirationDate"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
path: "results.item.description.video.resolutions.poster.urlExpirationDate"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
path: "results.item.description.video.posters.urlExpirationDate"
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
306
|
+
paths: [
|
|
307
|
+
{ path: "results.item.ordering" },
|
|
308
|
+
{ path: "results.item.description.image.focalPoint.x" },
|
|
309
|
+
{ path: "results.item.description.image.focalPoint.y" },
|
|
310
|
+
{
|
|
311
|
+
path: "results.item.description.video.resolutions.poster.focalPoint.x"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
path: "results.item.description.video.resolutions.poster.focalPoint.y"
|
|
315
|
+
},
|
|
316
|
+
{ path: "results.item.description.video.posters.focalPoint.x" },
|
|
317
|
+
{ path: "results.item.description.video.posters.focalPoint.y" }
|
|
318
|
+
]
|
|
319
|
+
}
|
|
320
|
+
])
|
|
321
|
+
};
|
|
322
|
+
return metadata;
|
|
323
|
+
}
|
|
324
|
+
return __bulkCreateSections;
|
|
325
|
+
}
|
|
236
326
|
function bulkCreateSection(payload) {
|
|
237
327
|
function __bulkCreateSection({ host }) {
|
|
238
328
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -276,7 +366,7 @@ function bulkCreateSection(payload) {
|
|
|
276
366
|
optInTransformResponse: true
|
|
277
367
|
},
|
|
278
368
|
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
279
|
-
protoPath: "/v3/bulk/sections/create",
|
|
369
|
+
protoPath: "/v3/bulk/sections/create-deprecated",
|
|
280
370
|
data: serializedData,
|
|
281
371
|
host
|
|
282
372
|
}),
|
|
@@ -487,6 +577,15 @@ function deleteSection(payload) {
|
|
|
487
577
|
}
|
|
488
578
|
function querySections(payload) {
|
|
489
579
|
function __querySections({ host }) {
|
|
580
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
581
|
+
{
|
|
582
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
583
|
+
paths: [
|
|
584
|
+
{ path: "query.sort.origin.latitude" },
|
|
585
|
+
{ path: "query.sort.origin.longitude" }
|
|
586
|
+
]
|
|
587
|
+
}
|
|
588
|
+
]);
|
|
490
589
|
const metadata = {
|
|
491
590
|
entityFqdn: "wix.online_programs.v3.section",
|
|
492
591
|
method: "POST",
|
|
@@ -497,10 +596,10 @@ function querySections(payload) {
|
|
|
497
596
|
},
|
|
498
597
|
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
499
598
|
protoPath: "/v3/sections/query",
|
|
500
|
-
data:
|
|
599
|
+
data: serializedData,
|
|
501
600
|
host
|
|
502
601
|
}),
|
|
503
|
-
data:
|
|
602
|
+
data: serializedData,
|
|
504
603
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
505
604
|
{
|
|
506
605
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -831,6 +930,24 @@ function createSection2() {
|
|
|
831
930
|
__originalResponseType: null
|
|
832
931
|
};
|
|
833
932
|
}
|
|
933
|
+
function bulkCreateSections2() {
|
|
934
|
+
const payload = {};
|
|
935
|
+
const getRequestOptions = bulkCreateSections(payload);
|
|
936
|
+
const getUrl = (context) => {
|
|
937
|
+
const { url } = getRequestOptions(context);
|
|
938
|
+
return url;
|
|
939
|
+
};
|
|
940
|
+
return {
|
|
941
|
+
getUrl,
|
|
942
|
+
httpMethod: "POST",
|
|
943
|
+
path: "/v3/bulk/sections/create",
|
|
944
|
+
pathParams: {},
|
|
945
|
+
__requestType: null,
|
|
946
|
+
__originalRequestType: null,
|
|
947
|
+
__responseType: null,
|
|
948
|
+
__originalResponseType: null
|
|
949
|
+
};
|
|
950
|
+
}
|
|
834
951
|
function bulkCreateSection2() {
|
|
835
952
|
const payload = {};
|
|
836
953
|
const getRequestOptions = bulkCreateSection(payload);
|
|
@@ -841,7 +958,7 @@ function bulkCreateSection2() {
|
|
|
841
958
|
return {
|
|
842
959
|
getUrl,
|
|
843
960
|
httpMethod: "POST",
|
|
844
|
-
path: "/v3/bulk/sections/create",
|
|
961
|
+
path: "/v3/bulk/sections/create-deprecated",
|
|
845
962
|
pathParams: {},
|
|
846
963
|
__requestType: null,
|
|
847
964
|
__originalRequestType: null,
|
|
@@ -1004,6 +1121,7 @@ function publishSection2() {
|
|
|
1004
1121
|
StateOriginal,
|
|
1005
1122
|
WebhookIdentityTypeOriginal,
|
|
1006
1123
|
bulkCreateSection,
|
|
1124
|
+
bulkCreateSections,
|
|
1007
1125
|
cloneSection,
|
|
1008
1126
|
createSection,
|
|
1009
1127
|
deleteSection,
|