@wix/auto_sdk_online-programs_sections 1.0.22 → 1.0.24

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.
@@ -47,8 +47,6 @@ interface Section {
47
47
  * @readonly
48
48
  */
49
49
  totalSteps?: number | null;
50
- /** Whether participants can access the section as trial content before purchasing the parent program. Default: `false`. */
51
- trialSection?: boolean;
52
50
  /** Position rank used to order sections within a program. To reorder sections, call Move Section. */
53
51
  ordering?: number;
54
52
  /**
@@ -859,7 +857,7 @@ interface AccountInfo {
859
857
  * @returns Created section.
860
858
  * @fqn wix.onlineprograms.sections.v3.SectionsService.CreateSection
861
859
  */
862
- declare function createSection(section: NonNullablePaths<Section, `programId`, 2>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
860
+ declare function createSection(section: NonNullablePaths<Section, `programId`, 0>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 1>>;
863
861
  interface CreateSectionOptions {
864
862
  /**
865
863
  * Predefined sets of fields to return.
@@ -882,7 +880,7 @@ interface CreateSectionOptions {
882
880
  * @applicableIdentity APP
883
881
  * @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections
884
882
  */
885
- declare function bulkCreateSections(sections: NonNullablePaths<Section, `programId`, 2>[], 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`, 6>>;
883
+ 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>>;
886
884
  interface BulkCreateSectionsOptions {
887
885
  /**
888
886
  * Predefined sets of fields to return.
@@ -903,7 +901,7 @@ interface BulkCreateSectionsOptions {
903
901
  * @returns Retrieved section.
904
902
  * @fqn wix.onlineprograms.sections.v3.SectionsService.GetSection
905
903
  */
906
- declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
904
+ declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 1>>;
907
905
  interface GetSectionOptions {
908
906
  /** Compatibility option for existing integrations. Current section responses return the section title. */
909
907
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
@@ -929,7 +927,7 @@ interface GetSectionOptions {
929
927
  * @returns Updated section.
930
928
  * @fqn wix.onlineprograms.sections.v3.SectionsService.UpdateSection
931
929
  */
932
- declare function updateSection(_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 3>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
930
+ declare function updateSection(_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 1>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 1>>;
933
931
  interface UpdateSectionOptions {
934
932
  section?: {
935
933
  /**
@@ -972,8 +970,6 @@ interface UpdateSectionOptions {
972
970
  * @readonly
973
971
  */
974
972
  totalSteps?: number | null;
975
- /** Whether participants can access the section as trial content before purchasing the parent program. Default: `false`. */
976
- trialSection?: boolean;
977
973
  /** Position rank used to order sections within a program. To reorder sections, call Move Section. */
978
974
  ordering?: number;
979
975
  /**
@@ -1012,8 +1008,8 @@ declare function deleteSection(sectionId: string): Promise<void>;
1012
1008
  * - `paging.limit` is `1000`.
1013
1009
  * - `paging.offset` is `0`.
1014
1010
  *
1015
- * Supported filter fields are `programId`, `id`, `delayInDays`, and `trialSection`.
1016
- * Supported sorting fields are `id`, `delayInDays`, `trialSection`, `createdDate`, and `ordering`. When sorting by a field other than `programId`, also filter by `programId`.
1011
+ * Supported filter fields are `programId`, `id`, and `delayInDays`.
1012
+ * Supported sorting fields are `id`, `delayInDays`, `createdDate`, and `ordering`. When sorting by a field other than `programId`, also filter by `programId`.
1017
1013
  * `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
1018
1014
  *
1019
1015
  * 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).
@@ -1058,12 +1054,12 @@ interface SectionsQueryBuilder {
1058
1054
  * @param value - Value to compare against.
1059
1055
  * @documentationMaturity preview
1060
1056
  */
1061
- eq: (propertyName: '_id' | 'programId' | 'trialSection' | 'delayInDays', value: any) => SectionsQueryBuilder;
1057
+ eq: (propertyName: '_id' | 'programId' | 'delayInDays', value: any) => SectionsQueryBuilder;
1062
1058
  /** @param propertyName - Property whose value is compared with `value`.
1063
1059
  * @param value - Value to compare against.
1064
1060
  * @documentationMaturity preview
1065
1061
  */
1066
- ne: (propertyName: '_id' | 'trialSection' | 'delayInDays', value: any) => SectionsQueryBuilder;
1062
+ ne: (propertyName: '_id' | 'delayInDays', value: any) => SectionsQueryBuilder;
1067
1063
  /** @param propertyName - Property whose value is compared with `value`.
1068
1064
  * @param value - Value to compare against.
1069
1065
  * @documentationMaturity preview
@@ -1090,17 +1086,17 @@ interface SectionsQueryBuilder {
1090
1086
  */
1091
1087
  startsWith: (propertyName: '_id', value: string) => SectionsQueryBuilder;
1092
1088
  /** @documentationMaturity preview */
1093
- in: (propertyName: '_id' | 'trialSection' | 'delayInDays', value: any) => SectionsQueryBuilder;
1089
+ in: (propertyName: '_id' | 'delayInDays', value: any) => SectionsQueryBuilder;
1094
1090
  /** @documentationMaturity preview */
1095
- exists: (propertyName: '_id' | 'trialSection' | 'delayInDays', value: boolean) => SectionsQueryBuilder;
1091
+ exists: (propertyName: '_id' | 'delayInDays', value: boolean) => SectionsQueryBuilder;
1096
1092
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1097
1093
  * @documentationMaturity preview
1098
1094
  */
1099
- ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'state' | 'trialSection' | 'ordering' | 'delayInDays'>) => SectionsQueryBuilder;
1095
+ ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'state' | 'ordering' | 'delayInDays'>) => SectionsQueryBuilder;
1100
1096
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1101
1097
  * @documentationMaturity preview
1102
1098
  */
1103
- descending: (...propertyNames: Array<'_id' | '_createdDate' | 'state' | 'trialSection' | 'ordering' | 'delayInDays'>) => SectionsQueryBuilder;
1099
+ descending: (...propertyNames: Array<'_id' | '_createdDate' | 'state' | 'ordering' | 'delayInDays'>) => SectionsQueryBuilder;
1104
1100
  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1105
1101
  * @documentationMaturity preview
1106
1102
  */
@@ -1117,7 +1113,7 @@ interface SectionsQueryBuilder {
1117
1113
  * @fqn wix.onlineprograms.sections.v3.SectionsService.QuerySections
1118
1114
  * @requiredField query
1119
1115
  */
1120
- declare function typedQuerySections(query: SectionQuery, options?: QuerySectionsOptions): Promise<NonNullablePaths<QuerySectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.oldTotalSteps` | `sections.${number}.trialSection` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 5>>;
1116
+ declare function typedQuerySections(query: SectionQuery, options?: QuerySectionsOptions): Promise<NonNullablePaths<QuerySectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.oldTotalSteps` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 3>>;
1121
1117
  interface SectionQuerySpec extends QuerySpec {
1122
1118
  paging: 'cursor';
1123
1119
  wql: [
@@ -1127,7 +1123,7 @@ interface SectionQuerySpec extends QuerySpec {
1127
1123
  sort: 'NONE';
1128
1124
  },
1129
1125
  {
1130
- fields: ['_id', 'delayInDays', 'trialSection'];
1126
+ fields: ['_id', 'delayInDays'];
1131
1127
  operators: '*';
1132
1128
  sort: 'BOTH';
1133
1129
  },
@@ -1206,7 +1202,7 @@ declare const utils: {
1206
1202
  * @applicableIdentity APP
1207
1203
  * @fqn wix.onlineprograms.sections.v3.SectionsService.ListSections
1208
1204
  */
1209
- declare function listSections(programId: string, options?: ListSectionsOptions): Promise<NonNullablePaths<ListSectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.oldTotalSteps` | `sections.${number}.trialSection` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 5>>;
1205
+ declare function listSections(programId: string, options?: ListSectionsOptions): Promise<NonNullablePaths<ListSectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.oldTotalSteps` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 3>>;
1210
1206
  interface ListSectionsOptions {
1211
1207
  /** Compatibility option for existing integrations. Current section responses return the section title. */
1212
1208
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
@@ -1228,7 +1224,7 @@ interface ListSectionsOptions {
1228
1224
  * @applicableIdentity APP
1229
1225
  * @fqn wix.onlineprograms.sections.v3.SectionsService.CloneSection
1230
1226
  */
1231
- declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
1227
+ declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 2>>;
1232
1228
  interface CloneSectionOptions {
1233
1229
  /**
1234
1230
  * Predefined sets of fields to return.
@@ -1248,7 +1244,7 @@ interface CloneSectionOptions {
1248
1244
  * @applicableIdentity APP
1249
1245
  * @fqn wix.onlineprograms.sections.v3.SectionsService.MoveSection
1250
1246
  */
1251
- declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
1247
+ declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 2>>;
1252
1248
  interface MoveSectionOptions {
1253
1249
  /**
1254
1250
  * ID of the section to move.