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