@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.
@@ -853,12 +853,13 @@ interface AccountInfo {
853
853
  * @public
854
854
  * @documentationMaturity preview
855
855
  * @requiredField section
856
+ * @requiredField section.programId
856
857
  * @permissionId ONLINE_PROGRAMS.SECTION_CREATE
857
858
  * @applicableIdentity APP
858
859
  * @returns Created section.
859
860
  * @fqn wix.onlineprograms.sections.v3.SectionsService.CreateSection
860
861
  */
861
- declare function createSection(section: Section, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
862
+ declare function createSection(section: NonNullablePaths<Section, `programId`, 2>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
862
863
  interface CreateSectionOptions {
863
864
  /**
864
865
  * Predefined sets of fields to return.
@@ -876,11 +877,12 @@ interface CreateSectionOptions {
876
877
  * @public
877
878
  * @documentationMaturity preview
878
879
  * @requiredField sections
880
+ * @requiredField sections.programId
879
881
  * @permissionId ONLINE_PROGRAMS.SECTION_CREATE
880
882
  * @applicableIdentity APP
881
883
  * @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections
882
884
  */
883
- 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>>;
885
+ 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>>;
884
886
  interface BulkCreateSectionsOptions {
885
887
  /**
886
888
  * Predefined sets of fields to return.