@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.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +18 -6
  2. package/build/cjs/index.js +163 -7
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +63 -14
  5. package/build/cjs/index.typings.js +153 -6
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +35 -4
  8. package/build/cjs/meta.js +122 -4
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +101 -1
  11. package/build/cjs/schemas.js +168 -21
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +18 -6
  14. package/build/es/index.mjs +162 -7
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +63 -14
  17. package/build/es/index.typings.mjs +152 -6
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +35 -4
  20. package/build/es/meta.mjs +121 -4
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +101 -1
  23. package/build/es/schemas.mjs +166 -21
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +18 -6
  26. package/build/internal/cjs/index.js +163 -7
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +165 -14
  29. package/build/internal/cjs/index.typings.js +153 -6
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +237 -4
  32. package/build/internal/cjs/meta.js +122 -4
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +101 -1
  35. package/build/internal/cjs/schemas.js +168 -21
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +18 -6
  38. package/build/internal/es/index.mjs +162 -7
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +165 -14
  41. package/build/internal/es/index.typings.mjs +152 -6
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +237 -4
  44. package/build/internal/es/meta.mjs +121 -4
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +101 -1
  47. package/build/internal/es/schemas.mjs +166 -21
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. 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
  /**
@@ -336,7 +336,7 @@ interface CreateSectionResponse {
336
336
  /** Created section. */
337
337
  section?: Section;
338
338
  }
339
- interface BulkCreateSectionRequest {
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 BulkCreateSectionResponse {
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/es/meta.mjs CHANGED
@@ -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: payload,
555
+ data: serializedData,
458
556
  host
459
557
  }),
460
- data: payload,
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,