diff --git a/VERSION b/VERSION index 6a51b97..95aa805 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2024.8.30 +2024.9.12 diff --git a/pyproject.toml b/pyproject.toml index c485e08..3b7520a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "open-api-clients" -version = "2024.8.30" +version = "2024.9.12" description = "" authors = [] readme = "README.md" diff --git a/src/typescript/mit-open-api-axios/package.json b/src/typescript/mit-open-api-axios/package.json index 74bfbbc..7344e39 100644 --- a/src/typescript/mit-open-api-axios/package.json +++ b/src/typescript/mit-open-api-axios/package.json @@ -1,6 +1,6 @@ { "name": "@mitodl/open-api-axios", - "version": "2024.8.30", + "version": "2024.9.12", "description": "Library for requesting data from mit-open APIs", "main": "dist/cjs/index.js", "scripts": { diff --git a/src/typescript/mit-open-api-axios/src/v0/api.ts b/src/typescript/mit-open-api-axios/src/v0/api.ts index b8faa21..c58ab37 100644 --- a/src/typescript/mit-open-api-axios/src/v0/api.ts +++ b/src/typescript/mit-open-api-axios/src/v0/api.ts @@ -170,6 +170,69 @@ export type CertificateDesiredEnum = typeof CertificateDesiredEnum[keyof typeof */ export type Channel = { channel_type: 'department' } & DepartmentChannel | { channel_type: 'pathway' } & PathwayChannel | { channel_type: 'topic' } & TopicChannel | { channel_type: 'unit' } & UnitChannel; +/** + * Serializer for resource counts associated with Channel + * @export + * @interface ChannelCounts + */ +export interface ChannelCounts { + /** + * + * @type {number} + * @memberof ChannelCounts + */ + 'id': number; + /** + * + * @type {Counts} + * @memberof ChannelCounts + */ + 'counts': Counts; + /** + * Get the URL for the channel + * @type {string} + * @memberof ChannelCounts + */ + 'channel_url': string; + /** + * + * @type {string} + * @memberof ChannelCounts + */ + 'created_on': string; + /** + * + * @type {string} + * @memberof ChannelCounts + */ + 'updated_on': string; + /** + * + * @type {string} + * @memberof ChannelCounts + */ + 'name': string; + /** + * + * @type {string} + * @memberof ChannelCounts + */ + 'title': string; + /** + * + * @type {ChannelTypeEnum} + * @memberof ChannelCounts + */ + 'channel_type': ChannelTypeEnum; + /** + * + * @type {string} + * @memberof ChannelCounts + */ + 'search_filter'?: string; +} + + /** * Write serializer for Channel. Uses primary keys for referenced objects during requests, and delegates to ChannelSerializer for responses. * @export @@ -394,6 +457,25 @@ export interface ChannelUnitDetail { */ 'unit': LearningResourceOfferorDetail; } +/** + * + * @export + * @interface Counts + */ +export interface Counts { + /** + * + * @type {number} + * @memberof Counts + */ + 'courses': number; + /** + * + * @type {number} + * @memberof Counts + */ + 'programs': number; +} /** * * `` - ---- * `Doctorate` - Doctorate * `Master\'s or professional degree` - Master\'s or professional degree * `Bachelor\'s degree` - Bachelor\'s degree * `Associate degree` - Associate degree * `Secondary/high school` - Secondary/high school * `Junior secondary/junior high/middle school` - Junior secondary/junior high/middle school * `No formal education` - No formal education * `Other education` - Other education * @export @@ -2777,6 +2859,40 @@ export type WidgetTypeEnum = typeof WidgetTypeEnum[keyof typeof WidgetTypeEnum]; */ export const ChannelsApiAxiosParamCreator = function (configuration?: Configuration) { return { + /** + * View for retrieving an individual channel by type and name + * @summary Channel Detail Lookup by channel type and name + * @param {string} channel_type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + channelsCountsList: async (channel_type: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'channel_type' is not null or undefined + assertParamExists('channelsCountsList', 'channel_type', channel_type) + const localVarPath = `/api/v0/channels/counts/{channel_type}/` + .replace(`{${"channel_type"}}`, encodeURIComponent(String(channel_type))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * CRUD Operations related to Channels. Channels may represent groups or organizations at MIT and are a high-level categorization of content. * @summary Create @@ -3122,6 +3238,19 @@ export const ChannelsApiAxiosParamCreator = function (configuration?: Configurat export const ChannelsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ChannelsApiAxiosParamCreator(configuration) return { + /** + * View for retrieving an individual channel by type and name + * @summary Channel Detail Lookup by channel type and name + * @param {string} channel_type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async channelsCountsList(channel_type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.channelsCountsList(channel_type, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ChannelsApi.channelsCountsList']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, /** * CRUD Operations related to Channels. Channels may represent groups or organizations at MIT and are a high-level categorization of content. * @summary Create @@ -3255,6 +3384,16 @@ export const ChannelsApiFp = function(configuration?: Configuration) { export const ChannelsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ChannelsApiFp(configuration) return { + /** + * View for retrieving an individual channel by type and name + * @summary Channel Detail Lookup by channel type and name + * @param {ChannelsApiChannelsCountsListRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + channelsCountsList(requestParameters: ChannelsApiChannelsCountsListRequest, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.channelsCountsList(requestParameters.channel_type, options).then((request) => request(axios, basePath)); + }, /** * CRUD Operations related to Channels. Channels may represent groups or organizations at MIT and are a high-level categorization of content. * @summary Create @@ -3348,6 +3487,20 @@ export const ChannelsApiFactory = function (configuration?: Configuration, baseP }; }; +/** + * Request parameters for channelsCountsList operation in ChannelsApi. + * @export + * @interface ChannelsApiChannelsCountsListRequest + */ +export interface ChannelsApiChannelsCountsListRequest { + /** + * + * @type {string} + * @memberof ChannelsApiChannelsCountsList + */ + readonly channel_type: string +} + /** * Request parameters for channelsCreate operation in ChannelsApi. * @export @@ -3523,6 +3676,18 @@ export interface ChannelsApiChannelsTypeRetrieveRequest { * @extends {BaseAPI} */ export class ChannelsApi extends BaseAPI { + /** + * View for retrieving an individual channel by type and name + * @summary Channel Detail Lookup by channel type and name + * @param {ChannelsApiChannelsCountsListRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ChannelsApi + */ + public channelsCountsList(requestParameters: ChannelsApiChannelsCountsListRequest, options?: RawAxiosRequestConfig) { + return ChannelsApiFp(this.configuration).channelsCountsList(requestParameters.channel_type, options).then((request) => request(this.axios, this.basePath)); + } + /** * CRUD Operations related to Channels. Channels may represent groups or organizations at MIT and are a high-level categorization of content. * @summary Create diff --git a/src/typescript/mit-open-api-axios/src/v1/api.ts b/src/typescript/mit-open-api-axios/src/v1/api.ts index 8720b6d..af2806d 100644 --- a/src/typescript/mit-open-api-axios/src/v1/api.ts +++ b/src/typescript/mit-open-api-axios/src/v1/api.ts @@ -3346,6 +3346,12 @@ export interface PercolateQuerySubscriptionRequestRequest { * @memberof PercolateQuerySubscriptionRequestRequest */ 'dev_mode'?: boolean | null; + /** + * If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes + * @type {boolean} + * @memberof PercolateQuerySubscriptionRequestRequest + */ + 'use_dfs_query_then_fetch'?: boolean | null; /** * The id value for the learning resource * @type {Array} @@ -3448,6 +3454,12 @@ export interface PercolateQuerySubscriptionRequestRequest { * @memberof PercolateQuerySubscriptionRequestRequest */ 'min_score'?: number | null; + /** + * Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. + * @type {number} + * @memberof PercolateQuerySubscriptionRequestRequest + */ + 'max_incompleteness_penalty'?: number | null; /** * * @type {SourceTypeEnum} @@ -6393,10 +6405,11 @@ export const ContentFileSearchApiAxiosParamCreator = function (configuration?: C * @param {Array} [run_id] The id value of the run that the content file belongs to * @param {ContentFileSearchRetrieveSortbyEnum} [sortby] if the parameter starts with \'-\' the sort is in descending order * `id` - id * `-id` - -id * `resource_readable_id` - resource_readable_id * `-resource_readable_id` - -resource_readable_id * @param {Array} [topic] The topic name. To see a list of options go to api/v1/topics/ + * @param {boolean | null} [use_dfs_query_then_fetch] If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes * @param {*} [options] Override http request option. * @throws {RequiredError} */ - contentFileSearchRetrieve: async (aggregations?: Array, content_feature_type?: Array, dev_mode?: boolean | null, id?: Array, limit?: number, offered_by?: Array, offset?: number, platform?: Array, q?: string, resource_id?: Array, run_id?: Array, sortby?: ContentFileSearchRetrieveSortbyEnum, topic?: Array, options: RawAxiosRequestConfig = {}): Promise => { + contentFileSearchRetrieve: async (aggregations?: Array, content_feature_type?: Array, dev_mode?: boolean | null, id?: Array, limit?: number, offered_by?: Array, offset?: number, platform?: Array, q?: string, resource_id?: Array, run_id?: Array, sortby?: ContentFileSearchRetrieveSortbyEnum, topic?: Array, use_dfs_query_then_fetch?: boolean | null, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v1/content_file_search/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -6461,6 +6474,10 @@ export const ContentFileSearchApiAxiosParamCreator = function (configuration?: C localVarQueryParameter['topic'] = topic; } + if (use_dfs_query_then_fetch !== undefined) { + localVarQueryParameter['use_dfs_query_then_fetch'] = use_dfs_query_then_fetch; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -6498,11 +6515,12 @@ export const ContentFileSearchApiFp = function(configuration?: Configuration) { * @param {Array} [run_id] The id value of the run that the content file belongs to * @param {ContentFileSearchRetrieveSortbyEnum} [sortby] if the parameter starts with \'-\' the sort is in descending order * `id` - id * `-id` - -id * `resource_readable_id` - resource_readable_id * `-resource_readable_id` - -resource_readable_id * @param {Array} [topic] The topic name. To see a list of options go to api/v1/topics/ + * @param {boolean | null} [use_dfs_query_then_fetch] If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async contentFileSearchRetrieve(aggregations?: Array, content_feature_type?: Array, dev_mode?: boolean | null, id?: Array, limit?: number, offered_by?: Array, offset?: number, platform?: Array, q?: string, resource_id?: Array, run_id?: Array, sortby?: ContentFileSearchRetrieveSortbyEnum, topic?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.contentFileSearchRetrieve(aggregations, content_feature_type, dev_mode, id, limit, offered_by, offset, platform, q, resource_id, run_id, sortby, topic, options); + async contentFileSearchRetrieve(aggregations?: Array, content_feature_type?: Array, dev_mode?: boolean | null, id?: Array, limit?: number, offered_by?: Array, offset?: number, platform?: Array, q?: string, resource_id?: Array, run_id?: Array, sortby?: ContentFileSearchRetrieveSortbyEnum, topic?: Array, use_dfs_query_then_fetch?: boolean | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.contentFileSearchRetrieve(aggregations, content_feature_type, dev_mode, id, limit, offered_by, offset, platform, q, resource_id, run_id, sortby, topic, use_dfs_query_then_fetch, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ContentFileSearchApi.contentFileSearchRetrieve']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -6525,7 +6543,7 @@ export const ContentFileSearchApiFactory = function (configuration?: Configurati * @throws {RequiredError} */ contentFileSearchRetrieve(requestParameters: ContentFileSearchApiContentFileSearchRetrieveRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.contentFileSearchRetrieve(requestParameters.aggregations, requestParameters.content_feature_type, requestParameters.dev_mode, requestParameters.id, requestParameters.limit, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.q, requestParameters.resource_id, requestParameters.run_id, requestParameters.sortby, requestParameters.topic, options).then((request) => request(axios, basePath)); + return localVarFp.contentFileSearchRetrieve(requestParameters.aggregations, requestParameters.content_feature_type, requestParameters.dev_mode, requestParameters.id, requestParameters.limit, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.q, requestParameters.resource_id, requestParameters.run_id, requestParameters.sortby, requestParameters.topic, requestParameters.use_dfs_query_then_fetch, options).then((request) => request(axios, basePath)); }, }; }; @@ -6626,6 +6644,13 @@ export interface ContentFileSearchApiContentFileSearchRetrieveRequest { * @memberof ContentFileSearchApiContentFileSearchRetrieve */ readonly topic?: Array + + /** + * If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes + * @type {boolean} + * @memberof ContentFileSearchApiContentFileSearchRetrieve + */ + readonly use_dfs_query_then_fetch?: boolean | null } /** @@ -6644,7 +6669,7 @@ export class ContentFileSearchApi extends BaseAPI { * @memberof ContentFileSearchApi */ public contentFileSearchRetrieve(requestParameters: ContentFileSearchApiContentFileSearchRetrieveRequest = {}, options?: RawAxiosRequestConfig) { - return ContentFileSearchApiFp(this.configuration).contentFileSearchRetrieve(requestParameters.aggregations, requestParameters.content_feature_type, requestParameters.dev_mode, requestParameters.id, requestParameters.limit, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.q, requestParameters.resource_id, requestParameters.run_id, requestParameters.sortby, requestParameters.topic, options).then((request) => request(this.axios, this.basePath)); + return ContentFileSearchApiFp(this.configuration).contentFileSearchRetrieve(requestParameters.aggregations, requestParameters.content_feature_type, requestParameters.dev_mode, requestParameters.id, requestParameters.limit, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.q, requestParameters.resource_id, requestParameters.run_id, requestParameters.sortby, requestParameters.topic, requestParameters.use_dfs_query_then_fetch, options).then((request) => request(this.axios, this.basePath)); } } @@ -10225,6 +10250,7 @@ export const LearningResourcesSearchApiAxiosParamCreator = function (configurati * @param {Array} [learning_format] The format(s) in which the learning resource is offered * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] * @param {number} [limit] Number of results to return per page + * @param {number | null} [max_incompleteness_penalty] Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. * @param {number | null} [min_score] Minimum score value a text query result needs to have to be displayed * @param {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @param {number} [offset] The initial index from which to return the results @@ -10237,11 +10263,12 @@ export const LearningResourcesSearchApiAxiosParamCreator = function (configurati * @param {number | null} [slop] Allowed distance for phrase search * @param {LearningResourcesSearchRetrieveSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `featured` - Featured * `id` - Object ID ascending * `-id` - Object ID descending * `readable_id` - Readable ID ascending * `-readable_id` - Readable ID descending * `last_modified` - Last Modified Date ascending * `-last_modified` - Last Modified Date descending * `new` - Newest resources first * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending * `views` - Popularity ascending * `-views` - Popularity descending * `upcoming` - Next start date ascending * @param {Array} [topic] The topic name. To see a list of options go to api/v1/topics/ + * @param {boolean | null} [use_dfs_query_then_fetch] If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes * @param {number | null} [yearly_decay_percent] Relevance score penalty percent per year for for resources without upcoming runs. Only affects results if there is a search term. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - learningResourcesSearchRetrieve: async (aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesSearchRetrieveSearchModeEnum, slop?: number | null, sortby?: LearningResourcesSearchRetrieveSortbyEnum, topic?: Array, yearly_decay_percent?: number | null, options: RawAxiosRequestConfig = {}): Promise => { + learningResourcesSearchRetrieve: async (aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, max_incompleteness_penalty?: number | null, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesSearchRetrieveSearchModeEnum, slop?: number | null, sortby?: LearningResourcesSearchRetrieveSortbyEnum, topic?: Array, use_dfs_query_then_fetch?: boolean | null, yearly_decay_percent?: number | null, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v1/learning_resources_search/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -10298,6 +10325,10 @@ export const LearningResourcesSearchApiAxiosParamCreator = function (configurati localVarQueryParameter['limit'] = limit; } + if (max_incompleteness_penalty !== undefined) { + localVarQueryParameter['max_incompleteness_penalty'] = max_incompleteness_penalty; + } + if (min_score !== undefined) { localVarQueryParameter['min_score'] = min_score; } @@ -10346,6 +10377,10 @@ export const LearningResourcesSearchApiAxiosParamCreator = function (configurati localVarQueryParameter['topic'] = topic; } + if (use_dfs_query_then_fetch !== undefined) { + localVarQueryParameter['use_dfs_query_then_fetch'] = use_dfs_query_then_fetch; + } + if (yearly_decay_percent !== undefined) { localVarQueryParameter['yearly_decay_percent'] = yearly_decay_percent; } @@ -10385,6 +10420,7 @@ export const LearningResourcesSearchApiFp = function(configuration?: Configurati * @param {Array} [learning_format] The format(s) in which the learning resource is offered * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] * @param {number} [limit] Number of results to return per page + * @param {number | null} [max_incompleteness_penalty] Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. * @param {number | null} [min_score] Minimum score value a text query result needs to have to be displayed * @param {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @param {number} [offset] The initial index from which to return the results @@ -10397,12 +10433,13 @@ export const LearningResourcesSearchApiFp = function(configuration?: Configurati * @param {number | null} [slop] Allowed distance for phrase search * @param {LearningResourcesSearchRetrieveSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `featured` - Featured * `id` - Object ID ascending * `-id` - Object ID descending * `readable_id` - Readable ID ascending * `-readable_id` - Readable ID descending * `last_modified` - Last Modified Date ascending * `-last_modified` - Last Modified Date descending * `new` - Newest resources first * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending * `views` - Popularity ascending * `-views` - Popularity descending * `upcoming` - Next start date ascending * @param {Array} [topic] The topic name. To see a list of options go to api/v1/topics/ + * @param {boolean | null} [use_dfs_query_then_fetch] If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes * @param {number | null} [yearly_decay_percent] Relevance score penalty percent per year for for resources without upcoming runs. Only affects results if there is a search term. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async learningResourcesSearchRetrieve(aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesSearchRetrieveSearchModeEnum, slop?: number | null, sortby?: LearningResourcesSearchRetrieveSortbyEnum, topic?: Array, yearly_decay_percent?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.learningResourcesSearchRetrieve(aggregations, certification, certification_type, course_feature, department, dev_mode, free, id, learning_format, level, limit, min_score, offered_by, offset, platform, professional, q, resource_category, resource_type, search_mode, slop, sortby, topic, yearly_decay_percent, options); + async learningResourcesSearchRetrieve(aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, max_incompleteness_penalty?: number | null, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesSearchRetrieveSearchModeEnum, slop?: number | null, sortby?: LearningResourcesSearchRetrieveSortbyEnum, topic?: Array, use_dfs_query_then_fetch?: boolean | null, yearly_decay_percent?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.learningResourcesSearchRetrieve(aggregations, certification, certification_type, course_feature, department, dev_mode, free, id, learning_format, level, limit, max_incompleteness_penalty, min_score, offered_by, offset, platform, professional, q, resource_category, resource_type, search_mode, slop, sortby, topic, use_dfs_query_then_fetch, yearly_decay_percent, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['LearningResourcesSearchApi.learningResourcesSearchRetrieve']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -10425,7 +10462,7 @@ export const LearningResourcesSearchApiFactory = function (configuration?: Confi * @throws {RequiredError} */ learningResourcesSearchRetrieve(requestParameters: LearningResourcesSearchApiLearningResourcesSearchRetrieveRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.learningResourcesSearchRetrieve(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.topic, requestParameters.yearly_decay_percent, options).then((request) => request(axios, basePath)); + return localVarFp.learningResourcesSearchRetrieve(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.max_incompleteness_penalty, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.topic, requestParameters.use_dfs_query_then_fetch, requestParameters.yearly_decay_percent, options).then((request) => request(axios, basePath)); }, }; }; @@ -10513,6 +10550,13 @@ export interface LearningResourcesSearchApiLearningResourcesSearchRetrieveReques */ readonly limit?: number + /** + * Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. + * @type {number} + * @memberof LearningResourcesSearchApiLearningResourcesSearchRetrieve + */ + readonly max_incompleteness_penalty?: number | null + /** * Minimum score value a text query result needs to have to be displayed * @type {number} @@ -10597,6 +10641,13 @@ export interface LearningResourcesSearchApiLearningResourcesSearchRetrieveReques */ readonly topic?: Array + /** + * If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes + * @type {boolean} + * @memberof LearningResourcesSearchApiLearningResourcesSearchRetrieve + */ + readonly use_dfs_query_then_fetch?: boolean | null + /** * Relevance score penalty percent per year for for resources without upcoming runs. Only affects results if there is a search term. * @type {number} @@ -10621,7 +10672,7 @@ export class LearningResourcesSearchApi extends BaseAPI { * @memberof LearningResourcesSearchApi */ public learningResourcesSearchRetrieve(requestParameters: LearningResourcesSearchApiLearningResourcesSearchRetrieveRequest = {}, options?: RawAxiosRequestConfig) { - return LearningResourcesSearchApiFp(this.configuration).learningResourcesSearchRetrieve(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.topic, requestParameters.yearly_decay_percent, options).then((request) => request(this.axios, this.basePath)); + return LearningResourcesSearchApiFp(this.configuration).learningResourcesSearchRetrieve(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.max_incompleteness_penalty, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.topic, requestParameters.use_dfs_query_then_fetch, requestParameters.yearly_decay_percent, options).then((request) => request(this.axios, this.basePath)); } } @@ -10829,6 +10880,7 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function (c * @param {Array} [learning_format] The format(s) in which the learning resource is offered * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] * @param {number} [limit] Number of results to return per page + * @param {number | null} [max_incompleteness_penalty] Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. * @param {number | null} [min_score] Minimum score value a text query result needs to have to be displayed * @param {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @param {number} [offset] The initial index from which to return the results @@ -10842,11 +10894,12 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function (c * @param {LearningResourcesUserSubscriptionCheckListSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `featured` - Featured * `id` - Object ID ascending * `-id` - Object ID descending * `readable_id` - Readable ID ascending * `-readable_id` - Readable ID descending * `last_modified` - Last Modified Date ascending * `-last_modified` - Last Modified Date descending * `new` - Newest resources first * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending * `views` - Popularity ascending * `-views` - Popularity descending * `upcoming` - Next start date ascending * @param {LearningResourcesUserSubscriptionCheckListSourceTypeEnum} [source_type] The subscription type * `search_subscription_type` - search_subscription_type * `channel_subscription_type` - channel_subscription_type * @param {Array} [topic] The topic name. To see a list of options go to api/v1/topics/ + * @param {boolean | null} [use_dfs_query_then_fetch] If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes * @param {number | null} [yearly_decay_percent] Relevance score penalty percent per year for for resources without upcoming runs. Only affects results if there is a search term. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - learningResourcesUserSubscriptionCheckList: async (aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesUserSubscriptionCheckListSearchModeEnum, slop?: number | null, sortby?: LearningResourcesUserSubscriptionCheckListSortbyEnum, source_type?: LearningResourcesUserSubscriptionCheckListSourceTypeEnum, topic?: Array, yearly_decay_percent?: number | null, options: RawAxiosRequestConfig = {}): Promise => { + learningResourcesUserSubscriptionCheckList: async (aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, max_incompleteness_penalty?: number | null, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesUserSubscriptionCheckListSearchModeEnum, slop?: number | null, sortby?: LearningResourcesUserSubscriptionCheckListSortbyEnum, source_type?: LearningResourcesUserSubscriptionCheckListSourceTypeEnum, topic?: Array, use_dfs_query_then_fetch?: boolean | null, yearly_decay_percent?: number | null, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v1/learning_resources_user_subscription/check/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -10903,6 +10956,10 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function (c localVarQueryParameter['limit'] = limit; } + if (max_incompleteness_penalty !== undefined) { + localVarQueryParameter['max_incompleteness_penalty'] = max_incompleteness_penalty; + } + if (min_score !== undefined) { localVarQueryParameter['min_score'] = min_score; } @@ -10955,6 +11012,10 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function (c localVarQueryParameter['topic'] = topic; } + if (use_dfs_query_then_fetch !== undefined) { + localVarQueryParameter['use_dfs_query_then_fetch'] = use_dfs_query_then_fetch; + } + if (yearly_decay_percent !== undefined) { localVarQueryParameter['yearly_decay_percent'] = yearly_decay_percent; } @@ -10984,6 +11045,7 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function (c * @param {Array} [learning_format] The format(s) in which the learning resource is offered * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] * @param {number} [limit] Number of results to return per page + * @param {number | null} [max_incompleteness_penalty] Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. * @param {number | null} [min_score] Minimum score value a text query result needs to have to be displayed * @param {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @param {number} [offset] The initial index from which to return the results @@ -10996,11 +11058,12 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function (c * @param {number | null} [slop] Allowed distance for phrase search * @param {LearningResourcesUserSubscriptionListSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `featured` - Featured * `id` - Object ID ascending * `-id` - Object ID descending * `readable_id` - Readable ID ascending * `-readable_id` - Readable ID descending * `last_modified` - Last Modified Date ascending * `-last_modified` - Last Modified Date descending * `new` - Newest resources first * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending * `views` - Popularity ascending * `-views` - Popularity descending * `upcoming` - Next start date ascending * @param {Array} [topic] The topic name. To see a list of options go to api/v1/topics/ + * @param {boolean | null} [use_dfs_query_then_fetch] If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes * @param {number | null} [yearly_decay_percent] Relevance score penalty percent per year for for resources without upcoming runs. Only affects results if there is a search term. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - learningResourcesUserSubscriptionList: async (aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesUserSubscriptionListSearchModeEnum, slop?: number | null, sortby?: LearningResourcesUserSubscriptionListSortbyEnum, topic?: Array, yearly_decay_percent?: number | null, options: RawAxiosRequestConfig = {}): Promise => { + learningResourcesUserSubscriptionList: async (aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, max_incompleteness_penalty?: number | null, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesUserSubscriptionListSearchModeEnum, slop?: number | null, sortby?: LearningResourcesUserSubscriptionListSortbyEnum, topic?: Array, use_dfs_query_then_fetch?: boolean | null, yearly_decay_percent?: number | null, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v1/learning_resources_user_subscription/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -11057,6 +11120,10 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function (c localVarQueryParameter['limit'] = limit; } + if (max_incompleteness_penalty !== undefined) { + localVarQueryParameter['max_incompleteness_penalty'] = max_incompleteness_penalty; + } + if (min_score !== undefined) { localVarQueryParameter['min_score'] = min_score; } @@ -11105,6 +11172,10 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function (c localVarQueryParameter['topic'] = topic; } + if (use_dfs_query_then_fetch !== undefined) { + localVarQueryParameter['use_dfs_query_then_fetch'] = use_dfs_query_then_fetch; + } + if (yearly_decay_percent !== undefined) { localVarQueryParameter['yearly_decay_percent'] = yearly_decay_percent; } @@ -11134,6 +11205,7 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function (c * @param {Array} [learning_format] The format(s) in which the learning resource is offered * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] * @param {number} [limit] Number of results to return per page + * @param {number | null} [max_incompleteness_penalty] Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. * @param {number | null} [min_score] Minimum score value a text query result needs to have to be displayed * @param {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @param {number} [offset] The initial index from which to return the results @@ -11147,12 +11219,13 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function (c * @param {LearningResourcesUserSubscriptionSubscribeCreateSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `featured` - Featured * `id` - Object ID ascending * `-id` - Object ID descending * `readable_id` - Readable ID ascending * `-readable_id` - Readable ID descending * `last_modified` - Last Modified Date ascending * `-last_modified` - Last Modified Date descending * `new` - Newest resources first * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending * `views` - Popularity ascending * `-views` - Popularity descending * `upcoming` - Next start date ascending * @param {LearningResourcesUserSubscriptionSubscribeCreateSourceTypeEnum} [source_type] The subscription type * `search_subscription_type` - search_subscription_type * `channel_subscription_type` - channel_subscription_type * @param {Array} [topic] The topic name. To see a list of options go to api/v1/topics/ + * @param {boolean | null} [use_dfs_query_then_fetch] If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes * @param {number | null} [yearly_decay_percent] Relevance score penalty percent per year for for resources without upcoming runs. Only affects results if there is a search term. * @param {PercolateQuerySubscriptionRequestRequest} [PercolateQuerySubscriptionRequestRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - learningResourcesUserSubscriptionSubscribeCreate: async (aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesUserSubscriptionSubscribeCreateSearchModeEnum, slop?: number | null, sortby?: LearningResourcesUserSubscriptionSubscribeCreateSortbyEnum, source_type?: LearningResourcesUserSubscriptionSubscribeCreateSourceTypeEnum, topic?: Array, yearly_decay_percent?: number | null, PercolateQuerySubscriptionRequestRequest?: PercolateQuerySubscriptionRequestRequest, options: RawAxiosRequestConfig = {}): Promise => { + learningResourcesUserSubscriptionSubscribeCreate: async (aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, max_incompleteness_penalty?: number | null, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesUserSubscriptionSubscribeCreateSearchModeEnum, slop?: number | null, sortby?: LearningResourcesUserSubscriptionSubscribeCreateSortbyEnum, source_type?: LearningResourcesUserSubscriptionSubscribeCreateSourceTypeEnum, topic?: Array, use_dfs_query_then_fetch?: boolean | null, yearly_decay_percent?: number | null, PercolateQuerySubscriptionRequestRequest?: PercolateQuerySubscriptionRequestRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v1/learning_resources_user_subscription/subscribe/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -11209,6 +11282,10 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function (c localVarQueryParameter['limit'] = limit; } + if (max_incompleteness_penalty !== undefined) { + localVarQueryParameter['max_incompleteness_penalty'] = max_incompleteness_penalty; + } + if (min_score !== undefined) { localVarQueryParameter['min_score'] = min_score; } @@ -11261,6 +11338,10 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function (c localVarQueryParameter['topic'] = topic; } + if (use_dfs_query_then_fetch !== undefined) { + localVarQueryParameter['use_dfs_query_then_fetch'] = use_dfs_query_then_fetch; + } + if (yearly_decay_percent !== undefined) { localVarQueryParameter['yearly_decay_percent'] = yearly_decay_percent; } @@ -11337,6 +11418,7 @@ export const LearningResourcesUserSubscriptionApiFp = function(configuration?: C * @param {Array} [learning_format] The format(s) in which the learning resource is offered * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] * @param {number} [limit] Number of results to return per page + * @param {number | null} [max_incompleteness_penalty] Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. * @param {number | null} [min_score] Minimum score value a text query result needs to have to be displayed * @param {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @param {number} [offset] The initial index from which to return the results @@ -11350,12 +11432,13 @@ export const LearningResourcesUserSubscriptionApiFp = function(configuration?: C * @param {LearningResourcesUserSubscriptionCheckListSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `featured` - Featured * `id` - Object ID ascending * `-id` - Object ID descending * `readable_id` - Readable ID ascending * `-readable_id` - Readable ID descending * `last_modified` - Last Modified Date ascending * `-last_modified` - Last Modified Date descending * `new` - Newest resources first * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending * `views` - Popularity ascending * `-views` - Popularity descending * `upcoming` - Next start date ascending * @param {LearningResourcesUserSubscriptionCheckListSourceTypeEnum} [source_type] The subscription type * `search_subscription_type` - search_subscription_type * `channel_subscription_type` - channel_subscription_type * @param {Array} [topic] The topic name. To see a list of options go to api/v1/topics/ + * @param {boolean | null} [use_dfs_query_then_fetch] If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes * @param {number | null} [yearly_decay_percent] Relevance score penalty percent per year for for resources without upcoming runs. Only affects results if there is a search term. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async learningResourcesUserSubscriptionCheckList(aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesUserSubscriptionCheckListSearchModeEnum, slop?: number | null, sortby?: LearningResourcesUserSubscriptionCheckListSortbyEnum, source_type?: LearningResourcesUserSubscriptionCheckListSourceTypeEnum, topic?: Array, yearly_decay_percent?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.learningResourcesUserSubscriptionCheckList(aggregations, certification, certification_type, course_feature, department, dev_mode, free, id, learning_format, level, limit, min_score, offered_by, offset, platform, professional, q, resource_category, resource_type, search_mode, slop, sortby, source_type, topic, yearly_decay_percent, options); + async learningResourcesUserSubscriptionCheckList(aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, max_incompleteness_penalty?: number | null, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesUserSubscriptionCheckListSearchModeEnum, slop?: number | null, sortby?: LearningResourcesUserSubscriptionCheckListSortbyEnum, source_type?: LearningResourcesUserSubscriptionCheckListSourceTypeEnum, topic?: Array, use_dfs_query_then_fetch?: boolean | null, yearly_decay_percent?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.learningResourcesUserSubscriptionCheckList(aggregations, certification, certification_type, course_feature, department, dev_mode, free, id, learning_format, level, limit, max_incompleteness_penalty, min_score, offered_by, offset, platform, professional, q, resource_category, resource_type, search_mode, slop, sortby, source_type, topic, use_dfs_query_then_fetch, yearly_decay_percent, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['LearningResourcesUserSubscriptionApi.learningResourcesUserSubscriptionCheckList']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -11374,6 +11457,7 @@ export const LearningResourcesUserSubscriptionApiFp = function(configuration?: C * @param {Array} [learning_format] The format(s) in which the learning resource is offered * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] * @param {number} [limit] Number of results to return per page + * @param {number | null} [max_incompleteness_penalty] Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. * @param {number | null} [min_score] Minimum score value a text query result needs to have to be displayed * @param {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @param {number} [offset] The initial index from which to return the results @@ -11386,12 +11470,13 @@ export const LearningResourcesUserSubscriptionApiFp = function(configuration?: C * @param {number | null} [slop] Allowed distance for phrase search * @param {LearningResourcesUserSubscriptionListSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `featured` - Featured * `id` - Object ID ascending * `-id` - Object ID descending * `readable_id` - Readable ID ascending * `-readable_id` - Readable ID descending * `last_modified` - Last Modified Date ascending * `-last_modified` - Last Modified Date descending * `new` - Newest resources first * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending * `views` - Popularity ascending * `-views` - Popularity descending * `upcoming` - Next start date ascending * @param {Array} [topic] The topic name. To see a list of options go to api/v1/topics/ + * @param {boolean | null} [use_dfs_query_then_fetch] If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes * @param {number | null} [yearly_decay_percent] Relevance score penalty percent per year for for resources without upcoming runs. Only affects results if there is a search term. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async learningResourcesUserSubscriptionList(aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesUserSubscriptionListSearchModeEnum, slop?: number | null, sortby?: LearningResourcesUserSubscriptionListSortbyEnum, topic?: Array, yearly_decay_percent?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.learningResourcesUserSubscriptionList(aggregations, certification, certification_type, course_feature, department, dev_mode, free, id, learning_format, level, limit, min_score, offered_by, offset, platform, professional, q, resource_category, resource_type, search_mode, slop, sortby, topic, yearly_decay_percent, options); + async learningResourcesUserSubscriptionList(aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, max_incompleteness_penalty?: number | null, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesUserSubscriptionListSearchModeEnum, slop?: number | null, sortby?: LearningResourcesUserSubscriptionListSortbyEnum, topic?: Array, use_dfs_query_then_fetch?: boolean | null, yearly_decay_percent?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.learningResourcesUserSubscriptionList(aggregations, certification, certification_type, course_feature, department, dev_mode, free, id, learning_format, level, limit, max_incompleteness_penalty, min_score, offered_by, offset, platform, professional, q, resource_category, resource_type, search_mode, slop, sortby, topic, use_dfs_query_then_fetch, yearly_decay_percent, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['LearningResourcesUserSubscriptionApi.learningResourcesUserSubscriptionList']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -11410,6 +11495,7 @@ export const LearningResourcesUserSubscriptionApiFp = function(configuration?: C * @param {Array} [learning_format] The format(s) in which the learning resource is offered * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] * @param {number} [limit] Number of results to return per page + * @param {number | null} [max_incompleteness_penalty] Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. * @param {number | null} [min_score] Minimum score value a text query result needs to have to be displayed * @param {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @param {number} [offset] The initial index from which to return the results @@ -11423,13 +11509,14 @@ export const LearningResourcesUserSubscriptionApiFp = function(configuration?: C * @param {LearningResourcesUserSubscriptionSubscribeCreateSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `featured` - Featured * `id` - Object ID ascending * `-id` - Object ID descending * `readable_id` - Readable ID ascending * `-readable_id` - Readable ID descending * `last_modified` - Last Modified Date ascending * `-last_modified` - Last Modified Date descending * `new` - Newest resources first * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending * `views` - Popularity ascending * `-views` - Popularity descending * `upcoming` - Next start date ascending * @param {LearningResourcesUserSubscriptionSubscribeCreateSourceTypeEnum} [source_type] The subscription type * `search_subscription_type` - search_subscription_type * `channel_subscription_type` - channel_subscription_type * @param {Array} [topic] The topic name. To see a list of options go to api/v1/topics/ + * @param {boolean | null} [use_dfs_query_then_fetch] If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes * @param {number | null} [yearly_decay_percent] Relevance score penalty percent per year for for resources without upcoming runs. Only affects results if there is a search term. * @param {PercolateQuerySubscriptionRequestRequest} [PercolateQuerySubscriptionRequestRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async learningResourcesUserSubscriptionSubscribeCreate(aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesUserSubscriptionSubscribeCreateSearchModeEnum, slop?: number | null, sortby?: LearningResourcesUserSubscriptionSubscribeCreateSortbyEnum, source_type?: LearningResourcesUserSubscriptionSubscribeCreateSourceTypeEnum, topic?: Array, yearly_decay_percent?: number | null, PercolateQuerySubscriptionRequestRequest?: PercolateQuerySubscriptionRequestRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.learningResourcesUserSubscriptionSubscribeCreate(aggregations, certification, certification_type, course_feature, department, dev_mode, free, id, learning_format, level, limit, min_score, offered_by, offset, platform, professional, q, resource_category, resource_type, search_mode, slop, sortby, source_type, topic, yearly_decay_percent, PercolateQuerySubscriptionRequestRequest, options); + async learningResourcesUserSubscriptionSubscribeCreate(aggregations?: Array, certification?: boolean | null, certification_type?: Array, course_feature?: Array, department?: Array, dev_mode?: boolean | null, free?: boolean | null, id?: Array, learning_format?: Array, level?: Array, limit?: number, max_incompleteness_penalty?: number | null, min_score?: number | null, offered_by?: Array, offset?: number, platform?: Array, professional?: boolean | null, q?: string, resource_category?: Array, resource_type?: Array, search_mode?: LearningResourcesUserSubscriptionSubscribeCreateSearchModeEnum, slop?: number | null, sortby?: LearningResourcesUserSubscriptionSubscribeCreateSortbyEnum, source_type?: LearningResourcesUserSubscriptionSubscribeCreateSourceTypeEnum, topic?: Array, use_dfs_query_then_fetch?: boolean | null, yearly_decay_percent?: number | null, PercolateQuerySubscriptionRequestRequest?: PercolateQuerySubscriptionRequestRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.learningResourcesUserSubscriptionSubscribeCreate(aggregations, certification, certification_type, course_feature, department, dev_mode, free, id, learning_format, level, limit, max_incompleteness_penalty, min_score, offered_by, offset, platform, professional, q, resource_category, resource_type, search_mode, slop, sortby, source_type, topic, use_dfs_query_then_fetch, yearly_decay_percent, PercolateQuerySubscriptionRequestRequest, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['LearningResourcesUserSubscriptionApi.learningResourcesUserSubscriptionSubscribeCreate']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -11465,7 +11552,7 @@ export const LearningResourcesUserSubscriptionApiFactory = function (configurati * @throws {RequiredError} */ learningResourcesUserSubscriptionCheckList(requestParameters: LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionCheckListRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { - return localVarFp.learningResourcesUserSubscriptionCheckList(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.source_type, requestParameters.topic, requestParameters.yearly_decay_percent, options).then((request) => request(axios, basePath)); + return localVarFp.learningResourcesUserSubscriptionCheckList(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.max_incompleteness_penalty, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.source_type, requestParameters.topic, requestParameters.use_dfs_query_then_fetch, requestParameters.yearly_decay_percent, options).then((request) => request(axios, basePath)); }, /** * View for listing percolate query subscriptions for a user @@ -11475,7 +11562,7 @@ export const LearningResourcesUserSubscriptionApiFactory = function (configurati * @throws {RequiredError} */ learningResourcesUserSubscriptionList(requestParameters: LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionListRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { - return localVarFp.learningResourcesUserSubscriptionList(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.topic, requestParameters.yearly_decay_percent, options).then((request) => request(axios, basePath)); + return localVarFp.learningResourcesUserSubscriptionList(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.max_incompleteness_penalty, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.topic, requestParameters.use_dfs_query_then_fetch, requestParameters.yearly_decay_percent, options).then((request) => request(axios, basePath)); }, /** * Subscribe a user to query @@ -11485,7 +11572,7 @@ export const LearningResourcesUserSubscriptionApiFactory = function (configurati * @throws {RequiredError} */ learningResourcesUserSubscriptionSubscribeCreate(requestParameters: LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionSubscribeCreateRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.learningResourcesUserSubscriptionSubscribeCreate(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.source_type, requestParameters.topic, requestParameters.yearly_decay_percent, requestParameters.PercolateQuerySubscriptionRequestRequest, options).then((request) => request(axios, basePath)); + return localVarFp.learningResourcesUserSubscriptionSubscribeCreate(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.max_incompleteness_penalty, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.source_type, requestParameters.topic, requestParameters.use_dfs_query_then_fetch, requestParameters.yearly_decay_percent, requestParameters.PercolateQuerySubscriptionRequestRequest, options).then((request) => request(axios, basePath)); }, /** * Unsubscribe a user from a query Args: pk (integer): The id of the query Returns: PercolateQuerySerializer: The percolate query @@ -11583,6 +11670,13 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr */ readonly limit?: number + /** + * Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. + * @type {number} + * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionCheckList + */ + readonly max_incompleteness_penalty?: number | null + /** * Minimum score value a text query result needs to have to be displayed * @type {number} @@ -11674,6 +11768,13 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr */ readonly topic?: Array + /** + * If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes + * @type {boolean} + * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionCheckList + */ + readonly use_dfs_query_then_fetch?: boolean | null + /** * Relevance score penalty percent per year for for resources without upcoming runs. Only affects results if there is a search term. * @type {number} @@ -11765,6 +11866,13 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr */ readonly limit?: number + /** + * Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. + * @type {number} + * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionList + */ + readonly max_incompleteness_penalty?: number | null + /** * Minimum score value a text query result needs to have to be displayed * @type {number} @@ -11849,6 +11957,13 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr */ readonly topic?: Array + /** + * If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes + * @type {boolean} + * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionList + */ + readonly use_dfs_query_then_fetch?: boolean | null + /** * Relevance score penalty percent per year for for resources without upcoming runs. Only affects results if there is a search term. * @type {number} @@ -11940,6 +12055,13 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr */ readonly limit?: number + /** + * Maximum score penalty for incomplete OCW courses in percent. An OCW course with completeness = 0 will have this score penalty. Partially complete courses have a linear penalty proportional to the degree of incompleteness. Only affects results if there is a search term. + * @type {number} + * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionSubscribeCreate + */ + readonly max_incompleteness_penalty?: number | null + /** * Minimum score value a text query result needs to have to be displayed * @type {number} @@ -12031,6 +12153,13 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr */ readonly topic?: Array + /** + * If true sets search_type=dfs_query_then_fetch which makes Opensearchmake an extra pre-query to calculate term frequencies accross indexes + * @type {boolean} + * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionSubscribeCreate + */ + readonly use_dfs_query_then_fetch?: boolean | null + /** * Relevance score penalty percent per year for for resources without upcoming runs. Only affects results if there is a search term. * @type {number} @@ -12076,7 +12205,7 @@ export class LearningResourcesUserSubscriptionApi extends BaseAPI { * @memberof LearningResourcesUserSubscriptionApi */ public learningResourcesUserSubscriptionCheckList(requestParameters: LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionCheckListRequest = {}, options?: RawAxiosRequestConfig) { - return LearningResourcesUserSubscriptionApiFp(this.configuration).learningResourcesUserSubscriptionCheckList(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.source_type, requestParameters.topic, requestParameters.yearly_decay_percent, options).then((request) => request(this.axios, this.basePath)); + return LearningResourcesUserSubscriptionApiFp(this.configuration).learningResourcesUserSubscriptionCheckList(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.max_incompleteness_penalty, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.source_type, requestParameters.topic, requestParameters.use_dfs_query_then_fetch, requestParameters.yearly_decay_percent, options).then((request) => request(this.axios, this.basePath)); } /** @@ -12088,7 +12217,7 @@ export class LearningResourcesUserSubscriptionApi extends BaseAPI { * @memberof LearningResourcesUserSubscriptionApi */ public learningResourcesUserSubscriptionList(requestParameters: LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionListRequest = {}, options?: RawAxiosRequestConfig) { - return LearningResourcesUserSubscriptionApiFp(this.configuration).learningResourcesUserSubscriptionList(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.topic, requestParameters.yearly_decay_percent, options).then((request) => request(this.axios, this.basePath)); + return LearningResourcesUserSubscriptionApiFp(this.configuration).learningResourcesUserSubscriptionList(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.max_incompleteness_penalty, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.topic, requestParameters.use_dfs_query_then_fetch, requestParameters.yearly_decay_percent, options).then((request) => request(this.axios, this.basePath)); } /** @@ -12100,7 +12229,7 @@ export class LearningResourcesUserSubscriptionApi extends BaseAPI { * @memberof LearningResourcesUserSubscriptionApi */ public learningResourcesUserSubscriptionSubscribeCreate(requestParameters: LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionSubscribeCreateRequest = {}, options?: RawAxiosRequestConfig) { - return LearningResourcesUserSubscriptionApiFp(this.configuration).learningResourcesUserSubscriptionSubscribeCreate(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.source_type, requestParameters.topic, requestParameters.yearly_decay_percent, requestParameters.PercolateQuerySubscriptionRequestRequest, options).then((request) => request(this.axios, this.basePath)); + return LearningResourcesUserSubscriptionApiFp(this.configuration).learningResourcesUserSubscriptionSubscribeCreate(requestParameters.aggregations, requestParameters.certification, requestParameters.certification_type, requestParameters.course_feature, requestParameters.department, requestParameters.dev_mode, requestParameters.free, requestParameters.id, requestParameters.learning_format, requestParameters.level, requestParameters.limit, requestParameters.max_incompleteness_penalty, requestParameters.min_score, requestParameters.offered_by, requestParameters.offset, requestParameters.platform, requestParameters.professional, requestParameters.q, requestParameters.resource_category, requestParameters.resource_type, requestParameters.search_mode, requestParameters.slop, requestParameters.sortby, requestParameters.source_type, requestParameters.topic, requestParameters.use_dfs_query_then_fetch, requestParameters.yearly_decay_percent, requestParameters.PercolateQuerySubscriptionRequestRequest, options).then((request) => request(this.axios, this.basePath)); } /**