@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
package/build/cjs/index.d.ts
CHANGED
|
@@ -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`,
|
|
16
|
+
(section: NonNullablePaths<Section, `programId`, 0>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 1>>;
|
|
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: NonNullablePaths<Section, `programId`,
|
|
28
|
+
(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>>;
|
|
29
29
|
}
|
|
30
30
|
declare function getSection$1(httpClient: HttpClient): GetSectionSignature;
|
|
31
31
|
interface GetSectionSignature {
|
|
@@ -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` | `ordering` | `delayInDays`,
|
|
39
|
+
(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 1>>;
|
|
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`,
|
|
52
|
+
(_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 1>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 1>>;
|
|
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}.ordering` | `sections.${number}.delayInDays`,
|
|
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`, 3>>;
|
|
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.ordering` | `section.delayInDays`,
|
|
84
|
+
(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
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.ordering` | `section.delayInDays`,
|
|
95
|
+
(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
declare function customQuerySections(httpClient: HttpClient): {
|