@wix/auto_sdk_online-programs_sections 1.0.29 → 1.0.31
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 +15 -6
- package/build/cjs/index.js +10 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +105 -37
- package/build/cjs/index.typings.js +8 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +46 -14
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +15 -6
- package/build/es/index.mjs +10 -9
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +105 -37
- package/build/es/index.typings.mjs +8 -8
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +46 -14
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +15 -6
- package/build/internal/cjs/index.typings.d.ts +105 -37
- package/build/internal/cjs/meta.d.ts +46 -14
- package/build/internal/es/index.d.mts +15 -6
- package/build/internal/es/index.typings.d.mts +105 -37
- package/build/internal/es/meta.d.mts +46 -14
- package/package.json +2 -2
|
@@ -218,8 +218,10 @@ interface CreateSectionRequest {
|
|
|
218
218
|
/** Section to create. Must include `section.program_id`. */
|
|
219
219
|
section: Section;
|
|
220
220
|
/**
|
|
221
|
-
*
|
|
221
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
222
222
|
* @maxSize 1
|
|
223
|
+
* @deprecated
|
|
224
|
+
* @targetRemovalDate 2026-12-31
|
|
223
225
|
*/
|
|
224
226
|
fields?: RequestedFieldsWithLiterals[];
|
|
225
227
|
}
|
|
@@ -241,8 +243,10 @@ interface BulkCreateSectionsRequest {
|
|
|
241
243
|
*/
|
|
242
244
|
sections: Section[];
|
|
243
245
|
/**
|
|
244
|
-
*
|
|
246
|
+
* Deprecated: This field is ignored.
|
|
245
247
|
* @maxSize 1
|
|
248
|
+
* @deprecated
|
|
249
|
+
* @targetRemovalDate 2026-12-31
|
|
246
250
|
*/
|
|
247
251
|
fields?: RequestedFieldsWithLiterals[];
|
|
248
252
|
}
|
|
@@ -300,8 +304,10 @@ interface BulkCreateSectionRequest {
|
|
|
300
304
|
*/
|
|
301
305
|
sections?: Section[];
|
|
302
306
|
/**
|
|
303
|
-
*
|
|
307
|
+
* Deprecated: This field is ignored.
|
|
304
308
|
* @maxSize 1
|
|
309
|
+
* @deprecated
|
|
310
|
+
* @targetRemovalDate 2026-12-31
|
|
305
311
|
*/
|
|
306
312
|
fields?: RequestedFieldsWithLiterals[];
|
|
307
313
|
}
|
|
@@ -331,11 +337,17 @@ interface GetSectionRequest {
|
|
|
331
337
|
* @format GUID
|
|
332
338
|
*/
|
|
333
339
|
sectionId: string;
|
|
334
|
-
/**
|
|
340
|
+
/**
|
|
341
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
342
|
+
* @deprecated
|
|
343
|
+
* @targetRemovalDate 2026-12-31
|
|
344
|
+
*/
|
|
335
345
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
336
346
|
/**
|
|
337
|
-
*
|
|
347
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
338
348
|
* @maxSize 1
|
|
349
|
+
* @deprecated
|
|
350
|
+
* @targetRemovalDate 2026-12-31
|
|
339
351
|
*/
|
|
340
352
|
fields?: RequestedFieldsWithLiterals[];
|
|
341
353
|
}
|
|
@@ -355,8 +367,10 @@ interface UpdateSectionRequest {
|
|
|
355
367
|
/** Section to update. Include `section.id`, `section.revision`, and the fields to update. */
|
|
356
368
|
section?: Section;
|
|
357
369
|
/**
|
|
358
|
-
*
|
|
370
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
359
371
|
* @maxSize 1
|
|
372
|
+
* @deprecated
|
|
373
|
+
* @targetRemovalDate 2026-12-31
|
|
360
374
|
*/
|
|
361
375
|
fields?: RequestedFieldsWithLiterals[];
|
|
362
376
|
}
|
|
@@ -391,11 +405,17 @@ interface DeleteAllProgramSectionsResponse {
|
|
|
391
405
|
interface QuerySectionsRequest {
|
|
392
406
|
/** WQL expression. */
|
|
393
407
|
query?: CursorQuery;
|
|
394
|
-
/**
|
|
408
|
+
/**
|
|
409
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
410
|
+
* @deprecated
|
|
411
|
+
* @targetRemovalDate 2026-12-31
|
|
412
|
+
*/
|
|
395
413
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
396
414
|
/**
|
|
397
|
-
*
|
|
415
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
398
416
|
* @maxSize 1
|
|
417
|
+
* @deprecated
|
|
418
|
+
* @targetRemovalDate 2026-12-31
|
|
399
419
|
*/
|
|
400
420
|
fields?: RequestedFieldsWithLiterals[];
|
|
401
421
|
}
|
|
@@ -507,11 +527,17 @@ interface ListSectionsRequest {
|
|
|
507
527
|
* @format GUID
|
|
508
528
|
*/
|
|
509
529
|
programId: string;
|
|
510
|
-
/**
|
|
530
|
+
/**
|
|
531
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
532
|
+
* @deprecated
|
|
533
|
+
* @targetRemovalDate 2026-12-31
|
|
534
|
+
*/
|
|
511
535
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
512
536
|
/**
|
|
513
|
-
*
|
|
537
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
514
538
|
* @maxSize 1
|
|
539
|
+
* @deprecated
|
|
540
|
+
* @targetRemovalDate 2026-12-31
|
|
515
541
|
*/
|
|
516
542
|
fields?: RequestedFieldsWithLiterals[];
|
|
517
543
|
}
|
|
@@ -529,8 +555,10 @@ interface CloneSectionRequest {
|
|
|
529
555
|
*/
|
|
530
556
|
sectionId: string;
|
|
531
557
|
/**
|
|
532
|
-
*
|
|
558
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
533
559
|
* @maxSize 1
|
|
560
|
+
* @deprecated
|
|
561
|
+
* @targetRemovalDate 2026-12-31
|
|
534
562
|
*/
|
|
535
563
|
fields?: RequestedFieldsWithLiterals[];
|
|
536
564
|
}
|
|
@@ -543,7 +571,7 @@ interface MoveSectionRequest {
|
|
|
543
571
|
* ID of the section to move.
|
|
544
572
|
* @format GUID
|
|
545
573
|
*/
|
|
546
|
-
sectionId
|
|
574
|
+
sectionId: string;
|
|
547
575
|
/**
|
|
548
576
|
* ID of the section that the moved section should be placed after. Leave empty to move the section to the beginning of the program.
|
|
549
577
|
* @format GUID
|
|
@@ -552,8 +580,10 @@ interface MoveSectionRequest {
|
|
|
552
580
|
/** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
|
|
553
581
|
revision?: string;
|
|
554
582
|
/**
|
|
555
|
-
*
|
|
583
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
556
584
|
* @maxSize 1
|
|
585
|
+
* @deprecated
|
|
586
|
+
* @targetRemovalDate 2026-12-31
|
|
557
587
|
*/
|
|
558
588
|
fields?: RequestedFieldsWithLiterals[];
|
|
559
589
|
}
|
|
@@ -594,8 +624,10 @@ interface RestoreSectionFromTrashRequest {
|
|
|
594
624
|
*/
|
|
595
625
|
sectionId?: string;
|
|
596
626
|
/**
|
|
597
|
-
*
|
|
627
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
598
628
|
* @maxSize 1
|
|
629
|
+
* @deprecated
|
|
630
|
+
* @targetRemovalDate 2026-12-31
|
|
599
631
|
*/
|
|
600
632
|
fields?: RequestedFieldsWithLiterals[];
|
|
601
633
|
}
|
|
@@ -786,6 +818,8 @@ interface AccountInfo {
|
|
|
786
818
|
*
|
|
787
819
|
* 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. The stored ordering value is assigned automatically.
|
|
788
820
|
*
|
|
821
|
+
* A program can contain up to 1,000 sections. This call fails if creating the section would exceed that limit.
|
|
822
|
+
*
|
|
789
823
|
* 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).
|
|
790
824
|
* @param section - Section to create. Must include `section.program_id`.
|
|
791
825
|
* @public
|
|
@@ -800,8 +834,10 @@ interface AccountInfo {
|
|
|
800
834
|
declare function createSection(section: NonNullablePaths<Section, `programId`, 0>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
|
|
801
835
|
interface CreateSectionOptions {
|
|
802
836
|
/**
|
|
803
|
-
*
|
|
837
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
804
838
|
* @maxSize 1
|
|
839
|
+
* @deprecated
|
|
840
|
+
* @targetRemovalDate 2026-12-31
|
|
805
841
|
*/
|
|
806
842
|
fields?: RequestedFieldsWithLiterals[];
|
|
807
843
|
}
|
|
@@ -810,6 +846,8 @@ interface CreateSectionOptions {
|
|
|
810
846
|
*
|
|
811
847
|
* All sections in the request must include `program_id` and belong to the same program. Set `description.title` for each section title. The stored ordering values are assigned automatically.
|
|
812
848
|
*
|
|
849
|
+
* A program can contain up to 1,000 sections. This call fails if creating the requested sections would exceed that limit.
|
|
850
|
+
*
|
|
813
851
|
* To create a single section, call [Create Section](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/create-section).
|
|
814
852
|
* @param sections - List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
|
|
815
853
|
* @public
|
|
@@ -823,15 +861,15 @@ interface CreateSectionOptions {
|
|
|
823
861
|
declare function bulkCreateSections(sections: NonNullablePaths<Section, `programId`, 0>[], 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`, 4>>;
|
|
824
862
|
interface BulkCreateSectionsOptions {
|
|
825
863
|
/**
|
|
826
|
-
*
|
|
864
|
+
* Deprecated: This field is ignored.
|
|
827
865
|
* @maxSize 1
|
|
866
|
+
* @deprecated
|
|
867
|
+
* @targetRemovalDate 2026-12-31
|
|
828
868
|
*/
|
|
829
869
|
fields?: RequestedFieldsWithLiterals[];
|
|
830
870
|
}
|
|
831
871
|
/**
|
|
832
872
|
* Retrieves a section.
|
|
833
|
-
*
|
|
834
|
-
* `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
|
|
835
873
|
* @param sectionId - ID of the Section to retrieve.
|
|
836
874
|
* @public
|
|
837
875
|
* @documentationMaturity preview
|
|
@@ -843,11 +881,17 @@ interface BulkCreateSectionsOptions {
|
|
|
843
881
|
*/
|
|
844
882
|
declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
|
|
845
883
|
interface GetSectionOptions {
|
|
846
|
-
/**
|
|
884
|
+
/**
|
|
885
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
886
|
+
* @deprecated
|
|
887
|
+
* @targetRemovalDate 2026-12-31
|
|
888
|
+
*/
|
|
847
889
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
848
890
|
/**
|
|
849
|
-
*
|
|
891
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
850
892
|
* @maxSize 1
|
|
893
|
+
* @deprecated
|
|
894
|
+
* @targetRemovalDate 2026-12-31
|
|
851
895
|
*/
|
|
852
896
|
fields?: RequestedFieldsWithLiterals[];
|
|
853
897
|
}
|
|
@@ -916,8 +960,10 @@ interface UpdateSectionOptions {
|
|
|
916
960
|
extendedFields?: ExtendedFields;
|
|
917
961
|
};
|
|
918
962
|
/**
|
|
919
|
-
*
|
|
963
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
920
964
|
* @maxSize 1
|
|
965
|
+
* @deprecated
|
|
966
|
+
* @targetRemovalDate 2026-12-31
|
|
921
967
|
*/
|
|
922
968
|
fields?: RequestedFieldsWithLiterals[];
|
|
923
969
|
}
|
|
@@ -937,6 +983,9 @@ declare function deleteSection(sectionId: string): Promise<void>;
|
|
|
937
983
|
/**
|
|
938
984
|
* Retrieves a list of up to 1,000 sections, given the provided paging, filtering, and sorting.
|
|
939
985
|
*
|
|
986
|
+
* Use this method when you need to filter sections, apply custom sorting or paging, or query across programs.
|
|
987
|
+
* When you know the program ID and need all sections in program order, call [List Sections](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/list-sections).
|
|
988
|
+
*
|
|
940
989
|
* Query Sections runs with these defaults, which you can override:
|
|
941
990
|
*
|
|
942
991
|
* - `createdDate` is sorted in `DESC` order.
|
|
@@ -945,7 +994,7 @@ declare function deleteSection(sectionId: string): Promise<void>;
|
|
|
945
994
|
*
|
|
946
995
|
* Supported filter fields are `programId`, `id`, and `delayInDays`.
|
|
947
996
|
* Supported sorting fields are `id`, `delayInDays`, `createdDate`, and `ordering`. When sorting by a field other than `programId`, also filter by `programId`.
|
|
948
|
-
*
|
|
997
|
+
* Section extended fields aren't supported for filtering or sorting. Queries that reference them are rejected.
|
|
949
998
|
*
|
|
950
999
|
* To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).
|
|
951
1000
|
* @public
|
|
@@ -956,11 +1005,17 @@ declare function deleteSection(sectionId: string): Promise<void>;
|
|
|
956
1005
|
*/
|
|
957
1006
|
declare function querySections(options?: QuerySectionsOptions): SectionsQueryBuilder;
|
|
958
1007
|
interface QuerySectionsOptions {
|
|
959
|
-
/**
|
|
1008
|
+
/**
|
|
1009
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
1010
|
+
* @deprecated
|
|
1011
|
+
* @targetRemovalDate 2026-12-31
|
|
1012
|
+
*/
|
|
960
1013
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals | undefined;
|
|
961
1014
|
/**
|
|
962
|
-
*
|
|
1015
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
963
1016
|
* @maxSize 1
|
|
1017
|
+
* @deprecated
|
|
1018
|
+
* @targetRemovalDate 2026-12-31
|
|
964
1019
|
*/
|
|
965
1020
|
fields?: RequestedFieldsWithLiterals[] | undefined;
|
|
966
1021
|
}
|
|
@@ -1117,11 +1172,13 @@ declare const utils: {
|
|
|
1117
1172
|
query: _wix_sdk_types.QueryHelpers<Section, SectionQuerySpec, SectionQuery>;
|
|
1118
1173
|
};
|
|
1119
1174
|
/**
|
|
1120
|
-
* Retrieves
|
|
1175
|
+
* Retrieves all sections in a program.
|
|
1121
1176
|
*
|
|
1122
|
-
*
|
|
1177
|
+
* Use this method when you know the program ID and need all sections in program order.
|
|
1123
1178
|
*
|
|
1124
|
-
*
|
|
1179
|
+
* Results are sorted by `ordering` in ascending order.
|
|
1180
|
+
*
|
|
1181
|
+
* To filter sections, apply custom sorting or paging, or query across programs, call [Query Sections](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/query-sections).
|
|
1125
1182
|
* @param programId - Program ID to list sections for.
|
|
1126
1183
|
* @public
|
|
1127
1184
|
* @documentationMaturity preview
|
|
@@ -1132,11 +1189,17 @@ declare const utils: {
|
|
|
1132
1189
|
*/
|
|
1133
1190
|
declare function listSections(programId: string, options?: ListSectionsOptions): Promise<NonNullablePaths<ListSectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 3>>;
|
|
1134
1191
|
interface ListSectionsOptions {
|
|
1135
|
-
/**
|
|
1192
|
+
/**
|
|
1193
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
1194
|
+
* @deprecated
|
|
1195
|
+
* @targetRemovalDate 2026-12-31
|
|
1196
|
+
*/
|
|
1136
1197
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
1137
1198
|
/**
|
|
1138
|
-
*
|
|
1199
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
1139
1200
|
* @maxSize 1
|
|
1201
|
+
* @deprecated
|
|
1202
|
+
* @targetRemovalDate 2026-12-31
|
|
1140
1203
|
*/
|
|
1141
1204
|
fields?: RequestedFieldsWithLiterals[];
|
|
1142
1205
|
}
|
|
@@ -1144,6 +1207,10 @@ interface ListSectionsOptions {
|
|
|
1144
1207
|
* Clones a section.
|
|
1145
1208
|
*
|
|
1146
1209
|
* The cloned section is added to the same program after the current last section. Translation content and extended field data are copied to the cloned section.
|
|
1210
|
+
*
|
|
1211
|
+
* Steps are cloned asynchronously after this call returns. The `section.total_steps` value in the response may not reflect the eventual number of cloned steps. Until cloning finishes, Get, List, and Query calls may return a lower actual step count.
|
|
1212
|
+
*
|
|
1213
|
+
* A program can contain up to 1,000 sections. This call fails if cloning the section would exceed that limit.
|
|
1147
1214
|
* @param sectionId - ID of the section to clone.
|
|
1148
1215
|
* @public
|
|
1149
1216
|
* @documentationMaturity preview
|
|
@@ -1155,8 +1222,10 @@ interface ListSectionsOptions {
|
|
|
1155
1222
|
declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
1156
1223
|
interface CloneSectionOptions {
|
|
1157
1224
|
/**
|
|
1158
|
-
*
|
|
1225
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
1159
1226
|
* @maxSize 1
|
|
1227
|
+
* @deprecated
|
|
1228
|
+
* @targetRemovalDate 2026-12-31
|
|
1160
1229
|
*/
|
|
1161
1230
|
fields?: RequestedFieldsWithLiterals[];
|
|
1162
1231
|
}
|
|
@@ -1166,19 +1235,16 @@ interface CloneSectionOptions {
|
|
|
1166
1235
|
* 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.
|
|
1167
1236
|
*
|
|
1168
1237
|
* If `afterSectionId` isn't specified, the section is moved to the beginning of the program. The stored ordering value is recalculated automatically.
|
|
1238
|
+
* @param sectionId - ID of the section to move.
|
|
1169
1239
|
* @public
|
|
1170
1240
|
* @documentationMaturity preview
|
|
1241
|
+
* @requiredField sectionId
|
|
1171
1242
|
* @permissionId ONLINE_PROGRAMS.SECTION_UPDATE
|
|
1172
1243
|
* @applicableIdentity APP
|
|
1173
1244
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.MoveSection
|
|
1174
1245
|
*/
|
|
1175
|
-
declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
1246
|
+
declare function moveSection(sectionId: string, options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
1176
1247
|
interface MoveSectionOptions {
|
|
1177
|
-
/**
|
|
1178
|
-
* ID of the section to move.
|
|
1179
|
-
* @format GUID
|
|
1180
|
-
*/
|
|
1181
|
-
sectionId?: string;
|
|
1182
1248
|
/**
|
|
1183
1249
|
* ID of the section that the moved section should be placed after. Leave empty to move the section to the beginning of the program.
|
|
1184
1250
|
* @format GUID
|
|
@@ -1187,8 +1253,10 @@ interface MoveSectionOptions {
|
|
|
1187
1253
|
/** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
|
|
1188
1254
|
revision?: string;
|
|
1189
1255
|
/**
|
|
1190
|
-
*
|
|
1256
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
1191
1257
|
* @maxSize 1
|
|
1258
|
+
* @deprecated
|
|
1259
|
+
* @targetRemovalDate 2026-12-31
|
|
1192
1260
|
*/
|
|
1193
1261
|
fields?: RequestedFieldsWithLiterals[];
|
|
1194
1262
|
}
|
|
@@ -822,10 +822,10 @@ async function cloneSection2(sectionId, options) {
|
|
|
822
822
|
throw transformedError;
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
|
-
async function moveSection2(options) {
|
|
826
|
-
const { httpClient, sideEffects } = arguments[
|
|
825
|
+
async function moveSection2(sectionId, options) {
|
|
826
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
827
827
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
828
|
-
sectionId
|
|
828
|
+
sectionId,
|
|
829
829
|
afterSectionId: options?.afterSectionId,
|
|
830
830
|
revision: options?.revision,
|
|
831
831
|
fields: options?.fields
|
|
@@ -842,14 +842,14 @@ async function moveSection2(options) {
|
|
|
842
842
|
{
|
|
843
843
|
spreadPathsToArguments: {},
|
|
844
844
|
explicitPathsToArguments: {
|
|
845
|
-
sectionId: "$[0]
|
|
846
|
-
afterSectionId: "$[
|
|
847
|
-
revision: "$[
|
|
848
|
-
fields: "$[
|
|
845
|
+
sectionId: "$[0]",
|
|
846
|
+
afterSectionId: "$[1].afterSectionId",
|
|
847
|
+
revision: "$[1].revision",
|
|
848
|
+
fields: "$[1].fields"
|
|
849
849
|
},
|
|
850
850
|
singleArgumentUnchanged: false
|
|
851
851
|
},
|
|
852
|
-
["options"]
|
|
852
|
+
["sectionId", "options"]
|
|
853
853
|
);
|
|
854
854
|
sideEffects?.onError?.(err);
|
|
855
855
|
throw transformedError;
|