@wix/auto_sdk_online-programs_sections 1.0.23 → 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.
- package/build/cjs/index.d.ts +7 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -8
- package/build/cjs/index.typings.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 -8
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +7 -7
- package/build/internal/cjs/index.typings.d.ts +8 -8
- package/build/internal/es/index.d.mts +7 -7
- package/build/internal/es/index.typings.d.mts +8 -8
- package/package.json +2 -2
|
@@ -857,7 +857,7 @@ interface AccountInfo {
|
|
|
857
857
|
* @returns Created section.
|
|
858
858
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.CreateSection
|
|
859
859
|
*/
|
|
860
|
-
declare function createSection(section: NonNullablePaths<Section, `programId`,
|
|
860
|
+
declare function createSection(section: NonNullablePaths<Section, `programId`, 0>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 1>>;
|
|
861
861
|
interface CreateSectionOptions {
|
|
862
862
|
/**
|
|
863
863
|
* Predefined sets of fields to return.
|
|
@@ -880,7 +880,7 @@ interface CreateSectionOptions {
|
|
|
880
880
|
* @applicableIdentity APP
|
|
881
881
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections
|
|
882
882
|
*/
|
|
883
|
-
declare function bulkCreateSections(sections: NonNullablePaths<Section, `programId`,
|
|
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>>;
|
|
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` | `ordering` | `delayInDays`,
|
|
904
|
+
declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 1>>;
|
|
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`,
|
|
930
|
+
declare function updateSection(_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 1>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 1>>;
|
|
931
931
|
interface UpdateSectionOptions {
|
|
932
932
|
section?: {
|
|
933
933
|
/**
|
|
@@ -1113,7 +1113,7 @@ interface SectionsQueryBuilder {
|
|
|
1113
1113
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.QuerySections
|
|
1114
1114
|
* @requiredField query
|
|
1115
1115
|
*/
|
|
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`,
|
|
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>>;
|
|
1117
1117
|
interface SectionQuerySpec extends QuerySpec {
|
|
1118
1118
|
paging: 'cursor';
|
|
1119
1119
|
wql: [
|
|
@@ -1202,7 +1202,7 @@ declare const utils: {
|
|
|
1202
1202
|
* @applicableIdentity APP
|
|
1203
1203
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.ListSections
|
|
1204
1204
|
*/
|
|
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`,
|
|
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>>;
|
|
1206
1206
|
interface ListSectionsOptions {
|
|
1207
1207
|
/** Compatibility option for existing integrations. Current section responses return the section title. */
|
|
1208
1208
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
@@ -1224,7 +1224,7 @@ interface ListSectionsOptions {
|
|
|
1224
1224
|
* @applicableIdentity APP
|
|
1225
1225
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.CloneSection
|
|
1226
1226
|
*/
|
|
1227
|
-
declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`,
|
|
1227
|
+
declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
1228
1228
|
interface CloneSectionOptions {
|
|
1229
1229
|
/**
|
|
1230
1230
|
* Predefined sets of fields to return.
|
|
@@ -1244,7 +1244,7 @@ interface CloneSectionOptions {
|
|
|
1244
1244
|
* @applicableIdentity APP
|
|
1245
1245
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.MoveSection
|
|
1246
1246
|
*/
|
|
1247
|
-
declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`,
|
|
1247
|
+
declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
1248
1248
|
interface MoveSectionOptions {
|
|
1249
1249
|
/**
|
|
1250
1250
|
* ID of the section to move.
|