@wix/auto_sdk_online-programs_sections 1.0.19 → 1.0.20

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.
@@ -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 can be drafted, published, reordered, and optionally released after a delay from the start of the parent program.
7
+ * Sections are published when created, and can be reordered and optionally released after a delay from the start of the parent program.
8
8
  */
9
9
  interface Section {
10
10
  /**
@@ -37,7 +37,7 @@ interface Section {
37
37
  programId?: string;
38
38
  /** Section title and deprecated backward-compatibility content fields. */
39
39
  description?: Description;
40
- /** Publication state of the section. */
40
+ /** Publication state of the section. If omitted when creating a section, the state defaults to `PUBLISHED`. */
41
41
  state?: StateWithLiterals;
42
42
  /**
43
43
  * Legacy total number of steps in the section.
@@ -89,9 +89,9 @@ interface VideoResolution {
89
89
  format?: string;
90
90
  }
91
91
  declare enum State {
92
- /** the section isn't ready to be shown to participants. */
92
+ /** Retained for backward compatibility. Doesn't affect whether the section is served. */
93
93
  DRAFT = "DRAFT",
94
- /** this content is visible to participants. */
94
+ /** Default state for new sections. */
95
95
  PUBLISHED = "PUBLISHED"
96
96
  }
97
97
  /** @enumType */
@@ -962,7 +962,7 @@ interface UpdateSectionOptions {
962
962
  programId?: string;
963
963
  /** Section title and deprecated backward-compatibility content fields. */
964
964
  description?: Description;
965
- /** Publication state of the section. */
965
+ /** Publication state of the section. If omitted when creating a section, the state defaults to `PUBLISHED`. */
966
966
  state?: StateWithLiterals;
967
967
  /**
968
968
  * Legacy total number of steps in the section.