@wix/auto_sdk_online-programs_sections 1.0.8 → 1.0.10

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.
@@ -1,4 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
1
+ import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
3
  interface Section {
4
4
  /**
@@ -810,6 +810,23 @@ declare enum WebhookIdentityType {
810
810
  }
811
811
  /** @enumType */
812
812
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
813
+ interface AccountDetails {
814
+ /**
815
+ * ID of the account.
816
+ * @format GUID
817
+ */
818
+ accountId?: string | null;
819
+ /**
820
+ * ID of the parent account.
821
+ * @format GUID
822
+ */
823
+ parentAccountId?: string | null;
824
+ /**
825
+ * ID of the site, if applicable.
826
+ * @format GUID
827
+ */
828
+ siteId?: string | null;
829
+ }
813
830
  /**
814
831
  * Creates a Section.
815
832
  * @param section - Section to be created.
@@ -1040,7 +1057,88 @@ interface SectionsQueryBuilder {
1040
1057
  * @fqn wix.onlineprograms.sections.v3.SectionsService.QuerySections
1041
1058
  * @requiredField query
1042
1059
  */
1043
- declare function typedQuerySections(query: CursorQuery, options?: QuerySectionsOptions): Promise<NonNullablePaths<QuerySectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.state` | `sections.${number}.oldTotalSteps` | `sections.${number}.trialSection` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 5>>;
1060
+ declare function typedQuerySections(query: SectionQuery, options?: QuerySectionsOptions): Promise<NonNullablePaths<QuerySectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.state` | `sections.${number}.oldTotalSteps` | `sections.${number}.trialSection` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 5>>;
1061
+ interface SectionQuerySpec extends QuerySpec {
1062
+ paging: 'cursor';
1063
+ wql: [
1064
+ {
1065
+ fields: ['programId'];
1066
+ operators: ['$eq'];
1067
+ sort: 'NONE';
1068
+ },
1069
+ {
1070
+ fields: ['delayInDays'];
1071
+ operators: ['$eq'];
1072
+ sort: 'BOTH';
1073
+ },
1074
+ {
1075
+ fields: ['_createdDate'];
1076
+ operators: [];
1077
+ sort: 'BOTH';
1078
+ },
1079
+ {
1080
+ fields: ['trialSection'];
1081
+ operators: ['$eq'];
1082
+ sort: 'NONE';
1083
+ },
1084
+ {
1085
+ fields: ['_id'];
1086
+ operators: ['$eq', '$in', '$ne', '$nin'];
1087
+ sort: 'BOTH';
1088
+ },
1089
+ {
1090
+ fields: ['ordering'];
1091
+ operators: [];
1092
+ sort: 'BOTH';
1093
+ }
1094
+ ];
1095
+ }
1096
+ type CommonQueryWithEntityContext = Query<Section, SectionQuerySpec>;
1097
+ type SectionQuery = {
1098
+ /**
1099
+ Cursor paging options.
1100
+
1101
+ Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
1102
+ */
1103
+ cursorPaging?: {
1104
+ /**
1105
+ Maximum number of items to return in the results.
1106
+ @max: 100
1107
+ */
1108
+ limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
1109
+ /**
1110
+ Pointer to the next or previous page in the list of results.
1111
+
1112
+ Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
1113
+ Not relevant for the first request.
1114
+ @maxLength: 16000
1115
+ */
1116
+ cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
1117
+ };
1118
+ /**
1119
+ Filter object.
1120
+
1121
+ Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
1122
+ */
1123
+ filter?: CommonQueryWithEntityContext['filter'] | null;
1124
+ /**
1125
+ Sort object.
1126
+
1127
+ Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
1128
+ @maxSize: 5
1129
+ */
1130
+ sort?: {
1131
+ /**
1132
+ Name of the field to sort by.
1133
+ @maxLength: 512
1134
+ */
1135
+ fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
1136
+ /**
1137
+ Sort order.
1138
+ */
1139
+ order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
1140
+ }[];
1141
+ };
1044
1142
  /**
1045
1143
  * List sections per program id
1046
1144
  * @param programId - Program id to list sections
@@ -1131,4 +1229,4 @@ interface PublishSectionOptions {
1131
1229
  fields?: RequestedFieldsWithLiterals[];
1132
1230
  }
1133
1231
 
1134
- export { type ActionEvent, type ApplicationError, type BulkActionMetadata, BulkActionType, type BulkActionTypeWithLiterals, type BulkCloneSectionRequest, type BulkCloneSectionResponse, type BulkCreateSectionMigrationRequest, type BulkCreateSectionMigrationResponse, type BulkCreateSectionOptions, type BulkCreateSectionRequest, type BulkCreateSectionResponse, type BulkSectionResult, type CloneSectionOptions, type CloneSectionRequest, type CloneSectionResponse, 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 PublishSectionOptions, 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 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, bulkCreateSection, bulkCreateSectionMigration, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, typedQuerySections, updateSection };
1232
+ export { type AccountDetails, type ActionEvent, type ApplicationError, type BulkActionMetadata, BulkActionType, type BulkActionTypeWithLiterals, type BulkCloneSectionRequest, type BulkCloneSectionResponse, type BulkCreateSectionMigrationRequest, type BulkCreateSectionMigrationResponse, type BulkCreateSectionOptions, type BulkCreateSectionRequest, type BulkCreateSectionResponse, 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 PublishSectionOptions, 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, bulkCreateSection, bulkCreateSectionMigration, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, typedQuerySections, updateSection };