@wix/auto_sdk_online-programs_sections 1.0.0

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.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +109 -0
  2. package/build/cjs/index.js +1478 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1128 -0
  5. package/build/cjs/index.typings.js +1379 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +514 -0
  8. package/build/cjs/meta.js +1018 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +109 -0
  11. package/build/es/index.mjs +1436 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +1128 -0
  14. package/build/es/index.typings.mjs +1337 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +514 -0
  17. package/build/es/meta.mjs +981 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +109 -0
  21. package/build/internal/cjs/index.js +1478 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +1128 -0
  24. package/build/internal/cjs/index.typings.js +1379 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +514 -0
  27. package/build/internal/cjs/meta.js +1018 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +109 -0
  30. package/build/internal/es/index.mjs +1436 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +1128 -0
  33. package/build/internal/es/index.typings.mjs +1337 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +514 -0
  36. package/build/internal/es/meta.mjs +981 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,109 @@
1
+ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { Section, CreateSectionOptions, BulkCreateSectionOptions, BulkCreateSectionResponse, BulkCreateSectionMigrationResponse, GetSectionOptions, UpdateSectionOptions, QuerySectionsOptions, SectionsQueryBuilder, ListSectionsOptions, ListSectionsResponse, CloneSectionOptions, CloneSectionResponse, MoveSectionOptions, MoveSectionResponse, PublishSectionOptions, PublishSectionResponse } from './index.typings.js';
3
+ export { ActionEvent, ApplicationError, BulkActionMetadata, BulkActionType, BulkActionTypeWithLiterals, BulkCloneSectionRequest, BulkCloneSectionResponse, BulkCreateSectionMigrationRequest, BulkCreateSectionRequest, BulkSectionResult, CloneSectionRequest, CreateSectionRequest, CreateSectionResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteAllProgramSectionsRequest, DeleteAllProgramSectionsResponse, DeleteByFilterOperation, DeleteByIdsOperation, DeleteSectionRequest, DeleteSectionResponse, Description, DescriptionFieldSet, DescriptionFieldSetWithLiterals, DescriptionMediaOneOf, DocumentImage, DocumentPayload, DocumentUpdateOperation, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EnumWithLiterals, ExtendedFields, FocalPoint, GetSectionRequest, GetSectionResponse, IdentificationData, IdentificationDataIdOneOf, IndexDocument, ItemMetadata, ListSectionsRequest, MessageEnvelope, MoveSectionRequest, PublishSectionRequest, QuerySectionsRequest, QuerySectionsResponse, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, RestoreSectionFromTrashRequest, RestoreSectionFromTrashResponse, SearchIndexingNotification, SearchIndexingNotificationState, SearchIndexingNotificationStateWithLiterals, SectionCloned, SectionDeleted, SectionMoved, SectionPublished, SectionUpdated, SectionsQueryResult, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, UpdateByFilterOperation, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, UpdateExistingOperation, UpdateSectionRequest, UpdateSectionResponse, VideoResolution, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
+
5
+ declare function createSection$1(httpClient: HttpClient): CreateSectionSignature;
6
+ interface CreateSectionSignature {
7
+ /**
8
+ * Creates a Section.
9
+ * @param - Section to be created.
10
+ * @returns The created Section.
11
+ */
12
+ (section: Section, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `state` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
13
+ }
14
+ declare function bulkCreateSection$1(httpClient: HttpClient): BulkCreateSectionSignature;
15
+ interface BulkCreateSectionSignature {
16
+ /**
17
+ * Bulk Section creation.
18
+ * @param - List of sections you want to create
19
+ */
20
+ (sections: Section[], options?: BulkCreateSectionOptions): Promise<NonNullablePaths<BulkCreateSectionResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.programId` | `results.${number}.item.description.title` | `results.${number}.item.state` | `results.${number}.item.oldTotalSteps` | `results.${number}.item.trialSection` | `results.${number}.item.ordering` | `results.${number}.item.delayInDays` | `results.${number}.action` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
21
+ }
22
+ declare function bulkCreateSectionMigration$1(httpClient: HttpClient): BulkCreateSectionMigrationSignature;
23
+ interface BulkCreateSectionMigrationSignature {
24
+ /**
25
+ * Bulk Section creation for migration.
26
+ * @param - List of sections you want to create
27
+ */
28
+ (sections: Section[]): Promise<NonNullablePaths<BulkCreateSectionMigrationResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.programId` | `results.${number}.item.description.title` | `results.${number}.item.state` | `results.${number}.item.oldTotalSteps` | `results.${number}.item.trialSection` | `results.${number}.item.ordering` | `results.${number}.item.delayInDays` | `results.${number}.action` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
29
+ }
30
+ declare function getSection$1(httpClient: HttpClient): GetSectionSignature;
31
+ interface GetSectionSignature {
32
+ /**
33
+ * Retrieves a Section.
34
+ * @param - ID of the Section to retrieve.
35
+ * @returns The requested Section.
36
+ */
37
+ (sectionId: string, options?: GetSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `state` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
38
+ }
39
+ declare function updateSection$1(httpClient: HttpClient): UpdateSectionSignature;
40
+ interface UpdateSectionSignature {
41
+ /**
42
+ * Updates a Section.
43
+ * @param - Program Section ID.
44
+ * @returns Updated Section.
45
+ */
46
+ (_id: string, options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 3>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `state` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
47
+ }
48
+ declare function deleteSection$1(httpClient: HttpClient): DeleteSectionSignature;
49
+ interface DeleteSectionSignature {
50
+ /**
51
+ * Deletes a Section.
52
+ * Deleting a Section permanently removes them from the Section List.
53
+ * @param - Id of the Section to delete.
54
+ */
55
+ (sectionId: string): Promise<void>;
56
+ }
57
+ declare function querySections$1(httpClient: HttpClient): QuerySectionsSignature;
58
+ interface QuerySectionsSignature {
59
+ /**
60
+ * Retrieves a list of Sections, given the provided [paging, filtering, and sorting][1].
61
+ *
62
+ * Up to 1,000 Sections can be returned per request.
63
+ */
64
+ (options?: QuerySectionsOptions): SectionsQueryBuilder;
65
+ }
66
+ declare function listSections$1(httpClient: HttpClient): ListSectionsSignature;
67
+ interface ListSectionsSignature {
68
+ /**
69
+ * List sections per program id
70
+ * @param - Program id to list sections
71
+ */
72
+ (programId: string, options?: ListSectionsOptions): Promise<NonNullablePaths<ListSectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.state` | `sections.${number}.oldTotalSteps` | `sections.${number}.trialSection` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 5>>;
73
+ }
74
+ declare function cloneSection$1(httpClient: HttpClient): CloneSectionSignature;
75
+ interface CloneSectionSignature {
76
+ /**
77
+ * Clones section with specified id
78
+ * @param - Section to clone
79
+ */
80
+ (sectionId: string, options?: CloneSectionOptions): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.state` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
81
+ }
82
+ declare function moveSection$1(httpClient: HttpClient): MoveSectionSignature;
83
+ interface MoveSectionSignature {
84
+ /**
85
+ * Places section after specified one or inserts it in the beginning
86
+ */
87
+ (options?: MoveSectionOptions): Promise<NonNullablePaths<MoveSectionResponse, `section.programId` | `section.description.title` | `section.state` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
88
+ }
89
+ declare function publishSection$1(httpClient: HttpClient): PublishSectionSignature;
90
+ interface PublishSectionSignature {
91
+ /**
92
+ * Publishes section
93
+ */
94
+ (options?: PublishSectionOptions): Promise<NonNullablePaths<PublishSectionResponse, `section.programId` | `section.description.title` | `section.state` | `section.oldTotalSteps` | `section.trialSection` | `section.ordering` | `section.delayInDays`, 4>>;
95
+ }
96
+
97
+ declare const createSection: MaybeContext<BuildRESTFunction<typeof createSection$1> & typeof createSection$1>;
98
+ declare const bulkCreateSection: MaybeContext<BuildRESTFunction<typeof bulkCreateSection$1> & typeof bulkCreateSection$1>;
99
+ declare const bulkCreateSectionMigration: MaybeContext<BuildRESTFunction<typeof bulkCreateSectionMigration$1> & typeof bulkCreateSectionMigration$1>;
100
+ declare const getSection: MaybeContext<BuildRESTFunction<typeof getSection$1> & typeof getSection$1>;
101
+ declare const updateSection: MaybeContext<BuildRESTFunction<typeof updateSection$1> & typeof updateSection$1>;
102
+ declare const deleteSection: MaybeContext<BuildRESTFunction<typeof deleteSection$1> & typeof deleteSection$1>;
103
+ declare const querySections: MaybeContext<BuildRESTFunction<typeof querySections$1> & typeof querySections$1>;
104
+ declare const listSections: MaybeContext<BuildRESTFunction<typeof listSections$1> & typeof listSections$1>;
105
+ declare const cloneSection: MaybeContext<BuildRESTFunction<typeof cloneSection$1> & typeof cloneSection$1>;
106
+ declare const moveSection: MaybeContext<BuildRESTFunction<typeof moveSection$1> & typeof moveSection$1>;
107
+ declare const publishSection: MaybeContext<BuildRESTFunction<typeof publishSection$1> & typeof publishSection$1>;
108
+
109
+ export { BulkCreateSectionMigrationResponse, BulkCreateSectionOptions, BulkCreateSectionResponse, CloneSectionOptions, CloneSectionResponse, CreateSectionOptions, GetSectionOptions, ListSectionsOptions, ListSectionsResponse, MoveSectionOptions, MoveSectionResponse, PublishSectionOptions, PublishSectionResponse, QuerySectionsOptions, Section, SectionsQueryBuilder, UpdateSectionOptions, bulkCreateSection, bulkCreateSectionMigration, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };