@wix/auto_sdk_online-programs_sections 1.0.30 → 1.0.32

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
  }
@@ -311,31 +317,23 @@ interface BulkCreateSectionResponse {
311
317
  /** Summary of the bulk create operation. */
312
318
  bulkActionMetadata?: BulkActionMetadata;
313
319
  }
314
- interface BulkCreateSectionMigrationRequest {
315
- /**
316
- * List of sections to create.
317
- * @minSize 1
318
- * @maxSize 100
319
- */
320
- sections?: Section[];
321
- }
322
- interface BulkCreateSectionMigrationResponse {
323
- /** Results for the bulk create operation. */
324
- results?: BulkSectionResult[];
325
- /** Summary of the bulk create operation. */
326
- bulkActionMetadata?: BulkActionMetadata;
327
- }
328
320
  interface GetSectionRequest {
329
321
  /**
330
322
  * ID of the Section to retrieve.
331
323
  * @format GUID
332
324
  */
333
325
  sectionId: string;
334
- /** Compatibility option for existing integrations. Current section responses return the section title. */
326
+ /**
327
+ * Deprecated: Current section responses always include the section title. This field is ignored.
328
+ * @deprecated
329
+ * @targetRemovalDate 2026-12-31
330
+ */
335
331
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
336
332
  /**
337
- * Predefined sets of fields to return.
333
+ * Deprecated: `total_steps` is always returned. This field is ignored.
338
334
  * @maxSize 1
335
+ * @deprecated
336
+ * @targetRemovalDate 2026-12-31
339
337
  */
340
338
  fields?: RequestedFieldsWithLiterals[];
341
339
  }
@@ -355,8 +353,10 @@ interface UpdateSectionRequest {
355
353
  /** Section to update. Include `section.id`, `section.revision`, and the fields to update. */
356
354
  section?: Section;
357
355
  /**
358
- * Predefined sets of fields to return.
356
+ * Deprecated: `total_steps` is always returned. This field is ignored.
359
357
  * @maxSize 1
358
+ * @deprecated
359
+ * @targetRemovalDate 2026-12-31
360
360
  */
361
361
  fields?: RequestedFieldsWithLiterals[];
362
362
  }
@@ -391,11 +391,17 @@ interface DeleteAllProgramSectionsResponse {
391
391
  interface QuerySectionsRequest {
392
392
  /** WQL expression. */
393
393
  query?: CursorQuery;
394
- /** Compatibility option for existing integrations. Current section responses return the section title. */
394
+ /**
395
+ * Deprecated: Current section responses always include the section title. This field is ignored.
396
+ * @deprecated
397
+ * @targetRemovalDate 2026-12-31
398
+ */
395
399
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
396
400
  /**
397
- * Predefined sets of fields to return.
401
+ * Deprecated: `total_steps` is always returned. This field is ignored.
398
402
  * @maxSize 1
403
+ * @deprecated
404
+ * @targetRemovalDate 2026-12-31
399
405
  */
400
406
  fields?: RequestedFieldsWithLiterals[];
401
407
  }
@@ -507,11 +513,17 @@ interface ListSectionsRequest {
507
513
  * @format GUID
508
514
  */
509
515
  programId: string;
510
- /** Compatibility option for existing integrations. Current section responses return the section title. */
516
+ /**
517
+ * Deprecated: Current section responses always include the section title. This field is ignored.
518
+ * @deprecated
519
+ * @targetRemovalDate 2026-12-31
520
+ */
511
521
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
512
522
  /**
513
- * Predefined sets of fields to return.
523
+ * Deprecated: `total_steps` is always returned. This field is ignored.
514
524
  * @maxSize 1
525
+ * @deprecated
526
+ * @targetRemovalDate 2026-12-31
515
527
  */
516
528
  fields?: RequestedFieldsWithLiterals[];
517
529
  }
@@ -529,8 +541,10 @@ interface CloneSectionRequest {
529
541
  */
530
542
  sectionId: string;
531
543
  /**
532
- * Predefined sets of fields to return.
544
+ * Deprecated: `total_steps` is always returned. This field is ignored.
533
545
  * @maxSize 1
546
+ * @deprecated
547
+ * @targetRemovalDate 2026-12-31
534
548
  */
535
549
  fields?: RequestedFieldsWithLiterals[];
536
550
  }
@@ -552,8 +566,10 @@ interface MoveSectionRequest {
552
566
  /** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
553
567
  revision?: string;
554
568
  /**
555
- * Predefined sets of fields to return.
569
+ * Deprecated: `total_steps` is always returned. This field is ignored.
556
570
  * @maxSize 1
571
+ * @deprecated
572
+ * @targetRemovalDate 2026-12-31
557
573
  */
558
574
  fields?: RequestedFieldsWithLiterals[];
559
575
  }
@@ -594,8 +610,10 @@ interface RestoreSectionFromTrashRequest {
594
610
  */
595
611
  sectionId?: string;
596
612
  /**
597
- * Predefined sets of fields to return.
613
+ * Deprecated: `total_steps` is always returned. This field is ignored.
598
614
  * @maxSize 1
615
+ * @deprecated
616
+ * @targetRemovalDate 2026-12-31
599
617
  */
600
618
  fields?: RequestedFieldsWithLiterals[];
601
619
  }
@@ -802,8 +820,10 @@ interface AccountInfo {
802
820
  declare function createSection(section: NonNullablePaths<Section, `programId`, 0>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
803
821
  interface CreateSectionOptions {
804
822
  /**
805
- * Predefined sets of fields to return.
823
+ * Deprecated: `total_steps` is always returned. This field is ignored.
806
824
  * @maxSize 1
825
+ * @deprecated
826
+ * @targetRemovalDate 2026-12-31
807
827
  */
808
828
  fields?: RequestedFieldsWithLiterals[];
809
829
  }
@@ -827,15 +847,15 @@ interface CreateSectionOptions {
827
847
  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
848
  interface BulkCreateSectionsOptions {
829
849
  /**
830
- * Predefined sets of fields to return.
850
+ * Deprecated: This field is ignored.
831
851
  * @maxSize 1
852
+ * @deprecated
853
+ * @targetRemovalDate 2026-12-31
832
854
  */
833
855
  fields?: RequestedFieldsWithLiterals[];
834
856
  }
835
857
  /**
836
858
  * Retrieves a section.
837
- *
838
- * `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
839
859
  * @param sectionId - ID of the Section to retrieve.
840
860
  * @public
841
861
  * @documentationMaturity preview
@@ -847,11 +867,17 @@ interface BulkCreateSectionsOptions {
847
867
  */
848
868
  declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
849
869
  interface GetSectionOptions {
850
- /** Compatibility option for existing integrations. Current section responses return the section title. */
870
+ /**
871
+ * Deprecated: Current section responses always include the section title. This field is ignored.
872
+ * @deprecated
873
+ * @targetRemovalDate 2026-12-31
874
+ */
851
875
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
852
876
  /**
853
- * Predefined sets of fields to return.
877
+ * Deprecated: `total_steps` is always returned. This field is ignored.
854
878
  * @maxSize 1
879
+ * @deprecated
880
+ * @targetRemovalDate 2026-12-31
855
881
  */
856
882
  fields?: RequestedFieldsWithLiterals[];
857
883
  }
@@ -920,8 +946,10 @@ interface UpdateSectionOptions {
920
946
  extendedFields?: ExtendedFields;
921
947
  };
922
948
  /**
923
- * Predefined sets of fields to return.
949
+ * Deprecated: `total_steps` is always returned. This field is ignored.
924
950
  * @maxSize 1
951
+ * @deprecated
952
+ * @targetRemovalDate 2026-12-31
925
953
  */
926
954
  fields?: RequestedFieldsWithLiterals[];
927
955
  }
@@ -941,6 +969,9 @@ declare function deleteSection(sectionId: string): Promise<void>;
941
969
  /**
942
970
  * Retrieves a list of up to 1,000 sections, given the provided paging, filtering, and sorting.
943
971
  *
972
+ * Use this method when you need to filter sections, apply custom sorting or paging, or query across programs.
973
+ * 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).
974
+ *
944
975
  * Query Sections runs with these defaults, which you can override:
945
976
  *
946
977
  * - `createdDate` is sorted in `DESC` order.
@@ -950,7 +981,6 @@ declare function deleteSection(sectionId: string): Promise<void>;
950
981
  * Supported filter fields are `programId`, `id`, and `delayInDays`.
951
982
  * Supported sorting fields are `id`, `delayInDays`, `createdDate`, and `ordering`. When sorting by a field other than `programId`, also filter by `programId`.
952
983
  * 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
984
  *
955
985
  * 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
986
  * @public
@@ -961,11 +991,17 @@ declare function deleteSection(sectionId: string): Promise<void>;
961
991
  */
962
992
  declare function querySections(options?: QuerySectionsOptions): SectionsQueryBuilder;
963
993
  interface QuerySectionsOptions {
964
- /** Compatibility option for existing integrations. Current section responses return the section title. */
994
+ /**
995
+ * Deprecated: Current section responses always include the section title. This field is ignored.
996
+ * @deprecated
997
+ * @targetRemovalDate 2026-12-31
998
+ */
965
999
  descriptionFieldSet?: DescriptionFieldSetWithLiterals | undefined;
966
1000
  /**
967
- * Predefined sets of fields to return.
1001
+ * Deprecated: `total_steps` is always returned. This field is ignored.
968
1002
  * @maxSize 1
1003
+ * @deprecated
1004
+ * @targetRemovalDate 2026-12-31
969
1005
  */
970
1006
  fields?: RequestedFieldsWithLiterals[] | undefined;
971
1007
  }
@@ -1122,11 +1158,13 @@ declare const utils: {
1122
1158
  query: _wix_sdk_types.QueryHelpers<Section, SectionQuerySpec, SectionQuery>;
1123
1159
  };
1124
1160
  /**
1125
- * Retrieves the sections in a program.
1161
+ * Retrieves all sections in a program.
1126
1162
  *
1127
- * Results are sorted by `ordering` in ascending order. `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
1163
+ * Use this method when you know the program ID and need all sections in program order.
1128
1164
  *
1129
- * To filter or sort sections, call [Query Sections](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/query-sections).
1165
+ * Results are sorted by `ordering` in ascending order.
1166
+ *
1167
+ * 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
1168
  * @param programId - Program ID to list sections for.
1131
1169
  * @public
1132
1170
  * @documentationMaturity preview
@@ -1137,11 +1175,17 @@ declare const utils: {
1137
1175
  */
1138
1176
  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
1177
  interface ListSectionsOptions {
1140
- /** Compatibility option for existing integrations. Current section responses return the section title. */
1178
+ /**
1179
+ * Deprecated: Current section responses always include the section title. This field is ignored.
1180
+ * @deprecated
1181
+ * @targetRemovalDate 2026-12-31
1182
+ */
1141
1183
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
1142
1184
  /**
1143
- * Predefined sets of fields to return.
1185
+ * Deprecated: `total_steps` is always returned. This field is ignored.
1144
1186
  * @maxSize 1
1187
+ * @deprecated
1188
+ * @targetRemovalDate 2026-12-31
1145
1189
  */
1146
1190
  fields?: RequestedFieldsWithLiterals[];
1147
1191
  }
@@ -1164,8 +1208,10 @@ interface ListSectionsOptions {
1164
1208
  declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
1165
1209
  interface CloneSectionOptions {
1166
1210
  /**
1167
- * Predefined sets of fields to return.
1211
+ * Deprecated: `total_steps` is always returned. This field is ignored.
1168
1212
  * @maxSize 1
1213
+ * @deprecated
1214
+ * @targetRemovalDate 2026-12-31
1169
1215
  */
1170
1216
  fields?: RequestedFieldsWithLiterals[];
1171
1217
  }
@@ -1193,10 +1239,12 @@ interface MoveSectionOptions {
1193
1239
  /** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
1194
1240
  revision?: string;
1195
1241
  /**
1196
- * Predefined sets of fields to return.
1242
+ * Deprecated: `total_steps` is always returned. This field is ignored.
1197
1243
  * @maxSize 1
1244
+ * @deprecated
1245
+ * @targetRemovalDate 2026-12-31
1198
1246
  */
1199
1247
  fields?: RequestedFieldsWithLiterals[];
1200
1248
  }
1201
1249
 
1202
- export { type AccountInfo, type ActionEvent, type AddressLocation, type ApplicationError, type BulkActionMetadata, BulkActionType, type BulkActionTypeWithLiterals, type BulkCloneSectionRequest, type BulkCloneSectionResponse, type BulkCreateSectionMigrationRequest, type BulkCreateSectionMigrationResponse, type BulkCreateSectionRequest, type BulkCreateSectionResponse, type BulkCreateSectionsOptions, type BulkCreateSectionsRequest, type BulkCreateSectionsResponse, type BulkSectionResult, type CloneSectionOptions, type CloneSectionRequest, type CloneSectionResponse, type CommonQueryWithEntityContext, type CreateSectionOptions, type CreateSectionRequest, type CreateSectionResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteAllProgramSectionsRequest, type DeleteAllProgramSectionsResponse, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteSectionRequest, type DeleteSectionResponse, type Description, DescriptionFieldSet, type DescriptionFieldSetWithLiterals, type DocumentImage, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EnumWithLiterals, type ExtendedFields, type GetSectionOptions, type GetSectionRequest, type GetSectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type IndexDocument, type ItemMetadata, type ListSectionsOptions, type ListSectionsRequest, type ListSectionsResponse, type MessageEnvelope, type MoveSectionOptions, type MoveSectionRequest, type MoveSectionResponse, type QuerySectionsOptions, type QuerySectionsRequest, type QuerySectionsResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type RestoreSectionFromTrashRequest, type RestoreSectionFromTrashResponse, type SearchIndexingNotification, SearchIndexingNotificationState, type SearchIndexingNotificationStateWithLiterals, type Section, type SectionCloned, type SectionDeleted, type SectionMoved, type SectionQuery, type SectionQuerySpec, type SectionUpdated, type SectionsQueryBuilder, type SectionsQueryResult, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateSectionOptions, type UpdateSectionRequest, type UpdateSectionResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateSections, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, querySections, typedQuerySections, updateSection, utils };
1250
+ export { type AccountInfo, type ActionEvent, type AddressLocation, type ApplicationError, type BulkActionMetadata, BulkActionType, type BulkActionTypeWithLiterals, type BulkCloneSectionRequest, type BulkCloneSectionResponse, type BulkCreateSectionRequest, type BulkCreateSectionResponse, type BulkCreateSectionsOptions, type BulkCreateSectionsRequest, type BulkCreateSectionsResponse, type BulkSectionResult, type CloneSectionOptions, type CloneSectionRequest, type CloneSectionResponse, type CommonQueryWithEntityContext, type CreateSectionOptions, type CreateSectionRequest, type CreateSectionResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteAllProgramSectionsRequest, type DeleteAllProgramSectionsResponse, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteSectionRequest, type DeleteSectionResponse, type Description, DescriptionFieldSet, type DescriptionFieldSetWithLiterals, type DocumentImage, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EnumWithLiterals, type ExtendedFields, type GetSectionOptions, type GetSectionRequest, type GetSectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type IndexDocument, type ItemMetadata, type ListSectionsOptions, type ListSectionsRequest, type ListSectionsResponse, type MessageEnvelope, type MoveSectionOptions, type MoveSectionRequest, type MoveSectionResponse, type QuerySectionsOptions, type QuerySectionsRequest, type QuerySectionsResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type RestoreSectionFromTrashRequest, type RestoreSectionFromTrashResponse, type SearchIndexingNotification, SearchIndexingNotificationState, type SearchIndexingNotificationStateWithLiterals, type Section, type SectionCloned, type SectionDeleted, type SectionMoved, type SectionQuery, type SectionQuerySpec, type SectionUpdated, type SectionsQueryBuilder, type SectionsQueryResult, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateSectionOptions, type UpdateSectionRequest, type UpdateSectionResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateSections, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, querySections, typedQuerySections, updateSection, utils };