@wix/auto_sdk_online-programs_sections 1.0.18 → 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.
@@ -62,37 +62,11 @@ interface Section {
62
62
  extendedFields?: ExtendedFields;
63
63
  }
64
64
  interface Description extends DescriptionMediaOneOf {
65
- /**
66
- * @deprecated
67
- * @targetRemovalDate 2025-05-10
68
- */
69
- image?: string;
70
- /**
71
- * @deprecated
72
- * @targetRemovalDate 2025-05-10
73
- */
74
- video?: string;
75
65
  /** @maxLength 500 */
76
66
  title?: string;
77
- /**
78
- * @maxLength 10000000
79
- * @deprecated
80
- * @targetRemovalDate 2026-06-25
81
- */
82
- details?: string | null;
83
67
  }
84
68
  /** @oneof */
85
69
  interface DescriptionMediaOneOf {
86
- /**
87
- * @deprecated
88
- * @targetRemovalDate 2025-05-10
89
- */
90
- image?: string;
91
- /**
92
- * @deprecated
93
- * @targetRemovalDate 2025-05-10
94
- */
95
- video?: string;
96
70
  }
97
71
  interface FocalPoint {
98
72
  /** X-coordinate of the focal point. */
@@ -115,9 +89,9 @@ interface VideoResolution {
115
89
  format?: string;
116
90
  }
117
91
  declare enum State {
118
- /** the section isn't ready to be shown to participants. */
92
+ /** Retained for backward compatibility. Doesn't affect whether the section is served. */
119
93
  DRAFT = "DRAFT",
120
- /** this content is visible to participants. */
94
+ /** Default state for new sections. */
121
95
  PUBLISHED = "PUBLISHED"
122
96
  }
123
97
  /** @enumType */
@@ -988,7 +962,7 @@ interface UpdateSectionOptions {
988
962
  programId?: string;
989
963
  /** Section title and deprecated backward-compatibility content fields. */
990
964
  description?: Description;
991
- /** Publication state of the section. */
965
+ /** Publication state of the section. If omitted when creating a section, the state defaults to `PUBLISHED`. */
992
966
  state?: StateWithLiterals;
993
967
  /**
994
968
  * Legacy total number of steps in the section.