@wix/auto_sdk_online-programs_sections 1.0.21 → 1.0.22
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 +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +4 -2
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +4 -2
- package/package.json +2 -2
|
@@ -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: Section, 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` | `trialSection` | `ordering` | `delayInDays`, 3>>;
|
|
17
17
|
}
|
|
18
18
|
declare function bulkCreateSections$1(httpClient: HttpClient): BulkCreateSectionsSignature;
|
|
19
19
|
interface BulkCreateSectionsSignature {
|
|
@@ -25,7 +25,7 @@ interface BulkCreateSectionsSignature {
|
|
|
25
25
|
* To create a single section, call [Create Section](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/create-section).
|
|
26
26
|
* @param - List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
|
|
27
27
|
*/
|
|
28
|
-
(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>>;
|
|
28
|
+
(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>>;
|
|
29
29
|
}
|
|
30
30
|
declare function getSection$1(httpClient: HttpClient): GetSectionSignature;
|
|
31
31
|
interface GetSectionSignature {
|
|
@@ -983,12 +983,13 @@ interface AccountInfo {
|
|
|
983
983
|
* @public
|
|
984
984
|
* @documentationMaturity preview
|
|
985
985
|
* @requiredField section
|
|
986
|
+
* @requiredField section.programId
|
|
986
987
|
* @permissionId ONLINE_PROGRAMS.SECTION_CREATE
|
|
987
988
|
* @applicableIdentity APP
|
|
988
989
|
* @returns Created section.
|
|
989
990
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.CreateSection
|
|
990
991
|
*/
|
|
991
|
-
declare function createSection(section: Section, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
|
|
992
|
+
declare function createSection(section: NonNullablePaths<Section, `programId`, 2>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
|
|
992
993
|
interface CreateSectionOptions {
|
|
993
994
|
/**
|
|
994
995
|
* Predefined sets of fields to return.
|
|
@@ -1006,11 +1007,12 @@ interface CreateSectionOptions {
|
|
|
1006
1007
|
* @public
|
|
1007
1008
|
* @documentationMaturity preview
|
|
1008
1009
|
* @requiredField sections
|
|
1010
|
+
* @requiredField sections.programId
|
|
1009
1011
|
* @permissionId ONLINE_PROGRAMS.SECTION_CREATE
|
|
1010
1012
|
* @applicableIdentity APP
|
|
1011
1013
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections
|
|
1012
1014
|
*/
|
|
1013
|
-
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>>;
|
|
1015
|
+
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>>;
|
|
1014
1016
|
interface BulkCreateSectionsOptions {
|
|
1015
1017
|
/**
|
|
1016
1018
|
* Predefined sets of fields to return.
|
|
@@ -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: Section, 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` | `trialSection` | `ordering` | `delayInDays`, 3>>;
|
|
17
17
|
}
|
|
18
18
|
declare function bulkCreateSections$1(httpClient: HttpClient): BulkCreateSectionsSignature;
|
|
19
19
|
interface BulkCreateSectionsSignature {
|
|
@@ -25,7 +25,7 @@ interface BulkCreateSectionsSignature {
|
|
|
25
25
|
* To create a single section, call [Create Section](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/create-section).
|
|
26
26
|
* @param - List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
|
|
27
27
|
*/
|
|
28
|
-
(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>>;
|
|
28
|
+
(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>>;
|
|
29
29
|
}
|
|
30
30
|
declare function getSection$1(httpClient: HttpClient): GetSectionSignature;
|
|
31
31
|
interface GetSectionSignature {
|
|
@@ -983,12 +983,13 @@ interface AccountInfo {
|
|
|
983
983
|
* @public
|
|
984
984
|
* @documentationMaturity preview
|
|
985
985
|
* @requiredField section
|
|
986
|
+
* @requiredField section.programId
|
|
986
987
|
* @permissionId ONLINE_PROGRAMS.SECTION_CREATE
|
|
987
988
|
* @applicableIdentity APP
|
|
988
989
|
* @returns Created section.
|
|
989
990
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.CreateSection
|
|
990
991
|
*/
|
|
991
|
-
declare function createSection(section: Section, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
|
|
992
|
+
declare function createSection(section: NonNullablePaths<Section, `programId`, 2>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
|
|
992
993
|
interface CreateSectionOptions {
|
|
993
994
|
/**
|
|
994
995
|
* Predefined sets of fields to return.
|
|
@@ -1006,11 +1007,12 @@ interface CreateSectionOptions {
|
|
|
1006
1007
|
* @public
|
|
1007
1008
|
* @documentationMaturity preview
|
|
1008
1009
|
* @requiredField sections
|
|
1010
|
+
* @requiredField sections.programId
|
|
1009
1011
|
* @permissionId ONLINE_PROGRAMS.SECTION_CREATE
|
|
1010
1012
|
* @applicableIdentity APP
|
|
1011
1013
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections
|
|
1012
1014
|
*/
|
|
1013
|
-
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>>;
|
|
1015
|
+
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>>;
|
|
1014
1016
|
interface BulkCreateSectionsOptions {
|
|
1015
1017
|
/**
|
|
1016
1018
|
* Predefined sets of fields to return.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_online-programs_sections",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
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": "
|
|
53
|
+
"falconPackageHash": "683ec71a6a2a4da6eb1ddac555c99fcf936d603060434c4fb9368803"
|
|
54
54
|
}
|