@wix/auto_sdk_online-programs_sections 1.0.13 → 1.0.15

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 +61 -31
  2. package/build/cjs/index.js +47 -26
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +220 -120
  5. package/build/cjs/index.typings.js +41 -21
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +117 -72
  8. package/build/cjs/meta.js +35 -18
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +14 -5
  11. package/build/cjs/schemas.js +335 -212
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +61 -31
  14. package/build/es/index.mjs +46 -25
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +220 -120
  17. package/build/es/index.typings.mjs +40 -20
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +117 -72
  20. package/build/es/meta.mjs +34 -17
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +14 -5
  23. package/build/es/schemas.mjs +333 -210
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +61 -31
  26. package/build/internal/cjs/index.js +47 -26
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +220 -120
  29. package/build/internal/cjs/index.typings.js +41 -21
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +117 -72
  32. package/build/internal/cjs/meta.js +35 -18
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +14 -5
  35. package/build/internal/cjs/schemas.js +335 -212
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +61 -31
  38. package/build/internal/es/index.mjs +46 -25
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +220 -120
  41. package/build/internal/es/index.typings.mjs +40 -20
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +117 -72
  44. package/build/internal/es/meta.mjs +34 -17
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +14 -5
  47. package/build/internal/es/schemas.mjs +333 -210
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,86 +1,116 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { Section, CreateSectionOptions, BulkCreateSectionOptions, BulkCreateSectionResponse, BulkCreateSectionMigrationResponse, GetSectionOptions, UpdateSectionOptions, ListSectionsOptions, ListSectionsResponse, CloneSectionOptions, CloneSectionResponse, MoveSectionOptions, MoveSectionResponse, PublishSectionOptions, PublishSectionResponse, SectionQuery, QuerySectionsOptions, typedQuerySections, SectionsQueryBuilder } from './index.typings.js';
3
- export { AccountInfo, ActionEvent, ApplicationError, BulkActionMetadata, BulkActionType, BulkActionTypeWithLiterals, BulkCloneSectionRequest, BulkCloneSectionResponse, BulkCreateSectionMigrationRequest, BulkCreateSectionRequest, BulkSectionResult, CloneSectionRequest, CommonQueryWithEntityContext, CreateSectionRequest, CreateSectionResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteAllProgramSectionsRequest, DeleteAllProgramSectionsResponse, DeleteByFilterOperation, DeleteByIdsOperation, DeleteSectionRequest, DeleteSectionResponse, Description, DescriptionFieldSet, DescriptionFieldSetWithLiterals, DescriptionMediaOneOf, DocumentImage, DocumentPayload, DocumentUpdateOperation, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EnumWithLiterals, ExtendedFields, FocalPoint, GetSectionRequest, GetSectionResponse, IdentificationData, IdentificationDataIdOneOf, IndexDocument, ItemMetadata, ListSectionsRequest, MessageEnvelope, MoveSectionRequest, PublishSectionRequest, QuerySectionsRequest, QuerySectionsResponse, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, RestoreSectionFromTrashRequest, RestoreSectionFromTrashResponse, SearchIndexingNotification, SearchIndexingNotificationState, SearchIndexingNotificationStateWithLiterals, SectionCloned, SectionDeleted, SectionMoved, SectionPublished, SectionQuerySpec, SectionUpdated, SectionsQueryResult, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, UpdateByFilterOperation, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, UpdateExistingOperation, UpdateSectionRequest, UpdateSectionResponse, VideoResolution, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
2
+ import { Section, CreateSectionOptions, BulkCreateSectionsOptions, BulkCreateSectionsResponse, BulkCreateSectionOptions, BulkCreateSectionResponse, GetSectionOptions, UpdateSectionOptions, ListSectionsOptions, ListSectionsResponse, CloneSectionOptions, CloneSectionResponse, MoveSectionOptions, MoveSectionResponse, PublishSectionOptions, PublishSectionResponse, SectionQuery, QuerySectionsOptions, typedQuerySections, SectionsQueryBuilder } from './index.typings.js';
3
+ export { AccountInfo, ActionEvent, AddressLocation, ApplicationError, BulkActionMetadata, BulkActionType, BulkActionTypeWithLiterals, BulkCloneSectionRequest, BulkCloneSectionResponse, BulkCreateSectionMigrationRequest, BulkCreateSectionMigrationResponse, BulkCreateSectionRequest, BulkCreateSectionsRequest, BulkSectionResult, CloneSectionRequest, CommonQueryWithEntityContext, CreateSectionRequest, CreateSectionResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteAllProgramSectionsRequest, DeleteAllProgramSectionsResponse, DeleteByFilterOperation, DeleteByIdsOperation, DeleteSectionRequest, DeleteSectionResponse, Description, DescriptionFieldSet, DescriptionFieldSetWithLiterals, DescriptionMediaOneOf, DocumentImage, DocumentPayload, DocumentUpdateOperation, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EnumWithLiterals, ExtendedFields, FocalPoint, GetSectionRequest, GetSectionResponse, IdentificationData, IdentificationDataIdOneOf, IndexDocument, ItemMetadata, ListSectionsRequest, MessageEnvelope, MoveSectionRequest, PublishSectionRequest, QuerySectionsRequest, QuerySectionsResponse, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, RestoreSectionFromTrashRequest, RestoreSectionFromTrashResponse, SearchIndexingNotification, SearchIndexingNotificationState, SearchIndexingNotificationStateWithLiterals, SectionCloned, SectionDeleted, SectionMoved, SectionPublished, SectionQuerySpec, SectionUpdated, SectionsQueryResult, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, UpdateByFilterOperation, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, UpdateExistingOperation, UpdateSectionRequest, UpdateSectionResponse, VideoResolution, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
4
4
 
5
5
  declare function createSection$1(httpClient: HttpClient): CreateSectionSignature;
6
6
  interface CreateSectionSignature {
7
7
  /**
8
- * Creates a Section.
9
- * @param - Section to be created.
10
- * @returns The created Section.
8
+ * Creates a section.
9
+ *
10
+ * The section is added to the program identified by `section.program_id`. Provide that program ID in the request. Set `section.description.title` for the section title. `section.description.details`, `section.description.image`, and `section.description.video` are deprecated backward-compatibility fields. The stored ordering value is assigned automatically.
11
+ *
12
+ * To create multiple sections in a single API call, call [Bulk Create Sections](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/bulk-create-sections).
13
+ * @param - Section to create. Must include `section.program_id`.
14
+ * @returns Created section.
11
15
  */
12
16
  (section: Section, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `state` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
13
17
  }
14
- declare function bulkCreateSection$1(httpClient: HttpClient): BulkCreateSectionSignature;
15
- interface BulkCreateSectionSignature {
18
+ declare function bulkCreateSections$1(httpClient: HttpClient): BulkCreateSectionsSignature;
19
+ interface BulkCreateSectionsSignature {
16
20
  /**
17
- * Bulk Section creation.
18
- * @param - List of sections you want to create
21
+ * Creates up to 100 sections in a single API call.
22
+ *
23
+ * All sections in the request must include `program_id` and belong to the same program. Set `description.title` for each section title. `description.details`, `description.image`, and `description.video` are deprecated backward-compatibility fields. The stored ordering values are assigned automatically.
24
+ *
25
+ * To create a single section, call [Create Section](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/create-section).
26
+ * @param - List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
19
27
  */
20
- (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>>;
28
+ (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}.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>>;
21
29
  }
22
- declare function bulkCreateSectionMigration$1(httpClient: HttpClient): BulkCreateSectionMigrationSignature;
23
- interface BulkCreateSectionMigrationSignature {
30
+ declare function bulkCreateSection$1(httpClient: HttpClient): BulkCreateSectionSignature;
31
+ interface BulkCreateSectionSignature {
24
32
  /**
25
- * Bulk Section creation for migration.
26
- * @param - List of sections you want to create
33
+ * Deprecated. Use [Bulk Create Sections](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/bulk-create-sections).
34
+ *
35
+ * To create a single section, call [Create Section](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/create-section).
36
+ * @param - List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
37
+ * @deprecated
27
38
  */
28
- (sections: Section[]): Promise<NonNullablePaths<BulkCreateSectionMigrationResponse, `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>>;
39
+ (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>>;
29
40
  }
30
41
  declare function getSection$1(httpClient: HttpClient): GetSectionSignature;
31
42
  interface GetSectionSignature {
32
43
  /**
33
- * Retrieves a Section.
44
+ * Retrieves a section.
45
+ *
46
+ * `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
34
47
  * @param - ID of the Section to retrieve.
35
- * @returns The requested Section.
48
+ * @returns Retrieved section.
36
49
  */
37
50
  (sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `state` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
38
51
  }
39
52
  declare function updateSection$1(httpClient: HttpClient): UpdateSectionSignature;
40
53
  interface UpdateSectionSignature {
41
54
  /**
42
- * Updates a Section.
43
- * @param - Program Section ID.
44
- * @returns Updated Section.
55
+ * Updates a section.
56
+ *
57
+ * Each time the section is updated, `revision` increments by 1. The current `revision` must be passed when updating the section. This ensures you're working with the latest section and prevents unintended overwrites.
58
+ *
59
+ * Use this method to update section content and settings. To reorder a section, call [Move Section](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/move-section). To publish a section, call [Publish Section](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/publish-section).
60
+ * @param - Section ID.
61
+ * @returns Updated section.
45
62
  */
46
63
  (_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 3>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `state` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
47
64
  }
48
65
  declare function deleteSection$1(httpClient: HttpClient): DeleteSectionSignature;
49
66
  interface DeleteSectionSignature {
50
67
  /**
51
- * Deletes a Section.
52
- * Deleting a Section permanently removes them from the Section List.
53
- * @param - Id of the Section to delete.
68
+ * Permanently deletes a section from the public API.
69
+ *
70
+ * Deleted sections aren't returned by standard retrieval and list methods. The public API doesn't expose trash-bin or restore operations.
71
+ * @param - ID of the section to delete.
54
72
  */
55
73
  (sectionId: string): Promise<void>;
56
74
  }
57
75
  declare function listSections$1(httpClient: HttpClient): ListSectionsSignature;
58
76
  interface ListSectionsSignature {
59
77
  /**
60
- * List sections per program id
61
- * @param - Program id to list sections
78
+ * Retrieves the sections in a program.
79
+ *
80
+ * Results are sorted by `ordering` in ascending order. `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
81
+ *
82
+ * To filter or sort sections, call [Query Sections](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/query-sections).
83
+ * @param - Program ID to list sections for.
62
84
  */
63
85
  (programId: string, options?: ListSectionsOptions): Promise<NonNullablePaths<ListSectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.state` | `sections.${number}.oldTotalSteps` | `sections.${number}.trialSection` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 5>>;
64
86
  }
65
87
  declare function cloneSection$1(httpClient: HttpClient): CloneSectionSignature;
66
88
  interface CloneSectionSignature {
67
89
  /**
68
- * Clones section with specified id
69
- * @param - Section to clone
90
+ * Clones a section.
91
+ *
92
+ * The cloned section is added to the same program after the current last section. Translation content is copied to the cloned section.
93
+ * @param - ID of the section to clone.
70
94
  */
71
95
  (sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.state` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
72
96
  }
73
97
  declare function moveSection$1(httpClient: HttpClient): MoveSectionSignature;
74
98
  interface MoveSectionSignature {
75
99
  /**
76
- * Places section after specified one or inserts it in the beginning
100
+ * Moves a section within its program.
101
+ *
102
+ * If `afterSectionId` isn't specified, the section is moved to the beginning of the program. The stored ordering value is recalculated automatically.
77
103
  */
78
104
  (options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.state` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
79
105
  }
80
106
  declare function publishSection$1(httpClient: HttpClient): PublishSectionSignature;
81
107
  interface PublishSectionSignature {
82
108
  /**
83
- * Publishes section
109
+ * Publishes a section.
110
+ *
111
+ * Each time the section is updated, `revision` increments by 1. The current `revision` must be passed when publishing the section. This ensures you're working with the latest section and prevents unintended overwrites.
112
+ *
113
+ * Publishing sets the section's `state` to `PUBLISHED`.
84
114
  */
85
115
  (options?: PublishSectionOptions): Promise<NonNullablePaths<PublishSectionResponse, `section.programId` | `section.description.title` | `section.state` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
86
116
  }
@@ -90,8 +120,8 @@ declare function customQuerySections(httpClient: HttpClient): {
90
120
  (options?: QuerySectionsOptions): SectionsQueryBuilder;
91
121
  };
92
122
  declare const createSection: MaybeContext<BuildRESTFunction<typeof createSection$1> & typeof createSection$1>;
123
+ declare const bulkCreateSections: MaybeContext<BuildRESTFunction<typeof bulkCreateSections$1> & typeof bulkCreateSections$1>;
93
124
  declare const bulkCreateSection: MaybeContext<BuildRESTFunction<typeof bulkCreateSection$1> & typeof bulkCreateSection$1>;
94
- declare const bulkCreateSectionMigration: MaybeContext<BuildRESTFunction<typeof bulkCreateSectionMigration$1> & typeof bulkCreateSectionMigration$1>;
95
125
  declare const getSection: MaybeContext<BuildRESTFunction<typeof getSection$1> & typeof getSection$1>;
96
126
  declare const updateSection: MaybeContext<BuildRESTFunction<typeof updateSection$1> & typeof updateSection$1>;
97
127
  declare const deleteSection: MaybeContext<BuildRESTFunction<typeof deleteSection$1> & typeof deleteSection$1>;
@@ -101,4 +131,4 @@ declare const moveSection: MaybeContext<BuildRESTFunction<typeof moveSection$1>
101
131
  declare const publishSection: MaybeContext<BuildRESTFunction<typeof publishSection$1> & typeof publishSection$1>;
102
132
  declare const querySections: MaybeContext<BuildRESTFunction<typeof customQuerySections> & typeof customQuerySections>;
103
133
 
104
- export { BulkCreateSectionMigrationResponse, BulkCreateSectionOptions, BulkCreateSectionResponse, CloneSectionOptions, CloneSectionResponse, CreateSectionOptions, GetSectionOptions, ListSectionsOptions, ListSectionsResponse, MoveSectionOptions, MoveSectionResponse, PublishSectionOptions, PublishSectionResponse, QuerySectionsOptions, Section, SectionQuery, SectionsQueryBuilder, UpdateSectionOptions, bulkCreateSection, bulkCreateSectionMigration, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
134
+ export { BulkCreateSectionOptions, BulkCreateSectionResponse, BulkCreateSectionsOptions, BulkCreateSectionsResponse, CloneSectionOptions, CloneSectionResponse, CreateSectionOptions, GetSectionOptions, ListSectionsOptions, ListSectionsResponse, MoveSectionOptions, MoveSectionResponse, PublishSectionOptions, PublishSectionResponse, QuerySectionsOptions, Section, SectionQuery, SectionsQueryBuilder, UpdateSectionOptions, bulkCreateSection, bulkCreateSections, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
@@ -29,7 +29,7 @@ __export(index_exports, {
29
29
  State: () => State,
30
30
  WebhookIdentityType: () => WebhookIdentityType,
31
31
  bulkCreateSection: () => bulkCreateSection4,
32
- bulkCreateSectionMigration: () => bulkCreateSectionMigration4,
32
+ bulkCreateSections: () => bulkCreateSections4,
33
33
  cloneSection: () => cloneSection4,
34
34
  createSection: () => createSection4,
35
35
  deleteSection: () => deleteSection4,
@@ -143,6 +143,14 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
143
143
  {
144
144
  srcPath: "/program-sections-service",
145
145
  destPath: ""
146
+ },
147
+ {
148
+ srcPath: "/online-programs/v3/sections",
149
+ destPath: "/v3/sections"
150
+ },
151
+ {
152
+ srcPath: "/online-programs/v3/bulk/sections",
153
+ destPath: "/v3/bulk/sections"
146
154
  }
147
155
  ]
148
156
  };
@@ -232,8 +240,8 @@ function createSection(payload) {
232
240
  }
233
241
  return __createSection;
234
242
  }
235
- function bulkCreateSection(payload) {
236
- function __bulkCreateSection({ host }) {
243
+ function bulkCreateSections(payload) {
244
+ function __bulkCreateSections({ host }) {
237
245
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
238
246
  {
239
247
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
@@ -269,7 +277,7 @@ function bulkCreateSection(payload) {
269
277
  const metadata = {
270
278
  entityFqdn: "wix.online_programs.v3.section",
271
279
  method: "POST",
272
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
280
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections",
273
281
  packageName: PACKAGE_NAME,
274
282
  migrationOptions: {
275
283
  optInTransformResponse: true
@@ -319,10 +327,10 @@ function bulkCreateSection(payload) {
319
327
  };
320
328
  return metadata;
321
329
  }
322
- return __bulkCreateSection;
330
+ return __bulkCreateSections;
323
331
  }
324
- function bulkCreateSectionMigration(payload) {
325
- function __bulkCreateSectionMigration({ host }) {
332
+ function bulkCreateSection(payload) {
333
+ function __bulkCreateSection({ host }) {
326
334
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
327
335
  {
328
336
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
@@ -358,13 +366,13 @@ function bulkCreateSectionMigration(payload) {
358
366
  const metadata = {
359
367
  entityFqdn: "wix.online_programs.v3.section",
360
368
  method: "POST",
361
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
369
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
362
370
  packageName: PACKAGE_NAME,
363
371
  migrationOptions: {
364
372
  optInTransformResponse: true
365
373
  },
366
374
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
367
- protoPath: "/v3/bulk/sections/create/migration",
375
+ protoPath: "/v3/bulk/sections/create-deprecated",
368
376
  data: serializedData,
369
377
  host
370
378
  }),
@@ -408,7 +416,7 @@ function bulkCreateSectionMigration(payload) {
408
416
  };
409
417
  return metadata;
410
418
  }
411
- return __bulkCreateSectionMigration;
419
+ return __bulkCreateSection;
412
420
  }
413
421
  function getSection(payload) {
414
422
  function __getSection({ host }) {
@@ -575,6 +583,15 @@ function deleteSection(payload) {
575
583
  }
576
584
  function querySections(payload) {
577
585
  function __querySections({ host }) {
586
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
587
+ {
588
+ transformFn: import_float.transformSDKFloatToRESTFloat,
589
+ paths: [
590
+ { path: "query.sort.origin.latitude" },
591
+ { path: "query.sort.origin.longitude" }
592
+ ]
593
+ }
594
+ ]);
578
595
  const metadata = {
579
596
  entityFqdn: "wix.online_programs.v3.section",
580
597
  method: "POST",
@@ -585,10 +602,10 @@ function querySections(payload) {
585
602
  },
586
603
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
587
604
  protoPath: "/v3/sections/query",
588
- data: payload,
605
+ data: serializedData,
589
606
  host
590
607
  }),
591
- data: payload,
608
+ data: serializedData,
592
609
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
593
610
  {
594
611
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
@@ -954,7 +971,7 @@ async function createSection2(section, options) {
954
971
  throw transformedError;
955
972
  }
956
973
  }
957
- async function bulkCreateSection2(sections, options) {
974
+ async function bulkCreateSections2(sections, options) {
958
975
  const { httpClient, sideEffects } = arguments[2];
959
976
  const payload = (0, import_transform_paths2.transformPaths)(
960
977
  (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -972,7 +989,7 @@ async function bulkCreateSection2(sections, options) {
972
989
  }
973
990
  ]
974
991
  );
975
- const reqOpts = bulkCreateSection(payload);
992
+ const reqOpts = bulkCreateSections(payload);
976
993
  sideEffects?.onSiteCall?.();
977
994
  try {
978
995
  const result = await httpClient.request(reqOpts);
@@ -1003,10 +1020,13 @@ async function bulkCreateSection2(sections, options) {
1003
1020
  throw transformedError;
1004
1021
  }
1005
1022
  }
1006
- async function bulkCreateSectionMigration2(sections) {
1007
- const { httpClient, sideEffects } = arguments[1];
1023
+ async function bulkCreateSection2(sections, options) {
1024
+ const { httpClient, sideEffects } = arguments[2];
1008
1025
  const payload = (0, import_transform_paths2.transformPaths)(
1009
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ sections }),
1026
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1027
+ sections,
1028
+ fields: options?.fields
1029
+ }),
1010
1030
  [
1011
1031
  {
1012
1032
  transformFn: import_image.transformSDKImageToRESTImage,
@@ -1018,7 +1038,7 @@ async function bulkCreateSectionMigration2(sections) {
1018
1038
  }
1019
1039
  ]
1020
1040
  );
1021
- const reqOpts = bulkCreateSectionMigration(payload);
1041
+ const reqOpts = bulkCreateSection(payload);
1022
1042
  sideEffects?.onSiteCall?.();
1023
1043
  try {
1024
1044
  const result = await httpClient.request(reqOpts);
@@ -1040,10 +1060,10 @@ async function bulkCreateSectionMigration2(sections) {
1040
1060
  err,
1041
1061
  {
1042
1062
  spreadPathsToArguments: {},
1043
- explicitPathsToArguments: { sections: "$[0]" },
1063
+ explicitPathsToArguments: { sections: "$[0]", fields: "$[1].fields" },
1044
1064
  singleArgumentUnchanged: false
1045
1065
  },
1046
- ["sections"]
1066
+ ["sections", "options"]
1047
1067
  );
1048
1068
  sideEffects?.onError?.(err);
1049
1069
  throw transformedError;
@@ -1439,17 +1459,18 @@ function createSection3(httpClient) {
1439
1459
  { httpClient }
1440
1460
  );
1441
1461
  }
1442
- function bulkCreateSection3(httpClient) {
1443
- return (sections, options) => bulkCreateSection2(
1462
+ function bulkCreateSections3(httpClient) {
1463
+ return (sections, options) => bulkCreateSections2(
1444
1464
  sections,
1445
1465
  options,
1446
1466
  // @ts-ignore
1447
1467
  { httpClient }
1448
1468
  );
1449
1469
  }
1450
- function bulkCreateSectionMigration3(httpClient) {
1451
- return (sections) => bulkCreateSectionMigration2(
1470
+ function bulkCreateSection3(httpClient) {
1471
+ return (sections, options) => bulkCreateSection2(
1452
1472
  sections,
1473
+ options,
1453
1474
  // @ts-ignore
1454
1475
  { httpClient }
1455
1476
  );
@@ -1538,8 +1559,8 @@ function customQuerySections(httpClient) {
1538
1559
  return overloadedQuery;
1539
1560
  }
1540
1561
  var createSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSection3);
1562
+ var bulkCreateSections4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateSections3);
1541
1563
  var bulkCreateSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateSection3);
1542
- var bulkCreateSectionMigration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateSectionMigration3);
1543
1564
  var getSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSection3);
1544
1565
  var updateSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSection3);
1545
1566
  var deleteSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSection3);
@@ -1559,7 +1580,7 @@ var querySections4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
1559
1580
  State,
1560
1581
  WebhookIdentityType,
1561
1582
  bulkCreateSection,
1562
- bulkCreateSectionMigration,
1583
+ bulkCreateSections,
1563
1584
  cloneSection,
1564
1585
  createSection,
1565
1586
  deleteSection,