@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.
@@ -218,8 +218,10 @@ interface CreateSectionRequest {
218
218
  /** Section to create. Must include `section.program_id`. */
219
219
  section: Section;
220
220
  /**
221
- * Predefined sets of fields to return.
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
- * Predefined sets of fields to return.
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
- * Predefined sets of fields to return.
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
- /** Compatibility option for existing integrations. Current section responses return the section title. */
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
- * Predefined sets of fields to return.
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
- * Predefined sets of fields to return.
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
- /** Compatibility option for existing integrations. Current section responses return the section title. */
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
- * Predefined sets of fields to return.
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
- /** Compatibility option for existing integrations. Current section responses return the section title. */
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
- * Predefined sets of fields to return.
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
- * Predefined sets of fields to return.
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
  }
@@ -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
- * Predefined sets of fields to return.
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
- * Predefined sets of fields to return.
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
  }
@@ -802,8 +834,10 @@ interface AccountInfo {
802
834
  declare function createSection(section: NonNullablePaths<Section, `programId`, 0>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
803
835
  interface CreateSectionOptions {
804
836
  /**
805
- * Predefined sets of fields to return.
837
+ * Deprecated: `total_steps` is always returned. This field is ignored.
806
838
  * @maxSize 1
839
+ * @deprecated
840
+ * @targetRemovalDate 2026-12-31
807
841
  */
808
842
  fields?: RequestedFieldsWithLiterals[];
809
843
  }
@@ -827,15 +861,15 @@ interface CreateSectionOptions {
827
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>>;
828
862
  interface BulkCreateSectionsOptions {
829
863
  /**
830
- * Predefined sets of fields to return.
864
+ * Deprecated: This field is ignored.
831
865
  * @maxSize 1
866
+ * @deprecated
867
+ * @targetRemovalDate 2026-12-31
832
868
  */
833
869
  fields?: RequestedFieldsWithLiterals[];
834
870
  }
835
871
  /**
836
872
  * Retrieves a section.
837
- *
838
- * `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
839
873
  * @param sectionId - ID of the Section to retrieve.
840
874
  * @public
841
875
  * @documentationMaturity preview
@@ -847,11 +881,17 @@ interface BulkCreateSectionsOptions {
847
881
  */
848
882
  declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
849
883
  interface GetSectionOptions {
850
- /** Compatibility option for existing integrations. Current section responses return the section title. */
884
+ /**
885
+ * Deprecated: Current section responses always include the section title. This field is ignored.
886
+ * @deprecated
887
+ * @targetRemovalDate 2026-12-31
888
+ */
851
889
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
852
890
  /**
853
- * Predefined sets of fields to return.
891
+ * Deprecated: `total_steps` is always returned. This field is ignored.
854
892
  * @maxSize 1
893
+ * @deprecated
894
+ * @targetRemovalDate 2026-12-31
855
895
  */
856
896
  fields?: RequestedFieldsWithLiterals[];
857
897
  }
@@ -920,8 +960,10 @@ interface UpdateSectionOptions {
920
960
  extendedFields?: ExtendedFields;
921
961
  };
922
962
  /**
923
- * Predefined sets of fields to return.
963
+ * Deprecated: `total_steps` is always returned. This field is ignored.
924
964
  * @maxSize 1
965
+ * @deprecated
966
+ * @targetRemovalDate 2026-12-31
925
967
  */
926
968
  fields?: RequestedFieldsWithLiterals[];
927
969
  }
@@ -941,6 +983,9 @@ declare function deleteSection(sectionId: string): Promise<void>;
941
983
  /**
942
984
  * Retrieves a list of up to 1,000 sections, given the provided paging, filtering, and sorting.
943
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
+ *
944
989
  * Query Sections runs with these defaults, which you can override:
945
990
  *
946
991
  * - `createdDate` is sorted in `DESC` order.
@@ -950,7 +995,6 @@ declare function deleteSection(sectionId: string): Promise<void>;
950
995
  * Supported filter fields are `programId`, `id`, and `delayInDays`.
951
996
  * Supported sorting fields are `id`, `delayInDays`, `createdDate`, and `ordering`. When sorting by a field other than `programId`, also filter by `programId`.
952
997
  * Section extended fields aren't supported for filtering or sorting. Queries that reference them are rejected.
953
- * `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
954
998
  *
955
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).
956
1000
  * @public
@@ -961,11 +1005,17 @@ declare function deleteSection(sectionId: string): Promise<void>;
961
1005
  */
962
1006
  declare function querySections(options?: QuerySectionsOptions): SectionsQueryBuilder;
963
1007
  interface QuerySectionsOptions {
964
- /** Compatibility option for existing integrations. Current section responses return the section title. */
1008
+ /**
1009
+ * Deprecated: Current section responses always include the section title. This field is ignored.
1010
+ * @deprecated
1011
+ * @targetRemovalDate 2026-12-31
1012
+ */
965
1013
  descriptionFieldSet?: DescriptionFieldSetWithLiterals | undefined;
966
1014
  /**
967
- * Predefined sets of fields to return.
1015
+ * Deprecated: `total_steps` is always returned. This field is ignored.
968
1016
  * @maxSize 1
1017
+ * @deprecated
1018
+ * @targetRemovalDate 2026-12-31
969
1019
  */
970
1020
  fields?: RequestedFieldsWithLiterals[] | undefined;
971
1021
  }
@@ -1122,11 +1172,13 @@ declare const utils: {
1122
1172
  query: _wix_sdk_types.QueryHelpers<Section, SectionQuerySpec, SectionQuery>;
1123
1173
  };
1124
1174
  /**
1125
- * Retrieves the sections in a program.
1175
+ * Retrieves all sections in a program.
1126
1176
  *
1127
- * Results are sorted by `ordering` in ascending order. `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
1177
+ * Use this method when you know the program ID and need all sections in program order.
1128
1178
  *
1129
- * To filter or sort sections, call [Query Sections](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/query-sections).
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).
1130
1182
  * @param programId - Program ID to list sections for.
1131
1183
  * @public
1132
1184
  * @documentationMaturity preview
@@ -1137,11 +1189,17 @@ declare const utils: {
1137
1189
  */
1138
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>>;
1139
1191
  interface ListSectionsOptions {
1140
- /** Compatibility option for existing integrations. Current section responses return the section title. */
1192
+ /**
1193
+ * Deprecated: Current section responses always include the section title. This field is ignored.
1194
+ * @deprecated
1195
+ * @targetRemovalDate 2026-12-31
1196
+ */
1141
1197
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
1142
1198
  /**
1143
- * Predefined sets of fields to return.
1199
+ * Deprecated: `total_steps` is always returned. This field is ignored.
1144
1200
  * @maxSize 1
1201
+ * @deprecated
1202
+ * @targetRemovalDate 2026-12-31
1145
1203
  */
1146
1204
  fields?: RequestedFieldsWithLiterals[];
1147
1205
  }
@@ -1164,8 +1222,10 @@ interface ListSectionsOptions {
1164
1222
  declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
1165
1223
  interface CloneSectionOptions {
1166
1224
  /**
1167
- * Predefined sets of fields to return.
1225
+ * Deprecated: `total_steps` is always returned. This field is ignored.
1168
1226
  * @maxSize 1
1227
+ * @deprecated
1228
+ * @targetRemovalDate 2026-12-31
1169
1229
  */
1170
1230
  fields?: RequestedFieldsWithLiterals[];
1171
1231
  }
@@ -1193,8 +1253,10 @@ interface MoveSectionOptions {
1193
1253
  /** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
1194
1254
  revision?: string;
1195
1255
  /**
1196
- * Predefined sets of fields to return.
1256
+ * Deprecated: `total_steps` is always returned. This field is ignored.
1197
1257
  * @maxSize 1
1258
+ * @deprecated
1259
+ * @targetRemovalDate 2026-12-31
1198
1260
  */
1199
1261
  fields?: RequestedFieldsWithLiterals[];
1200
1262
  }