@wix/auto_sdk_online-programs_sections 1.0.28 → 1.0.30
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 +11 -2
- package/build/cjs/index.js +10 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +17 -11
- package/build/cjs/index.typings.js +8 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +11 -2
- package/build/es/index.mjs +10 -9
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +17 -11
- package/build/es/index.typings.mjs +8 -8
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -3
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -2
- package/build/internal/cjs/index.typings.d.ts +17 -11
- package/build/internal/cjs/meta.d.ts +3 -3
- package/build/internal/es/index.d.mts +11 -2
- package/build/internal/es/index.typings.d.mts +17 -11
- package/build/internal/es/meta.d.mts +3 -3
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
|
|
|
4
4
|
/**
|
|
5
5
|
* A section groups related steps within an online program.
|
|
6
6
|
*
|
|
7
|
-
* Sections
|
|
7
|
+
* Sections have no separate draft or publish lifecycle. They can be reordered and made available after a delay counted from the program's start date for scheduled programs, or from the participant's enrollment date for self-paced programs.
|
|
8
8
|
*/
|
|
9
9
|
interface Section {
|
|
10
10
|
/**
|
|
@@ -55,7 +55,7 @@ interface Section {
|
|
|
55
55
|
* @max 5000
|
|
56
56
|
*/
|
|
57
57
|
delayInDays?: number;
|
|
58
|
-
/** Custom field data for the section. */
|
|
58
|
+
/** Custom field data for the section. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls. */
|
|
59
59
|
extendedFields?: ExtendedFields;
|
|
60
60
|
}
|
|
61
61
|
interface Description {
|
|
@@ -582,7 +582,7 @@ interface MoveSectionRequest {
|
|
|
582
582
|
* ID of the section to move.
|
|
583
583
|
* @format GUID
|
|
584
584
|
*/
|
|
585
|
-
sectionId
|
|
585
|
+
sectionId: string;
|
|
586
586
|
/**
|
|
587
587
|
* ID of the section that the moved section should be placed after. Leave empty to move the section to the beginning of the program.
|
|
588
588
|
* @format GUID
|
|
@@ -825,6 +825,8 @@ interface AccountInfo {
|
|
|
825
825
|
*
|
|
826
826
|
* The section is added to the program identified by `section.program_id`. Provide that program ID in the request. Set `section.description.title` for the section title. The stored ordering value is assigned automatically.
|
|
827
827
|
*
|
|
828
|
+
* A program can contain up to 1,000 sections. This call fails if creating the section would exceed that limit.
|
|
829
|
+
*
|
|
828
830
|
* To create multiple sections in a single API call, call [Bulk Create Sections](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/bulk-create-sections).
|
|
829
831
|
* @param section - Section to create. Must include `section.program_id`.
|
|
830
832
|
* @public
|
|
@@ -849,6 +851,8 @@ interface CreateSectionOptions {
|
|
|
849
851
|
*
|
|
850
852
|
* All sections in the request must include `program_id` and belong to the same program. Set `description.title` for each section title. The stored ordering values are assigned automatically.
|
|
851
853
|
*
|
|
854
|
+
* A program can contain up to 1,000 sections. This call fails if creating the requested sections would exceed that limit.
|
|
855
|
+
*
|
|
852
856
|
* To create a single section, call [Create Section](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/create-section).
|
|
853
857
|
* @param sections - List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
|
|
854
858
|
* @public
|
|
@@ -957,7 +961,7 @@ interface UpdateSectionOptions {
|
|
|
957
961
|
* @max 5000
|
|
958
962
|
*/
|
|
959
963
|
delayInDays?: number;
|
|
960
|
-
/** Custom field data for the section. */
|
|
964
|
+
/** Custom field data for the section. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls. */
|
|
961
965
|
extendedFields?: ExtendedFields;
|
|
962
966
|
};
|
|
963
967
|
/**
|
|
@@ -990,6 +994,7 @@ declare function deleteSection(sectionId: string): Promise<void>;
|
|
|
990
994
|
*
|
|
991
995
|
* Supported filter fields are `programId`, `id`, and `delayInDays`.
|
|
992
996
|
* Supported sorting fields are `id`, `delayInDays`, `createdDate`, and `ordering`. When sorting by a field other than `programId`, also filter by `programId`.
|
|
997
|
+
* Section extended fields aren't supported for filtering or sorting. Queries that reference them are rejected.
|
|
993
998
|
* `descriptionFieldSet` is retained for backward compatibility. Current section responses return the section title.
|
|
994
999
|
*
|
|
995
1000
|
* 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).
|
|
@@ -1202,7 +1207,11 @@ interface ListSectionsOptions {
|
|
|
1202
1207
|
/**
|
|
1203
1208
|
* Clones a section.
|
|
1204
1209
|
*
|
|
1205
|
-
* The cloned section is added to the same program after the current last section. Translation content
|
|
1210
|
+
* The cloned section is added to the same program after the current last section. Translation content and extended field data are copied to the cloned section.
|
|
1211
|
+
*
|
|
1212
|
+
* Steps are cloned asynchronously after this call returns. The `section.total_steps` value in the response may not reflect the eventual number of cloned steps. Until cloning finishes, Get, List, and Query calls may return a lower actual step count.
|
|
1213
|
+
*
|
|
1214
|
+
* A program can contain up to 1,000 sections. This call fails if cloning the section would exceed that limit.
|
|
1206
1215
|
* @param sectionId - ID of the section to clone.
|
|
1207
1216
|
* @public
|
|
1208
1217
|
* @documentationMaturity preview
|
|
@@ -1225,19 +1234,16 @@ interface CloneSectionOptions {
|
|
|
1225
1234
|
* Each time the section is updated, its `revision` increments by 1. When provided, `revision` must match the current section revision to protect against conflicting updates.
|
|
1226
1235
|
*
|
|
1227
1236
|
* If `afterSectionId` isn't specified, the section is moved to the beginning of the program. The stored ordering value is recalculated automatically.
|
|
1237
|
+
* @param sectionId - ID of the section to move.
|
|
1228
1238
|
* @public
|
|
1229
1239
|
* @documentationMaturity preview
|
|
1240
|
+
* @requiredField sectionId
|
|
1230
1241
|
* @permissionId ONLINE_PROGRAMS.SECTION_UPDATE
|
|
1231
1242
|
* @applicableIdentity APP
|
|
1232
1243
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.MoveSection
|
|
1233
1244
|
*/
|
|
1234
|
-
declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
1245
|
+
declare function moveSection(sectionId: string, options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
1235
1246
|
interface MoveSectionOptions {
|
|
1236
|
-
/**
|
|
1237
|
-
* ID of the section to move.
|
|
1238
|
-
* @format GUID
|
|
1239
|
-
*/
|
|
1240
|
-
sectionId?: string;
|
|
1241
1247
|
/**
|
|
1242
1248
|
* ID of the section that the moved section should be placed after. Leave empty to move the section to the beginning of the program.
|
|
1243
1249
|
* @format GUID
|
|
@@ -4,7 +4,7 @@ import '@wix/sdk-types';
|
|
|
4
4
|
/**
|
|
5
5
|
* A section groups related steps within an online program.
|
|
6
6
|
*
|
|
7
|
-
* Sections
|
|
7
|
+
* Sections have no separate draft or publish lifecycle. They can be reordered and made available after a delay counted from the program's start date for scheduled programs, or from the participant's enrollment date for self-paced programs.
|
|
8
8
|
*/
|
|
9
9
|
interface Section {
|
|
10
10
|
/**
|
|
@@ -55,7 +55,7 @@ interface Section {
|
|
|
55
55
|
* @max 5000
|
|
56
56
|
*/
|
|
57
57
|
delayInDays?: number;
|
|
58
|
-
/** Custom field data for the section. */
|
|
58
|
+
/** Custom field data for the section. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls. */
|
|
59
59
|
extendedFields?: ExtendedFields;
|
|
60
60
|
}
|
|
61
61
|
interface Description {
|
|
@@ -582,7 +582,7 @@ interface MoveSectionRequest {
|
|
|
582
582
|
* ID of the section to move.
|
|
583
583
|
* @format GUID
|
|
584
584
|
*/
|
|
585
|
-
sectionId
|
|
585
|
+
sectionId: string;
|
|
586
586
|
/**
|
|
587
587
|
* ID of the section that the moved section should be placed after. Leave empty to move the section to the beginning of the program.
|
|
588
588
|
* @format GUID
|
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.30",
|
|
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": "68d5d33c3ff258fed4a79a43bbdecfc678eb9f748db990a4b4b0842f"
|
|
54
54
|
}
|