@wix/auto_sdk_online-programs_sections 1.0.23 → 1.0.25
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 +8 -18
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +0 -5
- 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 +8 -18
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +0 -5
- 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 +8 -18
- package/build/internal/cjs/meta.d.ts +0 -5
- package/build/internal/es/index.d.mts +7 -7
- package/build/internal/es/index.typings.d.mts +8 -18
- package/build/internal/es/meta.d.mts +0 -5
- package/package.json +2 -2
|
@@ -37,11 +37,6 @@ interface Section {
|
|
|
37
37
|
programId?: string;
|
|
38
38
|
/** Section title and deprecated backward-compatibility content fields. */
|
|
39
39
|
description?: Description;
|
|
40
|
-
/**
|
|
41
|
-
* Legacy total number of steps in the section.
|
|
42
|
-
* @readonly
|
|
43
|
-
*/
|
|
44
|
-
oldTotalSteps?: number;
|
|
45
40
|
/**
|
|
46
41
|
* Total number of steps in the section.
|
|
47
42
|
* @readonly
|
|
@@ -857,7 +852,7 @@ interface AccountInfo {
|
|
|
857
852
|
* @returns Created section.
|
|
858
853
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.CreateSection
|
|
859
854
|
*/
|
|
860
|
-
declare function createSection(section: NonNullablePaths<Section, `programId`,
|
|
855
|
+
declare function createSection(section: NonNullablePaths<Section, `programId`, 0>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
|
|
861
856
|
interface CreateSectionOptions {
|
|
862
857
|
/**
|
|
863
858
|
* Predefined sets of fields to return.
|
|
@@ -880,7 +875,7 @@ interface CreateSectionOptions {
|
|
|
880
875
|
* @applicableIdentity APP
|
|
881
876
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections
|
|
882
877
|
*/
|
|
883
|
-
declare function bulkCreateSections(sections: NonNullablePaths<Section, `programId`,
|
|
878
|
+
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>>;
|
|
884
879
|
interface BulkCreateSectionsOptions {
|
|
885
880
|
/**
|
|
886
881
|
* Predefined sets of fields to return.
|
|
@@ -901,7 +896,7 @@ interface BulkCreateSectionsOptions {
|
|
|
901
896
|
* @returns Retrieved section.
|
|
902
897
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.GetSection
|
|
903
898
|
*/
|
|
904
|
-
declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `
|
|
899
|
+
declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
|
|
905
900
|
interface GetSectionOptions {
|
|
906
901
|
/** Compatibility option for existing integrations. Current section responses return the section title. */
|
|
907
902
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
@@ -927,7 +922,7 @@ interface GetSectionOptions {
|
|
|
927
922
|
* @returns Updated section.
|
|
928
923
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.UpdateSection
|
|
929
924
|
*/
|
|
930
|
-
declare function updateSection(_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`,
|
|
925
|
+
declare function updateSection(_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 1>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
|
|
931
926
|
interface UpdateSectionOptions {
|
|
932
927
|
section?: {
|
|
933
928
|
/**
|
|
@@ -960,11 +955,6 @@ interface UpdateSectionOptions {
|
|
|
960
955
|
programId?: string;
|
|
961
956
|
/** Section title and deprecated backward-compatibility content fields. */
|
|
962
957
|
description?: Description;
|
|
963
|
-
/**
|
|
964
|
-
* Legacy total number of steps in the section.
|
|
965
|
-
* @readonly
|
|
966
|
-
*/
|
|
967
|
-
oldTotalSteps?: number;
|
|
968
958
|
/**
|
|
969
959
|
* Total number of steps in the section.
|
|
970
960
|
* @readonly
|
|
@@ -1113,7 +1103,7 @@ interface SectionsQueryBuilder {
|
|
|
1113
1103
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.QuerySections
|
|
1114
1104
|
* @requiredField query
|
|
1115
1105
|
*/
|
|
1116
|
-
declare function typedQuerySections(query: SectionQuery, options?: QuerySectionsOptions): Promise<NonNullablePaths<QuerySectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.
|
|
1106
|
+
declare function typedQuerySections(query: SectionQuery, options?: QuerySectionsOptions): Promise<NonNullablePaths<QuerySectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 3>>;
|
|
1117
1107
|
interface SectionQuerySpec extends QuerySpec {
|
|
1118
1108
|
paging: 'cursor';
|
|
1119
1109
|
wql: [
|
|
@@ -1202,7 +1192,7 @@ declare const utils: {
|
|
|
1202
1192
|
* @applicableIdentity APP
|
|
1203
1193
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.ListSections
|
|
1204
1194
|
*/
|
|
1205
|
-
declare function listSections(programId: string, options?: ListSectionsOptions): Promise<NonNullablePaths<ListSectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.
|
|
1195
|
+
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>>;
|
|
1206
1196
|
interface ListSectionsOptions {
|
|
1207
1197
|
/** Compatibility option for existing integrations. Current section responses return the section title. */
|
|
1208
1198
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
@@ -1224,7 +1214,7 @@ interface ListSectionsOptions {
|
|
|
1224
1214
|
* @applicableIdentity APP
|
|
1225
1215
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.CloneSection
|
|
1226
1216
|
*/
|
|
1227
|
-
declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.
|
|
1217
|
+
declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
1228
1218
|
interface CloneSectionOptions {
|
|
1229
1219
|
/**
|
|
1230
1220
|
* Predefined sets of fields to return.
|
|
@@ -1244,7 +1234,7 @@ interface CloneSectionOptions {
|
|
|
1244
1234
|
* @applicableIdentity APP
|
|
1245
1235
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.MoveSection
|
|
1246
1236
|
*/
|
|
1247
|
-
declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.
|
|
1237
|
+
declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
1248
1238
|
interface MoveSectionOptions {
|
|
1249
1239
|
/**
|
|
1250
1240
|
* ID of the section to move.
|