@wix/auto_sdk_online-programs_sections 1.0.7 → 1.0.9
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.
- package/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +84 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +84 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +84 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +84 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
/**
|
|
@@ -1040,7 +1040,88 @@ interface SectionsQueryBuilder {
|
|
|
1040
1040
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.QuerySections
|
|
1041
1041
|
* @requiredField query
|
|
1042
1042
|
*/
|
|
1043
|
-
declare function typedQuerySections(query:
|
|
1043
|
+
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>>;
|
|
1044
|
+
interface SectionQuerySpec extends QuerySpec {
|
|
1045
|
+
paging: 'cursor';
|
|
1046
|
+
wql: [
|
|
1047
|
+
{
|
|
1048
|
+
fields: ['programId'];
|
|
1049
|
+
operators: ['$eq'];
|
|
1050
|
+
sort: 'NONE';
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
fields: ['delayInDays'];
|
|
1054
|
+
operators: ['$eq'];
|
|
1055
|
+
sort: 'BOTH';
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
fields: ['_createdDate'];
|
|
1059
|
+
operators: [];
|
|
1060
|
+
sort: 'BOTH';
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
fields: ['trialSection'];
|
|
1064
|
+
operators: ['$eq'];
|
|
1065
|
+
sort: 'NONE';
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
fields: ['_id'];
|
|
1069
|
+
operators: ['$eq', '$in', '$ne', '$nin'];
|
|
1070
|
+
sort: 'BOTH';
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
fields: ['ordering'];
|
|
1074
|
+
operators: [];
|
|
1075
|
+
sort: 'BOTH';
|
|
1076
|
+
}
|
|
1077
|
+
];
|
|
1078
|
+
}
|
|
1079
|
+
type CommonQueryWithEntityContext = Query<Section, SectionQuerySpec>;
|
|
1080
|
+
type SectionQuery = {
|
|
1081
|
+
/**
|
|
1082
|
+
Cursor paging options.
|
|
1083
|
+
|
|
1084
|
+
Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1085
|
+
*/
|
|
1086
|
+
cursorPaging?: {
|
|
1087
|
+
/**
|
|
1088
|
+
Maximum number of items to return in the results.
|
|
1089
|
+
@max: 100
|
|
1090
|
+
*/
|
|
1091
|
+
limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
|
|
1092
|
+
/**
|
|
1093
|
+
Pointer to the next or previous page in the list of results.
|
|
1094
|
+
|
|
1095
|
+
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1096
|
+
Not relevant for the first request.
|
|
1097
|
+
@maxLength: 16000
|
|
1098
|
+
*/
|
|
1099
|
+
cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
|
|
1100
|
+
};
|
|
1101
|
+
/**
|
|
1102
|
+
Filter object.
|
|
1103
|
+
|
|
1104
|
+
Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
1105
|
+
*/
|
|
1106
|
+
filter?: CommonQueryWithEntityContext['filter'] | null;
|
|
1107
|
+
/**
|
|
1108
|
+
Sort object.
|
|
1109
|
+
|
|
1110
|
+
Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
1111
|
+
@maxSize: 5
|
|
1112
|
+
*/
|
|
1113
|
+
sort?: {
|
|
1114
|
+
/**
|
|
1115
|
+
Name of the field to sort by.
|
|
1116
|
+
@maxLength: 512
|
|
1117
|
+
*/
|
|
1118
|
+
fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
|
|
1119
|
+
/**
|
|
1120
|
+
Sort order.
|
|
1121
|
+
*/
|
|
1122
|
+
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1123
|
+
}[];
|
|
1124
|
+
};
|
|
1044
1125
|
/**
|
|
1045
1126
|
* List sections per program id
|
|
1046
1127
|
* @param programId - Program id to list sections
|
|
@@ -1131,4 +1212,4 @@ interface PublishSectionOptions {
|
|
|
1131
1212
|
fields?: RequestedFieldsWithLiterals[];
|
|
1132
1213
|
}
|
|
1133
1214
|
|
|
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 };
|
|
1215
|
+
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 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 };
|