@wix/auto_sdk_online-programs_sections 1.0.22 → 1.0.23

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.
@@ -53,8 +53,6 @@ interface Section {
53
53
  * @readonly
54
54
  */
55
55
  totalSteps?: number | null;
56
- /** Whether participants can access the section as trial content before purchasing the parent program. Default: `false`. */
57
- trialSection?: boolean;
58
56
  /** Position rank used to order sections within a program. To reorder sections, call Move Section. */
59
57
  ordering?: number;
60
58
  /**
@@ -989,7 +987,7 @@ interface AccountInfo {
989
987
  * @returns Created section.
990
988
  * @fqn wix.onlineprograms.sections.v3.SectionsService.CreateSection
991
989
  */
992
- declare function createSection(section: NonNullablePaths<Section, `programId`, 2>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
990
+ declare function createSection(section: NonNullablePaths<Section, `programId`, 2>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 3>>;
993
991
  interface CreateSectionOptions {
994
992
  /**
995
993
  * Predefined sets of fields to return.
@@ -1033,7 +1031,7 @@ interface BulkCreateSectionsOptions {
1033
1031
  * @returns Retrieved section.
1034
1032
  * @fqn wix.onlineprograms.sections.v3.SectionsService.GetSection
1035
1033
  */
1036
- declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
1034
+ declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 3>>;
1037
1035
  interface GetSectionOptions {
1038
1036
  /** Compatibility option for existing integrations. Current section responses return the section title. */
1039
1037
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
@@ -1059,7 +1057,7 @@ interface GetSectionOptions {
1059
1057
  * @returns Updated section.
1060
1058
  * @fqn wix.onlineprograms.sections.v3.SectionsService.UpdateSection
1061
1059
  */
1062
- declare function updateSection(_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 3>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
1060
+ declare function updateSection(_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 3>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 3>>;
1063
1061
  interface UpdateSectionOptions {
1064
1062
  section?: {
1065
1063
  /**
@@ -1108,8 +1106,6 @@ interface UpdateSectionOptions {
1108
1106
  * @readonly
1109
1107
  */
1110
1108
  totalSteps?: number | null;
1111
- /** Whether participants can access the section as trial content before purchasing the parent program. Default: `false`. */
1112
- trialSection?: boolean;
1113
1109
  /** Position rank used to order sections within a program. To reorder sections, call Move Section. */
1114
1110
  ordering?: number;
1115
1111
  /**
@@ -1148,8 +1144,8 @@ declare function deleteSection(sectionId: string): Promise<void>;
1148
1144
  * - `paging.limit` is `1000`.
1149
1145
  * - `paging.offset` is `0`.
1150
1146
  *
1151
- * Supported filter fields are `programId`, `id`, `delayInDays`, and `trialSection`.
1152
- * Supported sorting fields are `id`, `delayInDays`, `trialSection`, `createdDate`, and `ordering`. When sorting by a field other than `programId`, also filter by `programId`.
1147
+ * Supported filter fields are `programId`, `id`, and `delayInDays`.
1148
+ * Supported sorting fields are `id`, `delayInDays`, `createdDate`, and `ordering`. When sorting by a field other than `programId`, also filter by `programId`.
1153
1149
  * `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
1154
1150
  *
1155
1151
  * 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).
@@ -1194,12 +1190,12 @@ interface SectionsQueryBuilder {
1194
1190
  * @param value - Value to compare against.
1195
1191
  * @documentationMaturity preview
1196
1192
  */
1197
- eq: (propertyName: '_id' | 'programId' | 'trialSection' | 'delayInDays', value: any) => SectionsQueryBuilder;
1193
+ eq: (propertyName: '_id' | 'programId' | 'delayInDays', value: any) => SectionsQueryBuilder;
1198
1194
  /** @param propertyName - Property whose value is compared with `value`.
1199
1195
  * @param value - Value to compare against.
1200
1196
  * @documentationMaturity preview
1201
1197
  */
1202
- ne: (propertyName: '_id' | 'trialSection' | 'delayInDays', value: any) => SectionsQueryBuilder;
1198
+ ne: (propertyName: '_id' | 'delayInDays', value: any) => SectionsQueryBuilder;
1203
1199
  /** @param propertyName - Property whose value is compared with `value`.
1204
1200
  * @param value - Value to compare against.
1205
1201
  * @documentationMaturity preview
@@ -1226,17 +1222,17 @@ interface SectionsQueryBuilder {
1226
1222
  */
1227
1223
  startsWith: (propertyName: '_id', value: string) => SectionsQueryBuilder;
1228
1224
  /** @documentationMaturity preview */
1229
- in: (propertyName: '_id' | 'trialSection' | 'delayInDays', value: any) => SectionsQueryBuilder;
1225
+ in: (propertyName: '_id' | 'delayInDays', value: any) => SectionsQueryBuilder;
1230
1226
  /** @documentationMaturity preview */
1231
- exists: (propertyName: '_id' | 'trialSection' | 'delayInDays', value: boolean) => SectionsQueryBuilder;
1227
+ exists: (propertyName: '_id' | 'delayInDays', value: boolean) => SectionsQueryBuilder;
1232
1228
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1233
1229
  * @documentationMaturity preview
1234
1230
  */
1235
- ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'state' | 'trialSection' | 'ordering' | 'delayInDays'>) => SectionsQueryBuilder;
1231
+ ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'state' | 'ordering' | 'delayInDays'>) => SectionsQueryBuilder;
1236
1232
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1237
1233
  * @documentationMaturity preview
1238
1234
  */
1239
- descending: (...propertyNames: Array<'_id' | '_createdDate' | 'state' | 'trialSection' | 'ordering' | 'delayInDays'>) => SectionsQueryBuilder;
1235
+ descending: (...propertyNames: Array<'_id' | '_createdDate' | 'state' | 'ordering' | 'delayInDays'>) => SectionsQueryBuilder;
1240
1236
  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1241
1237
  * @documentationMaturity preview
1242
1238
  */
@@ -1253,7 +1249,7 @@ interface SectionsQueryBuilder {
1253
1249
  * @fqn wix.onlineprograms.sections.v3.SectionsService.QuerySections
1254
1250
  * @requiredField query
1255
1251
  */
1256
- 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>>;
1252
+ 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`, 5>>;
1257
1253
  interface SectionQuerySpec extends QuerySpec {
1258
1254
  paging: 'cursor';
1259
1255
  wql: [
@@ -1263,7 +1259,7 @@ interface SectionQuerySpec extends QuerySpec {
1263
1259
  sort: 'NONE';
1264
1260
  },
1265
1261
  {
1266
- fields: ['_id', 'delayInDays', 'trialSection'];
1262
+ fields: ['_id', 'delayInDays'];
1267
1263
  operators: '*';
1268
1264
  sort: 'BOTH';
1269
1265
  },
@@ -1356,7 +1352,7 @@ declare const utils: {
1356
1352
  * @applicableIdentity APP
1357
1353
  * @fqn wix.onlineprograms.sections.v3.SectionsService.ListSections
1358
1354
  */
1359
- 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>>;
1355
+ 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`, 5>>;
1360
1356
  interface ListSectionsOptions {
1361
1357
  /** Compatibility option for existing integrations. Current section responses return the section title. */
1362
1358
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
@@ -1378,7 +1374,7 @@ interface ListSectionsOptions {
1378
1374
  * @applicableIdentity APP
1379
1375
  * @fqn wix.onlineprograms.sections.v3.SectionsService.CloneSection
1380
1376
  */
1381
- declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
1377
+ declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 4>>;
1382
1378
  interface CloneSectionOptions {
1383
1379
  /**
1384
1380
  * Predefined sets of fields to return.
@@ -1398,7 +1394,7 @@ interface CloneSectionOptions {
1398
1394
  * @applicableIdentity APP
1399
1395
  * @fqn wix.onlineprograms.sections.v3.SectionsService.MoveSection
1400
1396
  */
1401
- declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
1397
+ declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 4>>;
1402
1398
  interface MoveSectionOptions {
1403
1399
  /**
1404
1400
  * ID of the section to move.
@@ -53,8 +53,6 @@ interface Section {
53
53
  * @readonly
54
54
  */
55
55
  totalSteps?: number | null;
56
- /** Whether participants can access the section as trial content before purchasing the parent program. Default: `false`. */
57
- trialSection?: boolean;
58
56
  /** Position rank used to order sections within a program. To reorder sections, call Move Section. */
59
57
  ordering?: number;
60
58
  /**
@@ -13,7 +13,7 @@ interface CreateSectionSignature {
13
13
  * @param - Section to create. Must include `section.program_id`.
14
14
  * @returns Created section.
15
15
  */
16
- (section: NonNullablePaths<Section, `programId`, 2>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
16
+ (section: NonNullablePaths<Section, `programId`, 2>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 3>>;
17
17
  }
18
18
  declare function bulkCreateSections$1(httpClient: HttpClient): BulkCreateSectionsSignature;
19
19
  interface BulkCreateSectionsSignature {
@@ -36,7 +36,7 @@ interface GetSectionSignature {
36
36
  * @param - ID of the Section to retrieve.
37
37
  * @returns Retrieved section.
38
38
  */
39
- (sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
39
+ (sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 3>>;
40
40
  }
41
41
  declare function updateSection$1(httpClient: HttpClient): UpdateSectionSignature;
42
42
  interface UpdateSectionSignature {
@@ -49,7 +49,7 @@ interface UpdateSectionSignature {
49
49
  * @param - Section ID.
50
50
  * @returns Updated section.
51
51
  */
52
- (_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 3>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
52
+ (_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 3>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 3>>;
53
53
  }
54
54
  declare function deleteSection$1(httpClient: HttpClient): DeleteSectionSignature;
55
55
  interface DeleteSectionSignature {
@@ -71,7 +71,7 @@ interface ListSectionsSignature {
71
71
  * To filter or sort sections, call [Query Sections](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/query-sections).
72
72
  * @param - Program ID to list sections for.
73
73
  */
74
- (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>>;
74
+ (programId: string, options?: ListSectionsOptions): Promise<NonNullablePaths<ListSectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.oldTotalSteps` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 5>>;
75
75
  }
76
76
  declare function cloneSection$1(httpClient: HttpClient): CloneSectionSignature;
77
77
  interface CloneSectionSignature {
@@ -81,7 +81,7 @@ interface CloneSectionSignature {
81
81
  * The cloned section is added to the same program after the current last section. Translation content is copied to the cloned section.
82
82
  * @param - ID of the section to clone.
83
83
  */
84
- (sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
84
+ (sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 4>>;
85
85
  }
86
86
  declare function moveSection$1(httpClient: HttpClient): MoveSectionSignature;
87
87
  interface MoveSectionSignature {
@@ -92,7 +92,7 @@ interface MoveSectionSignature {
92
92
  *
93
93
  * If `afterSectionId` isn't specified, the section is moved to the beginning of the program. The stored ordering value is recalculated automatically.
94
94
  */
95
- (options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
95
+ (options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 4>>;
96
96
  }
97
97
 
98
98
  declare function customQuerySections(httpClient: HttpClient): {
@@ -53,8 +53,6 @@ interface Section {
53
53
  * @readonly
54
54
  */
55
55
  totalSteps?: number | null;
56
- /** Whether participants can access the section as trial content before purchasing the parent program. Default: `false`. */
57
- trialSection?: boolean;
58
56
  /** Position rank used to order sections within a program. To reorder sections, call Move Section. */
59
57
  ordering?: number;
60
58
  /**
@@ -989,7 +987,7 @@ interface AccountInfo {
989
987
  * @returns Created section.
990
988
  * @fqn wix.onlineprograms.sections.v3.SectionsService.CreateSection
991
989
  */
992
- declare function createSection(section: NonNullablePaths<Section, `programId`, 2>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
990
+ declare function createSection(section: NonNullablePaths<Section, `programId`, 2>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 3>>;
993
991
  interface CreateSectionOptions {
994
992
  /**
995
993
  * Predefined sets of fields to return.
@@ -1033,7 +1031,7 @@ interface BulkCreateSectionsOptions {
1033
1031
  * @returns Retrieved section.
1034
1032
  * @fqn wix.onlineprograms.sections.v3.SectionsService.GetSection
1035
1033
  */
1036
- declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
1034
+ declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 3>>;
1037
1035
  interface GetSectionOptions {
1038
1036
  /** Compatibility option for existing integrations. Current section responses return the section title. */
1039
1037
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
@@ -1059,7 +1057,7 @@ interface GetSectionOptions {
1059
1057
  * @returns Updated section.
1060
1058
  * @fqn wix.onlineprograms.sections.v3.SectionsService.UpdateSection
1061
1059
  */
1062
- declare function updateSection(_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 3>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
1060
+ declare function updateSection(_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 3>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 3>>;
1063
1061
  interface UpdateSectionOptions {
1064
1062
  section?: {
1065
1063
  /**
@@ -1108,8 +1106,6 @@ interface UpdateSectionOptions {
1108
1106
  * @readonly
1109
1107
  */
1110
1108
  totalSteps?: number | null;
1111
- /** Whether participants can access the section as trial content before purchasing the parent program. Default: `false`. */
1112
- trialSection?: boolean;
1113
1109
  /** Position rank used to order sections within a program. To reorder sections, call Move Section. */
1114
1110
  ordering?: number;
1115
1111
  /**
@@ -1148,8 +1144,8 @@ declare function deleteSection(sectionId: string): Promise<void>;
1148
1144
  * - `paging.limit` is `1000`.
1149
1145
  * - `paging.offset` is `0`.
1150
1146
  *
1151
- * Supported filter fields are `programId`, `id`, `delayInDays`, and `trialSection`.
1152
- * Supported sorting fields are `id`, `delayInDays`, `trialSection`, `createdDate`, and `ordering`. When sorting by a field other than `programId`, also filter by `programId`.
1147
+ * Supported filter fields are `programId`, `id`, and `delayInDays`.
1148
+ * Supported sorting fields are `id`, `delayInDays`, `createdDate`, and `ordering`. When sorting by a field other than `programId`, also filter by `programId`.
1153
1149
  * `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
1154
1150
  *
1155
1151
  * 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).
@@ -1194,12 +1190,12 @@ interface SectionsQueryBuilder {
1194
1190
  * @param value - Value to compare against.
1195
1191
  * @documentationMaturity preview
1196
1192
  */
1197
- eq: (propertyName: '_id' | 'programId' | 'trialSection' | 'delayInDays', value: any) => SectionsQueryBuilder;
1193
+ eq: (propertyName: '_id' | 'programId' | 'delayInDays', value: any) => SectionsQueryBuilder;
1198
1194
  /** @param propertyName - Property whose value is compared with `value`.
1199
1195
  * @param value - Value to compare against.
1200
1196
  * @documentationMaturity preview
1201
1197
  */
1202
- ne: (propertyName: '_id' | 'trialSection' | 'delayInDays', value: any) => SectionsQueryBuilder;
1198
+ ne: (propertyName: '_id' | 'delayInDays', value: any) => SectionsQueryBuilder;
1203
1199
  /** @param propertyName - Property whose value is compared with `value`.
1204
1200
  * @param value - Value to compare against.
1205
1201
  * @documentationMaturity preview
@@ -1226,17 +1222,17 @@ interface SectionsQueryBuilder {
1226
1222
  */
1227
1223
  startsWith: (propertyName: '_id', value: string) => SectionsQueryBuilder;
1228
1224
  /** @documentationMaturity preview */
1229
- in: (propertyName: '_id' | 'trialSection' | 'delayInDays', value: any) => SectionsQueryBuilder;
1225
+ in: (propertyName: '_id' | 'delayInDays', value: any) => SectionsQueryBuilder;
1230
1226
  /** @documentationMaturity preview */
1231
- exists: (propertyName: '_id' | 'trialSection' | 'delayInDays', value: boolean) => SectionsQueryBuilder;
1227
+ exists: (propertyName: '_id' | 'delayInDays', value: boolean) => SectionsQueryBuilder;
1232
1228
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1233
1229
  * @documentationMaturity preview
1234
1230
  */
1235
- ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'state' | 'trialSection' | 'ordering' | 'delayInDays'>) => SectionsQueryBuilder;
1231
+ ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'state' | 'ordering' | 'delayInDays'>) => SectionsQueryBuilder;
1236
1232
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1237
1233
  * @documentationMaturity preview
1238
1234
  */
1239
- descending: (...propertyNames: Array<'_id' | '_createdDate' | 'state' | 'trialSection' | 'ordering' | 'delayInDays'>) => SectionsQueryBuilder;
1235
+ descending: (...propertyNames: Array<'_id' | '_createdDate' | 'state' | 'ordering' | 'delayInDays'>) => SectionsQueryBuilder;
1240
1236
  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1241
1237
  * @documentationMaturity preview
1242
1238
  */
@@ -1253,7 +1249,7 @@ interface SectionsQueryBuilder {
1253
1249
  * @fqn wix.onlineprograms.sections.v3.SectionsService.QuerySections
1254
1250
  * @requiredField query
1255
1251
  */
1256
- 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>>;
1252
+ 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`, 5>>;
1257
1253
  interface SectionQuerySpec extends QuerySpec {
1258
1254
  paging: 'cursor';
1259
1255
  wql: [
@@ -1263,7 +1259,7 @@ interface SectionQuerySpec extends QuerySpec {
1263
1259
  sort: 'NONE';
1264
1260
  },
1265
1261
  {
1266
- fields: ['_id', 'delayInDays', 'trialSection'];
1262
+ fields: ['_id', 'delayInDays'];
1267
1263
  operators: '*';
1268
1264
  sort: 'BOTH';
1269
1265
  },
@@ -1356,7 +1352,7 @@ declare const utils: {
1356
1352
  * @applicableIdentity APP
1357
1353
  * @fqn wix.onlineprograms.sections.v3.SectionsService.ListSections
1358
1354
  */
1359
- 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>>;
1355
+ 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`, 5>>;
1360
1356
  interface ListSectionsOptions {
1361
1357
  /** Compatibility option for existing integrations. Current section responses return the section title. */
1362
1358
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
@@ -1378,7 +1374,7 @@ interface ListSectionsOptions {
1378
1374
  * @applicableIdentity APP
1379
1375
  * @fqn wix.onlineprograms.sections.v3.SectionsService.CloneSection
1380
1376
  */
1381
- declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
1377
+ declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 4>>;
1382
1378
  interface CloneSectionOptions {
1383
1379
  /**
1384
1380
  * Predefined sets of fields to return.
@@ -1398,7 +1394,7 @@ interface CloneSectionOptions {
1398
1394
  * @applicableIdentity APP
1399
1395
  * @fqn wix.onlineprograms.sections.v3.SectionsService.MoveSection
1400
1396
  */
1401
- declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
1397
+ declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 4>>;
1402
1398
  interface MoveSectionOptions {
1403
1399
  /**
1404
1400
  * ID of the section to move.
@@ -53,8 +53,6 @@ interface Section {
53
53
  * @readonly
54
54
  */
55
55
  totalSteps?: number | null;
56
- /** Whether participants can access the section as trial content before purchasing the parent program. Default: `false`. */
57
- trialSection?: boolean;
58
56
  /** Position rank used to order sections within a program. To reorder sections, call Move Section. */
59
57
  ordering?: number;
60
58
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_online-programs_sections",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.online_programs.v3.section"
51
51
  }
52
52
  },
53
- "falconPackageHash": "683ec71a6a2a4da6eb1ddac555c99fcf936d603060434c4fb9368803"
53
+ "falconPackageHash": "b0e798a73b537494629af548557882ca45b98bbae57f74b5e8a2bdd9"
54
54
  }