@wix/auto_sdk_online-programs_sections 1.0.30 → 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 +5 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +92 -30
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +45 -13
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +5 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +92 -30
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +45 -13
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +5 -5
- package/build/internal/cjs/index.typings.d.ts +92 -30
- package/build/internal/cjs/meta.d.ts +45 -13
- package/build/internal/es/index.d.mts +5 -5
- package/build/internal/es/index.typings.d.mts +92 -30
- package/build/internal/es/meta.d.mts +45 -13
- package/package.json +2 -2
|
@@ -224,8 +224,10 @@ interface CreateSectionRequest {
|
|
|
224
224
|
/** Section to create. Must include `section.program_id`. */
|
|
225
225
|
section: Section;
|
|
226
226
|
/**
|
|
227
|
-
*
|
|
227
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
228
228
|
* @maxSize 1
|
|
229
|
+
* @deprecated
|
|
230
|
+
* @targetRemovalDate 2026-12-31
|
|
229
231
|
*/
|
|
230
232
|
fields?: RequestedFieldsWithLiterals[];
|
|
231
233
|
}
|
|
@@ -247,8 +249,10 @@ interface BulkCreateSectionsRequest {
|
|
|
247
249
|
*/
|
|
248
250
|
sections: Section[];
|
|
249
251
|
/**
|
|
250
|
-
*
|
|
252
|
+
* Deprecated: This field is ignored.
|
|
251
253
|
* @maxSize 1
|
|
254
|
+
* @deprecated
|
|
255
|
+
* @targetRemovalDate 2026-12-31
|
|
252
256
|
*/
|
|
253
257
|
fields?: RequestedFieldsWithLiterals[];
|
|
254
258
|
}
|
|
@@ -311,8 +315,10 @@ interface BulkCreateSectionRequest {
|
|
|
311
315
|
*/
|
|
312
316
|
sections?: Section[];
|
|
313
317
|
/**
|
|
314
|
-
*
|
|
318
|
+
* Deprecated: This field is ignored.
|
|
315
319
|
* @maxSize 1
|
|
320
|
+
* @deprecated
|
|
321
|
+
* @targetRemovalDate 2026-12-31
|
|
316
322
|
*/
|
|
317
323
|
fields?: RequestedFieldsWithLiterals[];
|
|
318
324
|
}
|
|
@@ -342,11 +348,17 @@ interface GetSectionRequest {
|
|
|
342
348
|
* @format GUID
|
|
343
349
|
*/
|
|
344
350
|
sectionId: string;
|
|
345
|
-
/**
|
|
351
|
+
/**
|
|
352
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
353
|
+
* @deprecated
|
|
354
|
+
* @targetRemovalDate 2026-12-31
|
|
355
|
+
*/
|
|
346
356
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
347
357
|
/**
|
|
348
|
-
*
|
|
358
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
349
359
|
* @maxSize 1
|
|
360
|
+
* @deprecated
|
|
361
|
+
* @targetRemovalDate 2026-12-31
|
|
350
362
|
*/
|
|
351
363
|
fields?: RequestedFieldsWithLiterals[];
|
|
352
364
|
}
|
|
@@ -373,8 +385,10 @@ interface UpdateSectionRequest {
|
|
|
373
385
|
*/
|
|
374
386
|
fieldMask?: string[];
|
|
375
387
|
/**
|
|
376
|
-
*
|
|
388
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
377
389
|
* @maxSize 1
|
|
390
|
+
* @deprecated
|
|
391
|
+
* @targetRemovalDate 2026-12-31
|
|
378
392
|
*/
|
|
379
393
|
fields?: RequestedFieldsWithLiterals[];
|
|
380
394
|
}
|
|
@@ -409,11 +423,17 @@ interface DeleteAllProgramSectionsResponse {
|
|
|
409
423
|
interface QuerySectionsRequest {
|
|
410
424
|
/** WQL expression. */
|
|
411
425
|
query?: CursorQuery;
|
|
412
|
-
/**
|
|
426
|
+
/**
|
|
427
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
428
|
+
* @deprecated
|
|
429
|
+
* @targetRemovalDate 2026-12-31
|
|
430
|
+
*/
|
|
413
431
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
414
432
|
/**
|
|
415
|
-
*
|
|
433
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
416
434
|
* @maxSize 1
|
|
435
|
+
* @deprecated
|
|
436
|
+
* @targetRemovalDate 2026-12-31
|
|
417
437
|
*/
|
|
418
438
|
fields?: RequestedFieldsWithLiterals[];
|
|
419
439
|
}
|
|
@@ -546,11 +566,17 @@ interface ListSectionsRequest {
|
|
|
546
566
|
* @format GUID
|
|
547
567
|
*/
|
|
548
568
|
programId: string;
|
|
549
|
-
/**
|
|
569
|
+
/**
|
|
570
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
571
|
+
* @deprecated
|
|
572
|
+
* @targetRemovalDate 2026-12-31
|
|
573
|
+
*/
|
|
550
574
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
551
575
|
/**
|
|
552
|
-
*
|
|
576
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
553
577
|
* @maxSize 1
|
|
578
|
+
* @deprecated
|
|
579
|
+
* @targetRemovalDate 2026-12-31
|
|
554
580
|
*/
|
|
555
581
|
fields?: RequestedFieldsWithLiterals[];
|
|
556
582
|
}
|
|
@@ -568,8 +594,10 @@ interface CloneSectionRequest {
|
|
|
568
594
|
*/
|
|
569
595
|
sectionId: string;
|
|
570
596
|
/**
|
|
571
|
-
*
|
|
597
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
572
598
|
* @maxSize 1
|
|
599
|
+
* @deprecated
|
|
600
|
+
* @targetRemovalDate 2026-12-31
|
|
573
601
|
*/
|
|
574
602
|
fields?: RequestedFieldsWithLiterals[];
|
|
575
603
|
}
|
|
@@ -591,8 +619,10 @@ interface MoveSectionRequest {
|
|
|
591
619
|
/** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
|
|
592
620
|
revision?: string;
|
|
593
621
|
/**
|
|
594
|
-
*
|
|
622
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
595
623
|
* @maxSize 1
|
|
624
|
+
* @deprecated
|
|
625
|
+
* @targetRemovalDate 2026-12-31
|
|
596
626
|
*/
|
|
597
627
|
fields?: RequestedFieldsWithLiterals[];
|
|
598
628
|
}
|
|
@@ -633,8 +663,10 @@ interface RestoreSectionFromTrashRequest {
|
|
|
633
663
|
*/
|
|
634
664
|
sectionId?: string;
|
|
635
665
|
/**
|
|
636
|
-
*
|
|
666
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
637
667
|
* @maxSize 1
|
|
668
|
+
* @deprecated
|
|
669
|
+
* @targetRemovalDate 2026-12-31
|
|
638
670
|
*/
|
|
639
671
|
fields?: RequestedFieldsWithLiterals[];
|
|
640
672
|
}
|
|
@@ -841,8 +873,10 @@ interface AccountInfo {
|
|
|
841
873
|
declare function createSection(section: NonNullablePaths<Section, `programId`, 0>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
|
|
842
874
|
interface CreateSectionOptions {
|
|
843
875
|
/**
|
|
844
|
-
*
|
|
876
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
845
877
|
* @maxSize 1
|
|
878
|
+
* @deprecated
|
|
879
|
+
* @targetRemovalDate 2026-12-31
|
|
846
880
|
*/
|
|
847
881
|
fields?: RequestedFieldsWithLiterals[];
|
|
848
882
|
}
|
|
@@ -866,15 +900,15 @@ interface CreateSectionOptions {
|
|
|
866
900
|
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>>;
|
|
867
901
|
interface BulkCreateSectionsOptions {
|
|
868
902
|
/**
|
|
869
|
-
*
|
|
903
|
+
* Deprecated: This field is ignored.
|
|
870
904
|
* @maxSize 1
|
|
905
|
+
* @deprecated
|
|
906
|
+
* @targetRemovalDate 2026-12-31
|
|
871
907
|
*/
|
|
872
908
|
fields?: RequestedFieldsWithLiterals[];
|
|
873
909
|
}
|
|
874
910
|
/**
|
|
875
911
|
* Retrieves a section.
|
|
876
|
-
*
|
|
877
|
-
* `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
|
|
878
912
|
* @param sectionId - ID of the Section to retrieve.
|
|
879
913
|
* @public
|
|
880
914
|
* @documentationMaturity preview
|
|
@@ -886,11 +920,17 @@ interface BulkCreateSectionsOptions {
|
|
|
886
920
|
*/
|
|
887
921
|
declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
|
|
888
922
|
interface GetSectionOptions {
|
|
889
|
-
/**
|
|
923
|
+
/**
|
|
924
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
925
|
+
* @deprecated
|
|
926
|
+
* @targetRemovalDate 2026-12-31
|
|
927
|
+
*/
|
|
890
928
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
891
929
|
/**
|
|
892
|
-
*
|
|
930
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
893
931
|
* @maxSize 1
|
|
932
|
+
* @deprecated
|
|
933
|
+
* @targetRemovalDate 2026-12-31
|
|
894
934
|
*/
|
|
895
935
|
fields?: RequestedFieldsWithLiterals[];
|
|
896
936
|
}
|
|
@@ -965,8 +1005,10 @@ interface UpdateSectionOptions {
|
|
|
965
1005
|
extendedFields?: ExtendedFields;
|
|
966
1006
|
};
|
|
967
1007
|
/**
|
|
968
|
-
*
|
|
1008
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
969
1009
|
* @maxSize 1
|
|
1010
|
+
* @deprecated
|
|
1011
|
+
* @targetRemovalDate 2026-12-31
|
|
970
1012
|
*/
|
|
971
1013
|
fields?: RequestedFieldsWithLiterals[];
|
|
972
1014
|
}
|
|
@@ -986,6 +1028,9 @@ declare function deleteSection(sectionId: string): Promise<void>;
|
|
|
986
1028
|
/**
|
|
987
1029
|
* Retrieves a list of up to 1,000 sections, given the provided paging, filtering, and sorting.
|
|
988
1030
|
*
|
|
1031
|
+
* Use this method when you need to filter sections, apply custom sorting or paging, or query across programs.
|
|
1032
|
+
* 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).
|
|
1033
|
+
*
|
|
989
1034
|
* Query Sections runs with these defaults, which you can override:
|
|
990
1035
|
*
|
|
991
1036
|
* - `createdDate` is sorted in `DESC` order.
|
|
@@ -995,7 +1040,6 @@ declare function deleteSection(sectionId: string): Promise<void>;
|
|
|
995
1040
|
* Supported filter fields are `programId`, `id`, and `delayInDays`.
|
|
996
1041
|
* Supported sorting fields are `id`, `delayInDays`, `createdDate`, and `ordering`. When sorting by a field other than `programId`, also filter by `programId`.
|
|
997
1042
|
* Section extended fields aren't supported for filtering or sorting. Queries that reference them are rejected.
|
|
998
|
-
* `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
|
|
999
1043
|
*
|
|
1000
1044
|
* 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).
|
|
1001
1045
|
* @public
|
|
@@ -1006,11 +1050,17 @@ declare function deleteSection(sectionId: string): Promise<void>;
|
|
|
1006
1050
|
*/
|
|
1007
1051
|
declare function querySections(options?: QuerySectionsOptions): SectionsQueryBuilder;
|
|
1008
1052
|
interface QuerySectionsOptions {
|
|
1009
|
-
/**
|
|
1053
|
+
/**
|
|
1054
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
1055
|
+
* @deprecated
|
|
1056
|
+
* @targetRemovalDate 2026-12-31
|
|
1057
|
+
*/
|
|
1010
1058
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals | undefined;
|
|
1011
1059
|
/**
|
|
1012
|
-
*
|
|
1060
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
1013
1061
|
* @maxSize 1
|
|
1062
|
+
* @deprecated
|
|
1063
|
+
* @targetRemovalDate 2026-12-31
|
|
1014
1064
|
*/
|
|
1015
1065
|
fields?: RequestedFieldsWithLiterals[] | undefined;
|
|
1016
1066
|
}
|
|
@@ -1181,11 +1231,13 @@ declare const utils: {
|
|
|
1181
1231
|
query: _wix_sdk_types.QueryHelpers<Section, SectionQuerySpec, SectionQuery>;
|
|
1182
1232
|
};
|
|
1183
1233
|
/**
|
|
1184
|
-
* Retrieves
|
|
1234
|
+
* Retrieves all sections in a program.
|
|
1235
|
+
*
|
|
1236
|
+
* Use this method when you know the program ID and need all sections in program order.
|
|
1185
1237
|
*
|
|
1186
|
-
* Results are sorted by `ordering` in ascending order.
|
|
1238
|
+
* Results are sorted by `ordering` in ascending order.
|
|
1187
1239
|
*
|
|
1188
|
-
* To filter or
|
|
1240
|
+
* 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).
|
|
1189
1241
|
* @param programId - Program ID to list sections for.
|
|
1190
1242
|
* @public
|
|
1191
1243
|
* @documentationMaturity preview
|
|
@@ -1196,11 +1248,17 @@ declare const utils: {
|
|
|
1196
1248
|
*/
|
|
1197
1249
|
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>>;
|
|
1198
1250
|
interface ListSectionsOptions {
|
|
1199
|
-
/**
|
|
1251
|
+
/**
|
|
1252
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
1253
|
+
* @deprecated
|
|
1254
|
+
* @targetRemovalDate 2026-12-31
|
|
1255
|
+
*/
|
|
1200
1256
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
1201
1257
|
/**
|
|
1202
|
-
*
|
|
1258
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
1203
1259
|
* @maxSize 1
|
|
1260
|
+
* @deprecated
|
|
1261
|
+
* @targetRemovalDate 2026-12-31
|
|
1204
1262
|
*/
|
|
1205
1263
|
fields?: RequestedFieldsWithLiterals[];
|
|
1206
1264
|
}
|
|
@@ -1223,8 +1281,10 @@ interface ListSectionsOptions {
|
|
|
1223
1281
|
declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
1224
1282
|
interface CloneSectionOptions {
|
|
1225
1283
|
/**
|
|
1226
|
-
*
|
|
1284
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
1227
1285
|
* @maxSize 1
|
|
1286
|
+
* @deprecated
|
|
1287
|
+
* @targetRemovalDate 2026-12-31
|
|
1228
1288
|
*/
|
|
1229
1289
|
fields?: RequestedFieldsWithLiterals[];
|
|
1230
1290
|
}
|
|
@@ -1252,8 +1312,10 @@ interface MoveSectionOptions {
|
|
|
1252
1312
|
/** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
|
|
1253
1313
|
revision?: string;
|
|
1254
1314
|
/**
|
|
1255
|
-
*
|
|
1315
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
1256
1316
|
* @maxSize 1
|
|
1317
|
+
* @deprecated
|
|
1318
|
+
* @targetRemovalDate 2026-12-31
|
|
1257
1319
|
*/
|
|
1258
1320
|
fields?: RequestedFieldsWithLiterals[];
|
|
1259
1321
|
}
|
|
@@ -224,8 +224,10 @@ interface CreateSectionRequest {
|
|
|
224
224
|
/** Section to create. Must include `section.program_id`. */
|
|
225
225
|
section: Section;
|
|
226
226
|
/**
|
|
227
|
-
*
|
|
227
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
228
228
|
* @maxSize 1
|
|
229
|
+
* @deprecated
|
|
230
|
+
* @targetRemovalDate 2026-12-31
|
|
229
231
|
*/
|
|
230
232
|
fields?: RequestedFieldsWithLiterals[];
|
|
231
233
|
}
|
|
@@ -247,8 +249,10 @@ interface BulkCreateSectionsRequest {
|
|
|
247
249
|
*/
|
|
248
250
|
sections: Section[];
|
|
249
251
|
/**
|
|
250
|
-
*
|
|
252
|
+
* Deprecated: This field is ignored.
|
|
251
253
|
* @maxSize 1
|
|
254
|
+
* @deprecated
|
|
255
|
+
* @targetRemovalDate 2026-12-31
|
|
252
256
|
*/
|
|
253
257
|
fields?: RequestedFieldsWithLiterals[];
|
|
254
258
|
}
|
|
@@ -311,8 +315,10 @@ interface BulkCreateSectionRequest {
|
|
|
311
315
|
*/
|
|
312
316
|
sections?: Section[];
|
|
313
317
|
/**
|
|
314
|
-
*
|
|
318
|
+
* Deprecated: This field is ignored.
|
|
315
319
|
* @maxSize 1
|
|
320
|
+
* @deprecated
|
|
321
|
+
* @targetRemovalDate 2026-12-31
|
|
316
322
|
*/
|
|
317
323
|
fields?: RequestedFieldsWithLiterals[];
|
|
318
324
|
}
|
|
@@ -342,11 +348,17 @@ interface GetSectionRequest {
|
|
|
342
348
|
* @format GUID
|
|
343
349
|
*/
|
|
344
350
|
sectionId: string;
|
|
345
|
-
/**
|
|
351
|
+
/**
|
|
352
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
353
|
+
* @deprecated
|
|
354
|
+
* @targetRemovalDate 2026-12-31
|
|
355
|
+
*/
|
|
346
356
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
347
357
|
/**
|
|
348
|
-
*
|
|
358
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
349
359
|
* @maxSize 1
|
|
360
|
+
* @deprecated
|
|
361
|
+
* @targetRemovalDate 2026-12-31
|
|
350
362
|
*/
|
|
351
363
|
fields?: RequestedFieldsWithLiterals[];
|
|
352
364
|
}
|
|
@@ -373,8 +385,10 @@ interface UpdateSectionRequest {
|
|
|
373
385
|
*/
|
|
374
386
|
fieldMask?: string[];
|
|
375
387
|
/**
|
|
376
|
-
*
|
|
388
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
377
389
|
* @maxSize 1
|
|
390
|
+
* @deprecated
|
|
391
|
+
* @targetRemovalDate 2026-12-31
|
|
378
392
|
*/
|
|
379
393
|
fields?: RequestedFieldsWithLiterals[];
|
|
380
394
|
}
|
|
@@ -409,11 +423,17 @@ interface DeleteAllProgramSectionsResponse {
|
|
|
409
423
|
interface QuerySectionsRequest {
|
|
410
424
|
/** WQL expression. */
|
|
411
425
|
query?: CursorQuery;
|
|
412
|
-
/**
|
|
426
|
+
/**
|
|
427
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
428
|
+
* @deprecated
|
|
429
|
+
* @targetRemovalDate 2026-12-31
|
|
430
|
+
*/
|
|
413
431
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
414
432
|
/**
|
|
415
|
-
*
|
|
433
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
416
434
|
* @maxSize 1
|
|
435
|
+
* @deprecated
|
|
436
|
+
* @targetRemovalDate 2026-12-31
|
|
417
437
|
*/
|
|
418
438
|
fields?: RequestedFieldsWithLiterals[];
|
|
419
439
|
}
|
|
@@ -546,11 +566,17 @@ interface ListSectionsRequest {
|
|
|
546
566
|
* @format GUID
|
|
547
567
|
*/
|
|
548
568
|
programId: string;
|
|
549
|
-
/**
|
|
569
|
+
/**
|
|
570
|
+
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
571
|
+
* @deprecated
|
|
572
|
+
* @targetRemovalDate 2026-12-31
|
|
573
|
+
*/
|
|
550
574
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
551
575
|
/**
|
|
552
|
-
*
|
|
576
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
553
577
|
* @maxSize 1
|
|
578
|
+
* @deprecated
|
|
579
|
+
* @targetRemovalDate 2026-12-31
|
|
554
580
|
*/
|
|
555
581
|
fields?: RequestedFieldsWithLiterals[];
|
|
556
582
|
}
|
|
@@ -568,8 +594,10 @@ interface CloneSectionRequest {
|
|
|
568
594
|
*/
|
|
569
595
|
sectionId: string;
|
|
570
596
|
/**
|
|
571
|
-
*
|
|
597
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
572
598
|
* @maxSize 1
|
|
599
|
+
* @deprecated
|
|
600
|
+
* @targetRemovalDate 2026-12-31
|
|
573
601
|
*/
|
|
574
602
|
fields?: RequestedFieldsWithLiterals[];
|
|
575
603
|
}
|
|
@@ -591,8 +619,10 @@ interface MoveSectionRequest {
|
|
|
591
619
|
/** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
|
|
592
620
|
revision?: string;
|
|
593
621
|
/**
|
|
594
|
-
*
|
|
622
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
595
623
|
* @maxSize 1
|
|
624
|
+
* @deprecated
|
|
625
|
+
* @targetRemovalDate 2026-12-31
|
|
596
626
|
*/
|
|
597
627
|
fields?: RequestedFieldsWithLiterals[];
|
|
598
628
|
}
|
|
@@ -633,8 +663,10 @@ interface RestoreSectionFromTrashRequest {
|
|
|
633
663
|
*/
|
|
634
664
|
sectionId?: string;
|
|
635
665
|
/**
|
|
636
|
-
*
|
|
666
|
+
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
637
667
|
* @maxSize 1
|
|
668
|
+
* @deprecated
|
|
669
|
+
* @targetRemovalDate 2026-12-31
|
|
638
670
|
*/
|
|
639
671
|
fields?: RequestedFieldsWithLiterals[];
|
|
640
672
|
}
|
|
@@ -35,8 +35,6 @@ declare function getSection$1(httpClient: HttpClient): GetSectionSignature;
|
|
|
35
35
|
interface GetSectionSignature {
|
|
36
36
|
/**
|
|
37
37
|
* Retrieves a section.
|
|
38
|
-
*
|
|
39
|
-
* `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
|
|
40
38
|
* @param - ID of the Section to retrieve.
|
|
41
39
|
* @returns Retrieved section.
|
|
42
40
|
*/
|
|
@@ -68,11 +66,13 @@ interface DeleteSectionSignature {
|
|
|
68
66
|
declare function listSections$1(httpClient: HttpClient): ListSectionsSignature;
|
|
69
67
|
interface ListSectionsSignature {
|
|
70
68
|
/**
|
|
71
|
-
* Retrieves
|
|
69
|
+
* Retrieves all sections in a program.
|
|
70
|
+
*
|
|
71
|
+
* Use this method when you know the program ID and need all sections in program order.
|
|
72
72
|
*
|
|
73
|
-
* Results are sorted by `ordering` in ascending order.
|
|
73
|
+
* Results are sorted by `ordering` in ascending order.
|
|
74
74
|
*
|
|
75
|
-
* To filter or
|
|
75
|
+
* 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).
|
|
76
76
|
* @param - Program ID to list sections for.
|
|
77
77
|
*/
|
|
78
78
|
(programId: string, options?: ListSectionsOptions): Promise<NonNullablePaths<ListSectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 3>>;
|