@wix/auto_sdk_online-programs_sections 1.0.24 → 1.0.26

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.
@@ -35,13 +35,8 @@ interface Section {
35
35
  * @immutable
36
36
  */
37
37
  programId?: string;
38
- /** Section title and deprecated backward-compatibility content fields. */
38
+ /** Section title. */
39
39
  description?: Description;
40
- /**
41
- * Legacy total number of steps in the section.
42
- * @readonly
43
- */
44
- oldTotalSteps?: number;
45
40
  /**
46
41
  * Total number of steps in the section.
47
42
  * @readonly
@@ -57,33 +52,10 @@ interface Section {
57
52
  /** Custom field data for the section. */
58
53
  extendedFields?: ExtendedFields;
59
54
  }
60
- interface Description extends DescriptionMediaOneOf {
55
+ interface Description {
61
56
  /** @maxLength 500 */
62
57
  title?: string;
63
58
  }
64
- /** @oneof */
65
- interface DescriptionMediaOneOf {
66
- }
67
- interface FocalPoint {
68
- /** X-coordinate of the focal point. */
69
- x?: number;
70
- /** Y-coordinate of the focal point. */
71
- y?: number;
72
- /** crop by height */
73
- height?: number | null;
74
- /** crop by width */
75
- width?: number | null;
76
- }
77
- interface VideoResolution {
78
- /** Video URL. */
79
- url?: string;
80
- /** Video height. */
81
- height?: number;
82
- /** Video width. */
83
- width?: number;
84
- /** Video format for example, mp4, hls. */
85
- format?: string;
86
- }
87
59
  declare enum State {
88
60
  /** Retained for backward compatibility. Doesn't affect whether the section is served. */
89
61
  DRAFT = "DRAFT",
@@ -844,7 +816,7 @@ interface AccountInfo {
844
816
  /**
845
817
  * Creates a section.
846
818
  *
847
- * 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. `section.description.details`, `section.description.image`, and `section.description.video` are deprecated backward-compatibility fields. The stored ordering value is assigned automatically.
819
+ * 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.
848
820
  *
849
821
  * 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).
850
822
  * @param section - Section to create. Must include `section.program_id`.
@@ -857,7 +829,7 @@ interface AccountInfo {
857
829
  * @returns Created section.
858
830
  * @fqn wix.onlineprograms.sections.v3.SectionsService.CreateSection
859
831
  */
860
- declare function createSection(section: NonNullablePaths<Section, `programId`, 0>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 1>>;
832
+ declare function createSection(section: NonNullablePaths<Section, `programId`, 0>, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
861
833
  interface CreateSectionOptions {
862
834
  /**
863
835
  * Predefined sets of fields to return.
@@ -868,7 +840,7 @@ interface CreateSectionOptions {
868
840
  /**
869
841
  * Creates up to 100 sections in a single API call.
870
842
  *
871
- * All sections in the request must include `program_id` and belong to the same program. Set `description.title` for each section title. `description.details`, `description.image`, and `description.video` are deprecated backward-compatibility fields. The stored ordering values are assigned automatically.
843
+ * 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.
872
844
  *
873
845
  * To create a single section, call [Create Section](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/create-section).
874
846
  * @param sections - List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
@@ -901,7 +873,7 @@ interface BulkCreateSectionsOptions {
901
873
  * @returns Retrieved section.
902
874
  * @fqn wix.onlineprograms.sections.v3.SectionsService.GetSection
903
875
  */
904
- declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 1>>;
876
+ declare function getSection(sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
905
877
  interface GetSectionOptions {
906
878
  /** Compatibility option for existing integrations. Current section responses return the section title. */
907
879
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
@@ -927,7 +899,7 @@ interface GetSectionOptions {
927
899
  * @returns Updated section.
928
900
  * @fqn wix.onlineprograms.sections.v3.SectionsService.UpdateSection
929
901
  */
930
- declare function updateSection(_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 1>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `oldTotalSteps` | `ordering` | `delayInDays`, 1>>;
902
+ declare function updateSection(_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 1>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
931
903
  interface UpdateSectionOptions {
932
904
  section?: {
933
905
  /**
@@ -958,13 +930,8 @@ interface UpdateSectionOptions {
958
930
  * @immutable
959
931
  */
960
932
  programId?: string;
961
- /** Section title and deprecated backward-compatibility content fields. */
933
+ /** Section title. */
962
934
  description?: Description;
963
- /**
964
- * Legacy total number of steps in the section.
965
- * @readonly
966
- */
967
- oldTotalSteps?: number;
968
935
  /**
969
936
  * Total number of steps in the section.
970
937
  * @readonly
@@ -1113,7 +1080,7 @@ interface SectionsQueryBuilder {
1113
1080
  * @fqn wix.onlineprograms.sections.v3.SectionsService.QuerySections
1114
1081
  * @requiredField query
1115
1082
  */
1116
- declare function typedQuerySections(query: SectionQuery, options?: QuerySectionsOptions): Promise<NonNullablePaths<QuerySectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.oldTotalSteps` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 3>>;
1083
+ declare function typedQuerySections(query: SectionQuery, options?: QuerySectionsOptions): Promise<NonNullablePaths<QuerySectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 3>>;
1117
1084
  interface SectionQuerySpec extends QuerySpec {
1118
1085
  paging: 'cursor';
1119
1086
  wql: [
@@ -1202,7 +1169,7 @@ declare const utils: {
1202
1169
  * @applicableIdentity APP
1203
1170
  * @fqn wix.onlineprograms.sections.v3.SectionsService.ListSections
1204
1171
  */
1205
- declare function listSections(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>>;
1172
+ declare function listSections(programId: string, options?: ListSectionsOptions): Promise<NonNullablePaths<ListSectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 3>>;
1206
1173
  interface ListSectionsOptions {
1207
1174
  /** Compatibility option for existing integrations. Current section responses return the section title. */
1208
1175
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
@@ -1224,7 +1191,7 @@ interface ListSectionsOptions {
1224
1191
  * @applicableIdentity APP
1225
1192
  * @fqn wix.onlineprograms.sections.v3.SectionsService.CloneSection
1226
1193
  */
1227
- declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 2>>;
1194
+ declare function cloneSection(sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
1228
1195
  interface CloneSectionOptions {
1229
1196
  /**
1230
1197
  * Predefined sets of fields to return.
@@ -1244,7 +1211,7 @@ interface CloneSectionOptions {
1244
1211
  * @applicableIdentity APP
1245
1212
  * @fqn wix.onlineprograms.sections.v3.SectionsService.MoveSection
1246
1213
  */
1247
- declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.oldTotalSteps` | `section.ordering` | `section.delayInDays`, 2>>;
1214
+ declare function moveSection(options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
1248
1215
  interface MoveSectionOptions {
1249
1216
  /**
1250
1217
  * ID of the section to move.
@@ -1265,4 +1232,4 @@ interface MoveSectionOptions {
1265
1232
  fields?: RequestedFieldsWithLiterals[];
1266
1233
  }
1267
1234
 
1268
- export { type AccountInfo, type ActionEvent, type AddressLocation, type ApplicationError, type BulkActionMetadata, BulkActionType, type BulkActionTypeWithLiterals, type BulkCloneSectionRequest, type BulkCloneSectionResponse, type BulkCreateSectionMigrationRequest, type BulkCreateSectionMigrationResponse, type BulkCreateSectionRequest, type BulkCreateSectionResponse, type BulkCreateSectionsOptions, type BulkCreateSectionsRequest, type BulkCreateSectionsResponse, type BulkSectionResult, type CloneSectionOptions, type CloneSectionRequest, type CloneSectionResponse, type CommonQueryWithEntityContext, type CreateSectionOptions, type CreateSectionRequest, type CreateSectionResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteAllProgramSectionsRequest, type DeleteAllProgramSectionsResponse, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteSectionRequest, type DeleteSectionResponse, type Description, DescriptionFieldSet, type DescriptionFieldSetWithLiterals, type DescriptionMediaOneOf, type DocumentImage, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EnumWithLiterals, type ExtendedFields, type FocalPoint, type GetSectionOptions, type GetSectionRequest, type GetSectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type IndexDocument, type ItemMetadata, type ListSectionsOptions, type ListSectionsRequest, type ListSectionsResponse, type MessageEnvelope, type MoveSectionOptions, type MoveSectionRequest, type MoveSectionResponse, type PublishSectionRequest, type PublishSectionResponse, type QuerySectionsOptions, type QuerySectionsRequest, type QuerySectionsResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type RestoreSectionFromTrashRequest, type RestoreSectionFromTrashResponse, type SearchIndexingNotification, SearchIndexingNotificationState, type SearchIndexingNotificationStateWithLiterals, type Section, type SectionCloned, type SectionDeleted, type SectionMoved, type SectionPublished, type SectionQuery, type SectionQuerySpec, type SectionUpdated, type SectionsQueryBuilder, type SectionsQueryResult, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateSectionOptions, type UpdateSectionRequest, type UpdateSectionResponse, type VideoResolution, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateSections, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, querySections, typedQuerySections, updateSection, utils };
1235
+ export { type AccountInfo, type ActionEvent, type AddressLocation, type ApplicationError, type BulkActionMetadata, BulkActionType, type BulkActionTypeWithLiterals, type BulkCloneSectionRequest, type BulkCloneSectionResponse, type BulkCreateSectionMigrationRequest, type BulkCreateSectionMigrationResponse, type BulkCreateSectionRequest, type BulkCreateSectionResponse, type BulkCreateSectionsOptions, type BulkCreateSectionsRequest, type BulkCreateSectionsResponse, type BulkSectionResult, type CloneSectionOptions, type CloneSectionRequest, type CloneSectionResponse, type CommonQueryWithEntityContext, type CreateSectionOptions, type CreateSectionRequest, type CreateSectionResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteAllProgramSectionsRequest, type DeleteAllProgramSectionsResponse, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteSectionRequest, type DeleteSectionResponse, type Description, DescriptionFieldSet, type DescriptionFieldSetWithLiterals, type DocumentImage, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EnumWithLiterals, type ExtendedFields, type GetSectionOptions, type GetSectionRequest, type GetSectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type IndexDocument, type ItemMetadata, type ListSectionsOptions, type ListSectionsRequest, type ListSectionsResponse, type MessageEnvelope, type MoveSectionOptions, type MoveSectionRequest, type MoveSectionResponse, type PublishSectionRequest, type PublishSectionResponse, type QuerySectionsOptions, type QuerySectionsRequest, type QuerySectionsResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type RestoreSectionFromTrashRequest, type RestoreSectionFromTrashResponse, type SearchIndexingNotification, SearchIndexingNotificationState, type SearchIndexingNotificationStateWithLiterals, type Section, type SectionCloned, type SectionDeleted, type SectionMoved, type SectionPublished, type SectionQuery, type SectionQuerySpec, type SectionUpdated, type SectionsQueryBuilder, type SectionsQueryResult, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateSectionOptions, type UpdateSectionRequest, type UpdateSectionResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateSections, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, querySections, typedQuerySections, updateSection, utils };