diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98b711b7a0..478ee415e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -319,36 +319,3 @@ jobs: with: name: playwright-report path: e2e_testing/playwright-report - - publish-pages: - runs-on: ubuntu-latest - - environment: - name: github-pages - - permissions: - pages: write - id-token: write - actions: read - - needs: - - build-storybook - # - e2e-tests - - steps: - - name: Download artifacts - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4 - with: - path: pages-site - - # - name: Move E2E test report - # run: mv playwright-report pages-site/ - - - name: Upload artifact - uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3 - with: - path: pages-site - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4 diff --git a/RELEASE.rst b/RELEASE.rst index 9744cddc89..e74d0d04ba 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -1,6 +1,29 @@ Release Notes ============= +Version 0.13.17 +--------------- + +- Fix default image height in resource cards (#1212) +- update unit names (#1198) +- Update opensearchproject/opensearch Docker tag to v2.15.0 (#1205) +- Update mcr.microsoft.com/playwright Docker tag to v1.45.0 (#1203) +- Update dependency ruff to v0.5.0 (#1202) +- Update Node.js to v20.15.0 (#1201) +- Shanbady/log out flow (#1199) +- update mitpe unit data (#1194) +- update sloan executive education offerings (#1193) +- adding post logout redirect to keycloak (#1192) +- stop publishing github pages every pr (#1197) +- setting 100px as default width for buttons (#1185) +- Don't display carousel tabs if there's no data to display (#1169) +- Filled vs Unfilled Bookmarks (#1180) +- Square aspect ratio for media resource images (#1183) +- Add resource category to apis (#1188) +- Scroll results into view when paginating (#1189) +- Drawer CSS fixes (#1190) +- Updates to ChoiceBox; Checkbox, Radio components (#1174) + Version 0.13.16 (Released June 28, 2024) --------------- diff --git a/authentication/views.py b/authentication/views.py index 4fcebc3392..7e8114494f 100644 --- a/authentication/views.py +++ b/authentication/views.py @@ -1,5 +1,7 @@ """Authentication views""" +from urllib.parse import urlencode + from django.conf import settings from django.contrib.auth import views from django.http import Http404 @@ -32,7 +34,13 @@ def _keycloak_logout_url(self, user): user, provider=OlOpenIdConnectAuth.name ).first() id_token = user_social_auth_record.extra_data.get("id_token") - return f"{settings.KEYCLOAK_BASE_URL}/realms/{settings.KEYCLOAK_REALM_NAME}/protocol/openid-connect/logout?id_token_hint={id_token}" # noqa: E501 + qs = urlencode( + { + "id_token_hint": id_token, + "post_logout_redirect_uri": settings.LOGOUT_REDIRECT_URL, + } + ) + return f"{settings.KEYCLOAK_BASE_URL}/realms/{settings.KEYCLOAK_REALM_NAME}/protocol/openid-connect/logout?{qs}" # noqa: E501 def get( self, diff --git a/channels/migrations/0010_alter_channel_name_regex.py b/channels/migrations/0010_alter_channel_name_regex.py new file mode 100644 index 0000000000..7d03e835d7 --- /dev/null +++ b/channels/migrations/0010_alter_channel_name_regex.py @@ -0,0 +1,29 @@ +# Generated by Django 4.2.13 on 2024-06-27 14:50 + +import django.core.validators +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("channels", "0009_rename_field_to_channel"), + ] + + operations = [ + migrations.AlterField( + model_name="channel", + name="name", + field=models.CharField( + max_length=100, + validators=[ + django.core.validators.RegexValidator( + message=( + "Channel name can only contain the characters: A-Z," + " a-z, 0-9, _" + ), + regex="^[A-Za-z0-9_-]+$", + ) + ], + ), + ), + ] diff --git a/channels/models.py b/channels/models.py index 4605346444..c56967f5a6 100644 --- a/channels/models.py +++ b/channels/models.py @@ -33,7 +33,7 @@ class Channel(TimestampedModel): max_length=100, validators=[ RegexValidator( - regex=r"^[A-Za-z0-9_]+$", + regex=r"^[A-Za-z0-9_-]+$", message=( "Channel name can only contain the characters: A-Z, a-z, 0-9, _" ), diff --git a/docker-compose.yml b/docker-compose.yml index 104ab31a7b..ea06411db5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,7 +35,7 @@ services: opensearch-node-mitopen: profiles: - backend - image: opensearchproject/opensearch:2.14.0 + image: opensearchproject/opensearch:2.15.0 container_name: opensearch-node-mitopen environment: - cluster.name=opensearch-cluster @@ -96,7 +96,7 @@ services: profiles: - frontend working_dir: /src - image: node:20.14 + image: node:20.15 entrypoint: ["/bin/sh", "-c"] command: - | diff --git a/e2e_testing/Dockerfile b/e2e_testing/Dockerfile index 51dcd32d5c..bbeb5ee1cc 100644 --- a/e2e_testing/Dockerfile +++ b/e2e_testing/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/playwright:v1.44.1-jammy +FROM mcr.microsoft.com/playwright:v1.45.0-jammy COPY . /tests diff --git a/frontends/api/src/generated/v1/api.ts b/frontends/api/src/generated/v1/api.ts index 383eb257ef..273caa2827 100644 --- a/frontends/api/src/generated/v1/api.ts +++ b/frontends/api/src/generated/v1/api.ts @@ -40,7 +40,7 @@ import { } from "./base" /** - * * `resource_type` - resource_type * `certification` - certification * `certification_type` - certification_type * `offered_by` - offered_by * `platform` - platform * `topic` - topic * `department` - department * `level` - level * `course_feature` - course_feature * `professional` - professional * `free` - free * `learning_format` - learning_format * `is_learning_material` - is_learning_material + * * `resource_type` - resource_type * `certification` - certification * `certification_type` - certification_type * `offered_by` - offered_by * `platform` - platform * `topic` - topic * `department` - department * `level` - level * `course_feature` - course_feature * `professional` - professional * `free` - free * `learning_format` - learning_format * `resource_category` - resource_category * @export * @enum {string} */ @@ -58,7 +58,7 @@ export const AggregationsEnumDescriptions = { professional: "professional", free: "free", learning_format: "learning_format", - is_learning_material: "is_learning_material", + resource_category: "resource_category", } as const export const AggregationsEnum = { @@ -111,9 +111,9 @@ export const AggregationsEnum = { */ LearningFormat: "learning_format", /** - * is_learning_material + * resource_category */ - IsLearningMaterial: "is_learning_material", + ResourceCategory: "resource_category", } as const export type AggregationsEnum = @@ -655,6 +655,12 @@ export interface CourseResource { * @memberof CourseResource */ free: boolean + /** + * Return the resource category of the resource + * @type {string} + * @memberof CourseResource + */ + resource_category: string /** * * @type {CourseResourceResourceTypeEnum} @@ -1285,6 +1291,12 @@ export interface LearningPathResource { * @memberof LearningPathResource */ free: boolean + /** + * Return the resource category of the resource + * @type {string} + * @memberof LearningPathResource + */ + resource_category: string /** * * @type {LearningPathResourceResourceTypeEnum} @@ -2416,18 +2428,18 @@ export interface MicroUserListRelationship { child: number } /** - * * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @export * @enum {string} */ export const OfferedByEnumDescriptions = { mitx: "MITx", - ocw: "OCW", + ocw: "MIT OpenCourseWare", bootcamps: "Bootcamps", - xpro: "xPRO", - mitpe: "Professional Education", - see: "Sloan Executive Education", + xpro: "MIT xPRO", + mitpe: "MIT Professional Education", + see: "MIT Sloan Executive Education", } as const export const OfferedByEnum = { @@ -2436,7 +2448,7 @@ export const OfferedByEnum = { */ Mitx: "mitx", /** - * OCW + * MIT OpenCourseWare */ Ocw: "ocw", /** @@ -2444,15 +2456,15 @@ export const OfferedByEnum = { */ Bootcamps: "bootcamps", /** - * xPRO + * MIT xPRO */ Xpro: "xpro", /** - * Professional Education + * MIT Professional Education */ Mitpe: "mitpe", /** - * Sloan Executive Education + * MIT Sloan Executive Education */ See: "see", } as const @@ -3304,13 +3316,13 @@ export interface PercolateQuerySubscriptionRequestRequest { */ limit?: number /** - * The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * 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 * @type {Array} * @memberof PercolateQuerySubscriptionRequestRequest */ offered_by?: Array /** - * The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array} * @memberof PercolateQuerySubscriptionRequestRequest */ @@ -3357,12 +3369,6 @@ export interface PercolateQuerySubscriptionRequestRequest { * @memberof PercolateQuerySubscriptionRequestRequest */ certification?: boolean | null - /** - * True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path - * @type {boolean} - * @memberof PercolateQuerySubscriptionRequestRequest - */ - is_learning_material?: boolean | null /** * The type of certificate * `micromasters` - Micromasters Credential * `professional` - Professional Certificate * `completion` - Certificate of Completion * `none` - No Certificate * @type {Array} @@ -3399,6 +3405,12 @@ export interface PercolateQuerySubscriptionRequestRequest { * @memberof PercolateQuerySubscriptionRequestRequest */ learning_format?: Array + /** + * The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array} + * @memberof PercolateQuerySubscriptionRequestRequest + */ + resource_category?: Array /** * * @type {SourceTypeEnum} @@ -3458,21 +3470,21 @@ export type PercolateQuerySubscriptionRequestResourceTypeEnum = (typeof PercolateQuerySubscriptionRequestResourceTypeEnum)[keyof typeof PercolateQuerySubscriptionRequestResourceTypeEnum] /** - * * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @export * @enum {string} */ export const PlatformEnumDescriptions = { edx: "edX", - ocw: "OCW", + ocw: "MIT OpenCourseWare", oll: "Open Learning Library", mitxonline: "MITx Online", bootcamps: "Bootcamps", - xpro: "xPRO", + xpro: "MIT xPRO", csail: "CSAIL", - mitpe: "Professional Education", - see: "Sloan Executive Education", + mitpe: "MIT Professional Education", + see: "MIT Sloan Executive Education", scc: "Schwarzman College of Computing", ctl: "Center for Transportation & Logistics", whu: "WHU", @@ -3490,7 +3502,7 @@ export const PlatformEnum = { */ Edx: "edx", /** - * OCW + * MIT OpenCourseWare */ Ocw: "ocw", /** @@ -3506,7 +3518,7 @@ export const PlatformEnum = { */ Bootcamps: "bootcamps", /** - * xPRO + * MIT xPRO */ Xpro: "xpro", /** @@ -3514,11 +3526,11 @@ export const PlatformEnum = { */ Csail: "csail", /** - * Professional Education + * MIT Professional Education */ Mitpe: "mitpe", /** - * Sloan Executive Education + * MIT Sloan Executive Education */ See: "see", /** @@ -3768,6 +3780,12 @@ export interface PodcastEpisodeResource { * @memberof PodcastEpisodeResource */ free: boolean + /** + * Return the resource category of the resource + * @type {string} + * @memberof PodcastEpisodeResource + */ + resource_category: string /** * * @type {PodcastEpisodeResourceResourceTypeEnum} @@ -4053,6 +4071,12 @@ export interface PodcastResource { * @memberof PodcastResource */ free: boolean + /** + * Return the resource category of the resource + * @type {string} + * @memberof PodcastResource + */ + resource_category: string /** * * @type {PodcastResourceResourceTypeEnum} @@ -4576,6 +4600,12 @@ export interface ProgramResource { * @memberof ProgramResource */ free: boolean + /** + * Return the resource category of the resource + * @type {string} + * @memberof ProgramResource + */ + resource_category: string /** * * @type {ProgramResourceResourceTypeEnum} @@ -4769,6 +4799,36 @@ export const RelationTypeEnum = { export type RelationTypeEnum = (typeof RelationTypeEnum)[keyof typeof RelationTypeEnum] +/** + * * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @export + * @enum {string} + */ + +export const ResourceCategoryEnumDescriptions = { + course: "Course", + program: "Program", + learning_material: "Learning Material", +} as const + +export const ResourceCategoryEnum = { + /** + * Course + */ + Course: "course", + /** + * Program + */ + Program: "program", + /** + * Learning Material + */ + LearningMaterial: "learning_material", +} as const + +export type ResourceCategoryEnum = + (typeof ResourceCategoryEnum)[keyof typeof ResourceCategoryEnum] + /** * * `course` - course * `program` - program * `learning_path` - learning_path * `podcast` - podcast * `podcast_episode` - podcast_episode * `video` - video * `video_playlist` - video_playlist * @export @@ -5268,6 +5328,12 @@ export interface VideoPlaylistResource { * @memberof VideoPlaylistResource */ free: boolean + /** + * Return the resource category of the resource + * @type {string} + * @memberof VideoPlaylistResource + */ + resource_category: string /** * * @type {VideoPlaylistResourceResourceTypeEnum} @@ -5547,6 +5613,12 @@ export interface VideoResource { * @memberof VideoResource */ free: boolean + /** + * Return the resource category of the resource + * @type {string} + * @memberof VideoResource + */ + resource_category: string /** * * @type {VideoResourceResourceTypeEnum} @@ -6415,9 +6487,9 @@ export const ContentFileSearchApiAxiosParamCreator = function ( * @param {Array} [content_feature_type] The feature type of the content file. Possible options are at api/v1/course_features/ * @param {Array} [id] The id value for the content file * @param {number} [limit] Number of results to return per page - * @param {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @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 - * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {string} [q] The search text * @param {Array} [resource_id] The id value of the parent learning resource for the content file * @param {Array} [run_id] The id value of the run that the content file belongs to @@ -6537,9 +6609,9 @@ export const ContentFileSearchApiFp = function (configuration?: Configuration) { * @param {Array} [content_feature_type] The feature type of the content file. Possible options are at api/v1/course_features/ * @param {Array} [id] The id value for the content file * @param {number} [limit] Number of results to return per page - * @param {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @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 - * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {string} [q] The search text * @param {Array} [resource_id] The id value of the parent learning resource for the content file * @param {Array} [run_id] The id value of the run that the content file belongs to @@ -6678,7 +6750,7 @@ export interface ContentFileSearchApiContentFileSearchRetrieveRequest { readonly limit?: number /** - * The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * 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 * @type {Array<'mitx' | 'ocw' | 'bootcamps' | 'xpro' | 'mitpe' | 'see'>} * @memberof ContentFileSearchApiContentFileSearchRetrieve */ @@ -6692,7 +6764,7 @@ export interface ContentFileSearchApiContentFileSearchRetrieveRequest { readonly offset?: number /** - * The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'edx' | 'ocw' | 'oll' | 'mitxonline' | 'bootcamps' | 'xpro' | 'csail' | 'mitpe' | 'see' | 'scc' | 'ctl' | 'whu' | 'susskind' | 'globalalumni' | 'simplilearn' | 'emeritus' | 'podcast' | 'youtube'>} * @memberof ContentFileSearchApiContentFileSearchRetrieve */ @@ -6848,9 +6920,9 @@ export const ContentfilesApiAxiosParamCreator = function ( * @param {number} learning_resource_id id of the parent learning resource * @param {Array} [content_feature_type] Multiple values may be separated by commas. * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `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. - * @param {Array} [platform] The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {Array} [resource_id] Multiple values may be separated by commas. * @param {Array} [run_id] Multiple values may be separated by commas. * @param {*} [options] Override http request option. @@ -7010,9 +7082,9 @@ export const ContentfilesApiFp = function (configuration?: Configuration) { * @param {number} learning_resource_id id of the parent learning resource * @param {Array} [content_feature_type] Multiple values may be separated by commas. * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `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. - * @param {Array} [platform] The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {Array} [resource_id] Multiple values may be separated by commas. * @param {Array} [run_id] Multiple values may be separated by commas. * @param {*} [options] Override http request option. @@ -7178,7 +7250,7 @@ export interface ContentfilesApiContentfilesListRequest { readonly limit?: number /** - * The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @type {Array<'bootcamps' | 'mitpe' | 'mitx' | 'ocw' | 'see' | 'xpro'>} * @memberof ContentfilesApiContentfilesList */ @@ -7192,7 +7264,7 @@ export interface ContentfilesApiContentfilesListRequest { readonly offset?: number /** - * The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro' | 'youtube'>} * @memberof ContentfilesApiContentfilesList */ @@ -7656,9 +7728,9 @@ export const CoursesApiAxiosParamCreator = function ( * @param {number} learning_resource_id id of the parent learning resource * @param {Array} [content_feature_type] Multiple values may be separated by commas. * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `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. - * @param {Array} [platform] The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {Array} [resource_id] Multiple values may be separated by commas. * @param {Array} [run_id] Multiple values may be separated by commas. * @param {*} [options] Override http request option. @@ -7814,11 +7886,12 @@ export const CoursesApiAxiosParamCreator = function ( * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {CoursesListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -7839,6 +7912,7 @@ export const CoursesApiAxiosParamCreator = function ( platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: CoursesListSortbyEnum, topic?: Array, @@ -7916,6 +7990,10 @@ export const CoursesApiAxiosParamCreator = function ( ) } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -8004,9 +8082,9 @@ export const CoursesApiFp = function (configuration?: Configuration) { * @param {number} learning_resource_id id of the parent learning resource * @param {Array} [content_feature_type] Multiple values may be separated by commas. * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `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. - * @param {Array} [platform] The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {Array} [resource_id] Multiple values may be separated by commas. * @param {Array} [run_id] Multiple values may be separated by commas. * @param {*} [options] Override http request option. @@ -8095,11 +8173,12 @@ export const CoursesApiFp = function (configuration?: Configuration) { * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {CoursesListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -8120,6 +8199,7 @@ export const CoursesApiFp = function (configuration?: Configuration) { platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: CoursesListSortbyEnum, topic?: Array, @@ -8144,6 +8224,7 @@ export const CoursesApiFp = function (configuration?: Configuration) { platform, professional, readable_id, + resource_category, resource_type, sortby, topic, @@ -8272,6 +8353,7 @@ export const CoursesApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -8325,7 +8407,7 @@ export interface CoursesApiCoursesContentfilesListRequest { readonly limit?: number /** - * The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @type {Array<'bootcamps' | 'mitpe' | 'mitx' | 'ocw' | 'see' | 'xpro'>} * @memberof CoursesApiCoursesContentfilesList */ @@ -8339,7 +8421,7 @@ export interface CoursesApiCoursesContentfilesListRequest { readonly offset?: number /** - * The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro' | 'youtube'>} * @memberof CoursesApiCoursesContentfilesList */ @@ -8444,7 +8526,7 @@ export interface CoursesApiCoursesListRequest { readonly limit?: number /** - * The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * The organization that offers a learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @type {Array<'bootcamps' | 'mitpe' | 'mitx' | 'ocw' | 'see' | 'xpro'>} * @memberof CoursesApiCoursesList */ @@ -8458,7 +8540,7 @@ export interface CoursesApiCoursesListRequest { readonly offset?: number /** - * The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro' | 'youtube'>} * @memberof CoursesApiCoursesList */ @@ -8478,6 +8560,13 @@ export interface CoursesApiCoursesListRequest { */ readonly readable_id?: Array + /** + * The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'learning_material' | 'program'>} + * @memberof CoursesApiCoursesList + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @type {Array<'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program' | 'video' | 'video_playlist'>} @@ -8596,6 +8685,7 @@ export class CoursesApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -8770,6 +8860,16 @@ export type CoursesListPlatformEnum = /** * @export */ +export const CoursesListResourceCategoryEnum = { + Course: "course", + LearningMaterial: "learning_material", + Program: "program", +} as const +export type CoursesListResourceCategoryEnum = + (typeof CoursesListResourceCategoryEnum)[keyof typeof CoursesListResourceCategoryEnum] +/** + * @export + */ export const CoursesListResourceTypeEnum = { Course: "course", LearningPath: "learning_path", @@ -9136,11 +9236,12 @@ export const FeaturedApiAxiosParamCreator = function ( * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {FeaturedListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -9161,6 +9262,7 @@ export const FeaturedApiAxiosParamCreator = function ( platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: FeaturedListSortbyEnum, topic?: Array, @@ -9238,6 +9340,10 @@ export const FeaturedApiAxiosParamCreator = function ( ) } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -9331,11 +9437,12 @@ export const FeaturedApiFp = function (configuration?: Configuration) { * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {FeaturedListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -9356,6 +9463,7 @@ export const FeaturedApiFp = function (configuration?: Configuration) { platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: FeaturedListSortbyEnum, topic?: Array, @@ -9380,6 +9488,7 @@ export const FeaturedApiFp = function (configuration?: Configuration) { platform, professional, readable_id, + resource_category, resource_type, sortby, topic, @@ -9465,6 +9574,7 @@ export const FeaturedApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -9553,7 +9663,7 @@ export interface FeaturedApiFeaturedListRequest { readonly limit?: number /** - * The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * The organization that offers a learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @type {Array<'bootcamps' | 'mitpe' | 'mitx' | 'ocw' | 'see' | 'xpro'>} * @memberof FeaturedApiFeaturedList */ @@ -9567,7 +9677,7 @@ export interface FeaturedApiFeaturedListRequest { readonly offset?: number /** - * The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro' | 'youtube'>} * @memberof FeaturedApiFeaturedList */ @@ -9587,6 +9697,13 @@ export interface FeaturedApiFeaturedListRequest { */ readonly readable_id?: Array + /** + * The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'learning_material' | 'program'>} + * @memberof FeaturedApiFeaturedList + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @type {Array<'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program' | 'video' | 'video_playlist'>} @@ -9657,6 +9774,7 @@ export class FeaturedApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -9793,6 +9911,16 @@ export type FeaturedListPlatformEnum = /** * @export */ +export const FeaturedListResourceCategoryEnum = { + Course: "course", + LearningMaterial: "learning_material", + Program: "program", +} as const +export type FeaturedListResourceCategoryEnum = + (typeof FeaturedListResourceCategoryEnum)[keyof typeof FeaturedListResourceCategoryEnum] +/** + * @export + */ export const FeaturedListResourceTypeEnum = { Course: "course", LearningPath: "learning_path", @@ -9840,9 +9968,9 @@ export const LearningResourcesApiAxiosParamCreator = function ( * @param {number} learning_resource_id id of the parent learning resource * @param {Array} [content_feature_type] Multiple values may be separated by commas. * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `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. - * @param {Array} [platform] The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {Array} [resource_id] Multiple values may be separated by commas. * @param {Array} [run_id] Multiple values may be separated by commas. * @param {*} [options] Override http request option. @@ -10124,11 +10252,12 @@ export const LearningResourcesApiAxiosParamCreator = function ( * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {LearningResourcesListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -10149,6 +10278,7 @@ export const LearningResourcesApiAxiosParamCreator = function ( platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: LearningResourcesListSortbyEnum, topic?: Array, @@ -10226,6 +10356,10 @@ export const LearningResourcesApiAxiosParamCreator = function ( ) } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -10315,9 +10449,9 @@ export const LearningResourcesApiFp = function (configuration?: Configuration) { * @param {number} learning_resource_id id of the parent learning resource * @param {Array} [content_feature_type] Multiple values may be separated by commas. * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `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. - * @param {Array} [platform] The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {Array} [resource_id] Multiple values may be separated by commas. * @param {Array} [run_id] Multiple values may be separated by commas. * @param {*} [options] Override http request option. @@ -10489,11 +10623,12 @@ export const LearningResourcesApiFp = function (configuration?: Configuration) { * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {LearningResourcesListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -10514,6 +10649,7 @@ export const LearningResourcesApiFp = function (configuration?: Configuration) { platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: LearningResourcesListSortbyEnum, topic?: Array, @@ -10539,6 +10675,7 @@ export const LearningResourcesApiFp = function (configuration?: Configuration) { platform, professional, readable_id, + resource_category, resource_type, sortby, topic, @@ -10712,6 +10849,7 @@ export const LearningResourcesApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -10765,7 +10903,7 @@ export interface LearningResourcesApiLearningResourcesContentfilesListRequest { readonly limit?: number /** - * The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @type {Array<'bootcamps' | 'mitpe' | 'mitx' | 'ocw' | 'see' | 'xpro'>} * @memberof LearningResourcesApiLearningResourcesContentfilesList */ @@ -10779,7 +10917,7 @@ export interface LearningResourcesApiLearningResourcesContentfilesListRequest { readonly offset?: number /** - * The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which learning resources the content file belongs to is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro' | 'youtube'>} * @memberof LearningResourcesApiLearningResourcesContentfilesList */ @@ -10940,7 +11078,7 @@ export interface LearningResourcesApiLearningResourcesListRequest { readonly limit?: number /** - * The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * The organization that offers a learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @type {Array<'bootcamps' | 'mitpe' | 'mitx' | 'ocw' | 'see' | 'xpro'>} * @memberof LearningResourcesApiLearningResourcesList */ @@ -10954,7 +11092,7 @@ export interface LearningResourcesApiLearningResourcesListRequest { readonly offset?: number /** - * The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro' | 'youtube'>} * @memberof LearningResourcesApiLearningResourcesList */ @@ -10974,6 +11112,13 @@ export interface LearningResourcesApiLearningResourcesListRequest { */ readonly readable_id?: Array + /** + * The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'learning_material' | 'program'>} + * @memberof LearningResourcesApiLearningResourcesList + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @type {Array<'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program' | 'video' | 'video_playlist'>} @@ -11136,6 +11281,7 @@ export class LearningResourcesApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -11310,6 +11456,16 @@ export type LearningResourcesListPlatformEnum = /** * @export */ +export const LearningResourcesListResourceCategoryEnum = { + Course: "course", + LearningMaterial: "learning_material", + Program: "program", +} as const +export type LearningResourcesListResourceCategoryEnum = + (typeof LearningResourcesListResourceCategoryEnum)[keyof typeof LearningResourcesListResourceCategoryEnum] +/** + * @export + */ export const LearningResourcesListResourceTypeEnum = { Course: "course", LearningPath: "learning_path", @@ -11361,15 +11517,15 @@ export const LearningResourcesSearchApiAxiosParamCreator = function ( * @param {Array} [department] The department that offers the learning resource * `1` - Civil and Environmental Engineering * `2` - Mechanical Engineering * `3` - Materials Science and Engineering * `4` - Architecture * `5` - Chemistry * `6` - Electrical Engineering and Computer Science * `7` - Biology * `8` - Physics * `9` - Brain and Cognitive Sciences * `10` - Chemical Engineering * `11` - Urban Studies and Planning * `12` - Earth, Atmospheric, and Planetary Sciences * `14` - Economics * `15` - Sloan School of Management * `16` - Aeronautics and Astronautics * `17` - Political Science * `18` - Mathematics * `20` - Biological Engineering * `21A` - Anthropology * `21G` - Global Studies and Languages * `21H` - History * `21L` - Literature * `21M` - Music and Theater Arts * `22` - Nuclear Science and Engineering * `24` - Linguistics and Philosophy * `CC` - Concourse * `CMS-W` - Comparative Media Studies/Writing * `EC` - Edgerton Center * `ES` - Experimental Study Group * `ESD` - Engineering Systems Division * `HST` - Health Sciences and Technology * `IDS` - Institute for Data, Systems, and Society * `MAS` - Media Arts and Sciences * `PE` - Athletics, Physical Education and Recreation * `RES` - Supplemental Resources * `STS` - Science, Technology, and Society * `WGS` - Women\'s and Gender Studies * @param {boolean | null} [free] * @param {Array} [id] The id value for the learning resource - * @param {boolean | null} [is_learning_material] True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path * @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 {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @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 - * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean | null} [professional] * @param {string} [q] The search text + * @param {Array} [resource_category] The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - course * `program` - program * `learning_path` - learning path * `podcast` - podcast * `podcast_episode` - podcast episode * `video` - video * `video_playlist` - video playlist * @param {LearningResourcesSearchRetrieveSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `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/ @@ -11384,7 +11540,6 @@ export const LearningResourcesSearchApiAxiosParamCreator = function ( department?: Array, free?: boolean | null, id?: Array, - is_learning_material?: boolean | null, learning_format?: Array, level?: Array, limit?: number, @@ -11393,6 +11548,7 @@ export const LearningResourcesSearchApiAxiosParamCreator = function ( platform?: Array, professional?: boolean | null, q?: string, + resource_category?: Array, resource_type?: Array, sortby?: LearningResourcesSearchRetrieveSortbyEnum, topic?: Array, @@ -11442,10 +11598,6 @@ export const LearningResourcesSearchApiAxiosParamCreator = function ( localVarQueryParameter["id"] = id } - if (is_learning_material !== undefined) { - localVarQueryParameter["is_learning_material"] = is_learning_material - } - if (learning_format) { localVarQueryParameter["learning_format"] = learning_format } @@ -11478,6 +11630,10 @@ export const LearningResourcesSearchApiAxiosParamCreator = function ( localVarQueryParameter["q"] = q } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -11527,15 +11683,15 @@ export const LearningResourcesSearchApiFp = function ( * @param {Array} [department] The department that offers the learning resource * `1` - Civil and Environmental Engineering * `2` - Mechanical Engineering * `3` - Materials Science and Engineering * `4` - Architecture * `5` - Chemistry * `6` - Electrical Engineering and Computer Science * `7` - Biology * `8` - Physics * `9` - Brain and Cognitive Sciences * `10` - Chemical Engineering * `11` - Urban Studies and Planning * `12` - Earth, Atmospheric, and Planetary Sciences * `14` - Economics * `15` - Sloan School of Management * `16` - Aeronautics and Astronautics * `17` - Political Science * `18` - Mathematics * `20` - Biological Engineering * `21A` - Anthropology * `21G` - Global Studies and Languages * `21H` - History * `21L` - Literature * `21M` - Music and Theater Arts * `22` - Nuclear Science and Engineering * `24` - Linguistics and Philosophy * `CC` - Concourse * `CMS-W` - Comparative Media Studies/Writing * `EC` - Edgerton Center * `ES` - Experimental Study Group * `ESD` - Engineering Systems Division * `HST` - Health Sciences and Technology * `IDS` - Institute for Data, Systems, and Society * `MAS` - Media Arts and Sciences * `PE` - Athletics, Physical Education and Recreation * `RES` - Supplemental Resources * `STS` - Science, Technology, and Society * `WGS` - Women\'s and Gender Studies * @param {boolean | null} [free] * @param {Array} [id] The id value for the learning resource - * @param {boolean | null} [is_learning_material] True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path * @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 {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @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 - * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean | null} [professional] * @param {string} [q] The search text + * @param {Array} [resource_category] The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - course * `program` - program * `learning_path` - learning path * `podcast` - podcast * `podcast_episode` - podcast episode * `video` - video * `video_playlist` - video playlist * @param {LearningResourcesSearchRetrieveSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `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/ @@ -11550,7 +11706,6 @@ export const LearningResourcesSearchApiFp = function ( department?: Array, free?: boolean | null, id?: Array, - is_learning_material?: boolean | null, learning_format?: Array, level?: Array, limit?: number, @@ -11559,6 +11714,7 @@ export const LearningResourcesSearchApiFp = function ( platform?: Array, professional?: boolean | null, q?: string, + resource_category?: Array, resource_type?: Array, sortby?: LearningResourcesSearchRetrieveSortbyEnum, topic?: Array, @@ -11578,7 +11734,6 @@ export const LearningResourcesSearchApiFp = function ( department, free, id, - is_learning_material, learning_format, level, limit, @@ -11587,6 +11742,7 @@ export const LearningResourcesSearchApiFp = function ( platform, professional, q, + resource_category, resource_type, sortby, topic, @@ -11639,7 +11795,6 @@ export const LearningResourcesSearchApiFactory = function ( requestParameters.department, requestParameters.free, requestParameters.id, - requestParameters.is_learning_material, requestParameters.learning_format, requestParameters.level, requestParameters.limit, @@ -11648,6 +11803,7 @@ export const LearningResourcesSearchApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.q, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -11666,7 +11822,7 @@ export const LearningResourcesSearchApiFactory = function ( export interface LearningResourcesSearchApiLearningResourcesSearchRetrieveRequest { /** * Show resource counts by category - * @type {Array<'resource_type' | 'certification' | 'certification_type' | 'offered_by' | 'platform' | 'topic' | 'department' | 'level' | 'course_feature' | 'professional' | 'free' | 'learning_format' | 'is_learning_material'>} + * @type {Array<'resource_type' | 'certification' | 'certification_type' | 'offered_by' | 'platform' | 'topic' | 'department' | 'level' | 'course_feature' | 'professional' | 'free' | 'learning_format' | 'resource_category'>} * @memberof LearningResourcesSearchApiLearningResourcesSearchRetrieve */ readonly aggregations?: Array @@ -11713,13 +11869,6 @@ export interface LearningResourcesSearchApiLearningResourcesSearchRetrieveReques */ readonly id?: Array - /** - * True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path - * @type {boolean} - * @memberof LearningResourcesSearchApiLearningResourcesSearchRetrieve - */ - readonly is_learning_material?: boolean | null - /** * The format(s) in which the learning resource is offered * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @type {Array<'online' | 'hybrid' | 'in_person'>} @@ -11742,7 +11891,7 @@ export interface LearningResourcesSearchApiLearningResourcesSearchRetrieveReques readonly limit?: number /** - * The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * 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 * @type {Array<'mitx' | 'ocw' | 'bootcamps' | 'xpro' | 'mitpe' | 'see'>} * @memberof LearningResourcesSearchApiLearningResourcesSearchRetrieve */ @@ -11756,7 +11905,7 @@ export interface LearningResourcesSearchApiLearningResourcesSearchRetrieveReques readonly offset?: number /** - * The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'edx' | 'ocw' | 'oll' | 'mitxonline' | 'bootcamps' | 'xpro' | 'csail' | 'mitpe' | 'see' | 'scc' | 'ctl' | 'whu' | 'susskind' | 'globalalumni' | 'simplilearn' | 'emeritus' | 'podcast' | 'youtube'>} * @memberof LearningResourcesSearchApiLearningResourcesSearchRetrieve */ @@ -11776,6 +11925,13 @@ export interface LearningResourcesSearchApiLearningResourcesSearchRetrieveReques */ readonly q?: string + /** + * The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'program' | 'learning_material'>} + * @memberof LearningResourcesSearchApiLearningResourcesSearchRetrieve + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - course * `program` - program * `learning_path` - learning path * `podcast` - podcast * `podcast_episode` - podcast episode * `video` - video * `video_playlist` - video playlist * @type {Array<'course' | 'program' | 'learning_path' | 'podcast' | 'podcast_episode' | 'video' | 'video_playlist'>} @@ -11826,7 +11982,6 @@ export class LearningResourcesSearchApi extends BaseAPI { requestParameters.department, requestParameters.free, requestParameters.id, - requestParameters.is_learning_material, requestParameters.learning_format, requestParameters.level, requestParameters.limit, @@ -11835,6 +11990,7 @@ export class LearningResourcesSearchApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.q, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -11860,7 +12016,7 @@ export const LearningResourcesSearchRetrieveAggregationsEnum = { Professional: "professional", Free: "free", LearningFormat: "learning_format", - IsLearningMaterial: "is_learning_material", + ResourceCategory: "resource_category", } as const export type LearningResourcesSearchRetrieveAggregationsEnum = (typeof LearningResourcesSearchRetrieveAggregationsEnum)[keyof typeof LearningResourcesSearchRetrieveAggregationsEnum] @@ -11984,6 +12140,16 @@ export type LearningResourcesSearchRetrievePlatformEnum = /** * @export */ +export const LearningResourcesSearchRetrieveResourceCategoryEnum = { + Course: "course", + Program: "program", + LearningMaterial: "learning_material", +} as const +export type LearningResourcesSearchRetrieveResourceCategoryEnum = + (typeof LearningResourcesSearchRetrieveResourceCategoryEnum)[keyof typeof LearningResourcesSearchRetrieveResourceCategoryEnum] +/** + * @export + */ export const LearningResourcesSearchRetrieveResourceTypeEnum = { Course: "course", Program: "program", @@ -12035,15 +12201,15 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( * @param {Array} [department] The department that offers the learning resource * `1` - Civil and Environmental Engineering * `2` - Mechanical Engineering * `3` - Materials Science and Engineering * `4` - Architecture * `5` - Chemistry * `6` - Electrical Engineering and Computer Science * `7` - Biology * `8` - Physics * `9` - Brain and Cognitive Sciences * `10` - Chemical Engineering * `11` - Urban Studies and Planning * `12` - Earth, Atmospheric, and Planetary Sciences * `14` - Economics * `15` - Sloan School of Management * `16` - Aeronautics and Astronautics * `17` - Political Science * `18` - Mathematics * `20` - Biological Engineering * `21A` - Anthropology * `21G` - Global Studies and Languages * `21H` - History * `21L` - Literature * `21M` - Music and Theater Arts * `22` - Nuclear Science and Engineering * `24` - Linguistics and Philosophy * `CC` - Concourse * `CMS-W` - Comparative Media Studies/Writing * `EC` - Edgerton Center * `ES` - Experimental Study Group * `ESD` - Engineering Systems Division * `HST` - Health Sciences and Technology * `IDS` - Institute for Data, Systems, and Society * `MAS` - Media Arts and Sciences * `PE` - Athletics, Physical Education and Recreation * `RES` - Supplemental Resources * `STS` - Science, Technology, and Society * `WGS` - Women\'s and Gender Studies * @param {boolean | null} [free] * @param {Array} [id] The id value for the learning resource - * @param {boolean | null} [is_learning_material] True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path * @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 {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @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 - * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean | null} [professional] * @param {string} [q] The search text + * @param {Array} [resource_category] The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - course * `program` - program * `learning_path` - learning path * `podcast` - podcast * `podcast_episode` - podcast episode * `video` - video * `video_playlist` - video playlist * @param {LearningResourcesUserSubscriptionCheckListSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `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 @@ -12059,7 +12225,6 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( department?: Array, free?: boolean | null, id?: Array, - is_learning_material?: boolean | null, learning_format?: Array, level?: Array, limit?: number, @@ -12068,6 +12233,7 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( platform?: Array, professional?: boolean | null, q?: string, + resource_category?: Array, resource_type?: Array, sortby?: LearningResourcesUserSubscriptionCheckListSortbyEnum, source_type?: LearningResourcesUserSubscriptionCheckListSourceTypeEnum, @@ -12118,10 +12284,6 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( localVarQueryParameter["id"] = id } - if (is_learning_material !== undefined) { - localVarQueryParameter["is_learning_material"] = is_learning_material - } - if (learning_format) { localVarQueryParameter["learning_format"] = learning_format } @@ -12154,6 +12316,10 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( localVarQueryParameter["q"] = q } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -12194,15 +12360,15 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( * @param {Array} [department] The department that offers the learning resource * `1` - Civil and Environmental Engineering * `2` - Mechanical Engineering * `3` - Materials Science and Engineering * `4` - Architecture * `5` - Chemistry * `6` - Electrical Engineering and Computer Science * `7` - Biology * `8` - Physics * `9` - Brain and Cognitive Sciences * `10` - Chemical Engineering * `11` - Urban Studies and Planning * `12` - Earth, Atmospheric, and Planetary Sciences * `14` - Economics * `15` - Sloan School of Management * `16` - Aeronautics and Astronautics * `17` - Political Science * `18` - Mathematics * `20` - Biological Engineering * `21A` - Anthropology * `21G` - Global Studies and Languages * `21H` - History * `21L` - Literature * `21M` - Music and Theater Arts * `22` - Nuclear Science and Engineering * `24` - Linguistics and Philosophy * `CC` - Concourse * `CMS-W` - Comparative Media Studies/Writing * `EC` - Edgerton Center * `ES` - Experimental Study Group * `ESD` - Engineering Systems Division * `HST` - Health Sciences and Technology * `IDS` - Institute for Data, Systems, and Society * `MAS` - Media Arts and Sciences * `PE` - Athletics, Physical Education and Recreation * `RES` - Supplemental Resources * `STS` - Science, Technology, and Society * `WGS` - Women\'s and Gender Studies * @param {boolean | null} [free] * @param {Array} [id] The id value for the learning resource - * @param {boolean | null} [is_learning_material] True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path * @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 {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @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 - * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean | null} [professional] * @param {string} [q] The search text + * @param {Array} [resource_category] The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - course * `program` - program * `learning_path` - learning path * `podcast` - podcast * `podcast_episode` - podcast episode * `video` - video * `video_playlist` - video playlist * @param {LearningResourcesUserSubscriptionListSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `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/ @@ -12217,7 +12383,6 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( department?: Array, free?: boolean | null, id?: Array, - is_learning_material?: boolean | null, learning_format?: Array, level?: Array, limit?: number, @@ -12226,6 +12391,7 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( platform?: Array, professional?: boolean | null, q?: string, + resource_category?: Array, resource_type?: Array, sortby?: LearningResourcesUserSubscriptionListSortbyEnum, topic?: Array, @@ -12275,10 +12441,6 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( localVarQueryParameter["id"] = id } - if (is_learning_material !== undefined) { - localVarQueryParameter["is_learning_material"] = is_learning_material - } - if (learning_format) { localVarQueryParameter["learning_format"] = learning_format } @@ -12311,6 +12473,10 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( localVarQueryParameter["q"] = q } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -12347,15 +12513,15 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( * @param {Array} [department] The department that offers the learning resource * `1` - Civil and Environmental Engineering * `2` - Mechanical Engineering * `3` - Materials Science and Engineering * `4` - Architecture * `5` - Chemistry * `6` - Electrical Engineering and Computer Science * `7` - Biology * `8` - Physics * `9` - Brain and Cognitive Sciences * `10` - Chemical Engineering * `11` - Urban Studies and Planning * `12` - Earth, Atmospheric, and Planetary Sciences * `14` - Economics * `15` - Sloan School of Management * `16` - Aeronautics and Astronautics * `17` - Political Science * `18` - Mathematics * `20` - Biological Engineering * `21A` - Anthropology * `21G` - Global Studies and Languages * `21H` - History * `21L` - Literature * `21M` - Music and Theater Arts * `22` - Nuclear Science and Engineering * `24` - Linguistics and Philosophy * `CC` - Concourse * `CMS-W` - Comparative Media Studies/Writing * `EC` - Edgerton Center * `ES` - Experimental Study Group * `ESD` - Engineering Systems Division * `HST` - Health Sciences and Technology * `IDS` - Institute for Data, Systems, and Society * `MAS` - Media Arts and Sciences * `PE` - Athletics, Physical Education and Recreation * `RES` - Supplemental Resources * `STS` - Science, Technology, and Society * `WGS` - Women\'s and Gender Studies * @param {boolean | null} [free] * @param {Array} [id] The id value for the learning resource - * @param {boolean | null} [is_learning_material] True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path * @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 {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @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 - * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean | null} [professional] * @param {string} [q] The search text + * @param {Array} [resource_category] The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - course * `program` - program * `learning_path` - learning path * `podcast` - podcast * `podcast_episode` - podcast episode * `video` - video * `video_playlist` - video playlist * @param {LearningResourcesUserSubscriptionSubscribeCreateSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `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 @@ -12372,7 +12538,6 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( department?: Array, free?: boolean | null, id?: Array, - is_learning_material?: boolean | null, learning_format?: Array, level?: Array, limit?: number, @@ -12381,6 +12546,7 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( platform?: Array, professional?: boolean | null, q?: string, + resource_category?: Array, resource_type?: Array, sortby?: LearningResourcesUserSubscriptionSubscribeCreateSortbyEnum, source_type?: LearningResourcesUserSubscriptionSubscribeCreateSourceTypeEnum, @@ -12432,10 +12598,6 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( localVarQueryParameter["id"] = id } - if (is_learning_material !== undefined) { - localVarQueryParameter["is_learning_material"] = is_learning_material - } - if (learning_format) { localVarQueryParameter["learning_format"] = learning_format } @@ -12468,6 +12630,10 @@ export const LearningResourcesUserSubscriptionApiAxiosParamCreator = function ( localVarQueryParameter["q"] = q } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -12579,15 +12745,15 @@ export const LearningResourcesUserSubscriptionApiFp = function ( * @param {Array} [department] The department that offers the learning resource * `1` - Civil and Environmental Engineering * `2` - Mechanical Engineering * `3` - Materials Science and Engineering * `4` - Architecture * `5` - Chemistry * `6` - Electrical Engineering and Computer Science * `7` - Biology * `8` - Physics * `9` - Brain and Cognitive Sciences * `10` - Chemical Engineering * `11` - Urban Studies and Planning * `12` - Earth, Atmospheric, and Planetary Sciences * `14` - Economics * `15` - Sloan School of Management * `16` - Aeronautics and Astronautics * `17` - Political Science * `18` - Mathematics * `20` - Biological Engineering * `21A` - Anthropology * `21G` - Global Studies and Languages * `21H` - History * `21L` - Literature * `21M` - Music and Theater Arts * `22` - Nuclear Science and Engineering * `24` - Linguistics and Philosophy * `CC` - Concourse * `CMS-W` - Comparative Media Studies/Writing * `EC` - Edgerton Center * `ES` - Experimental Study Group * `ESD` - Engineering Systems Division * `HST` - Health Sciences and Technology * `IDS` - Institute for Data, Systems, and Society * `MAS` - Media Arts and Sciences * `PE` - Athletics, Physical Education and Recreation * `RES` - Supplemental Resources * `STS` - Science, Technology, and Society * `WGS` - Women\'s and Gender Studies * @param {boolean | null} [free] * @param {Array} [id] The id value for the learning resource - * @param {boolean | null} [is_learning_material] True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path * @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 {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @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 - * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean | null} [professional] * @param {string} [q] The search text + * @param {Array} [resource_category] The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - course * `program` - program * `learning_path` - learning path * `podcast` - podcast * `podcast_episode` - podcast episode * `video` - video * `video_playlist` - video playlist * @param {LearningResourcesUserSubscriptionCheckListSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `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 @@ -12603,7 +12769,6 @@ export const LearningResourcesUserSubscriptionApiFp = function ( department?: Array, free?: boolean | null, id?: Array, - is_learning_material?: boolean | null, learning_format?: Array, level?: Array, limit?: number, @@ -12612,6 +12777,7 @@ export const LearningResourcesUserSubscriptionApiFp = function ( platform?: Array, professional?: boolean | null, q?: string, + resource_category?: Array, resource_type?: Array, sortby?: LearningResourcesUserSubscriptionCheckListSortbyEnum, source_type?: LearningResourcesUserSubscriptionCheckListSourceTypeEnum, @@ -12632,7 +12798,6 @@ export const LearningResourcesUserSubscriptionApiFp = function ( department, free, id, - is_learning_material, learning_format, level, limit, @@ -12641,6 +12806,7 @@ export const LearningResourcesUserSubscriptionApiFp = function ( platform, professional, q, + resource_category, resource_type, sortby, source_type, @@ -12670,15 +12836,15 @@ export const LearningResourcesUserSubscriptionApiFp = function ( * @param {Array} [department] The department that offers the learning resource * `1` - Civil and Environmental Engineering * `2` - Mechanical Engineering * `3` - Materials Science and Engineering * `4` - Architecture * `5` - Chemistry * `6` - Electrical Engineering and Computer Science * `7` - Biology * `8` - Physics * `9` - Brain and Cognitive Sciences * `10` - Chemical Engineering * `11` - Urban Studies and Planning * `12` - Earth, Atmospheric, and Planetary Sciences * `14` - Economics * `15` - Sloan School of Management * `16` - Aeronautics and Astronautics * `17` - Political Science * `18` - Mathematics * `20` - Biological Engineering * `21A` - Anthropology * `21G` - Global Studies and Languages * `21H` - History * `21L` - Literature * `21M` - Music and Theater Arts * `22` - Nuclear Science and Engineering * `24` - Linguistics and Philosophy * `CC` - Concourse * `CMS-W` - Comparative Media Studies/Writing * `EC` - Edgerton Center * `ES` - Experimental Study Group * `ESD` - Engineering Systems Division * `HST` - Health Sciences and Technology * `IDS` - Institute for Data, Systems, and Society * `MAS` - Media Arts and Sciences * `PE` - Athletics, Physical Education and Recreation * `RES` - Supplemental Resources * `STS` - Science, Technology, and Society * `WGS` - Women\'s and Gender Studies * @param {boolean | null} [free] * @param {Array} [id] The id value for the learning resource - * @param {boolean | null} [is_learning_material] True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path * @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 {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @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 - * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean | null} [professional] * @param {string} [q] The search text + * @param {Array} [resource_category] The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - course * `program` - program * `learning_path` - learning path * `podcast` - podcast * `podcast_episode` - podcast episode * `video` - video * `video_playlist` - video playlist * @param {LearningResourcesUserSubscriptionListSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `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/ @@ -12693,7 +12859,6 @@ export const LearningResourcesUserSubscriptionApiFp = function ( department?: Array, free?: boolean | null, id?: Array, - is_learning_material?: boolean | null, learning_format?: Array, level?: Array, limit?: number, @@ -12702,6 +12867,7 @@ export const LearningResourcesUserSubscriptionApiFp = function ( platform?: Array, professional?: boolean | null, q?: string, + resource_category?: Array, resource_type?: Array, sortby?: LearningResourcesUserSubscriptionListSortbyEnum, topic?: Array, @@ -12721,7 +12887,6 @@ export const LearningResourcesUserSubscriptionApiFp = function ( department, free, id, - is_learning_material, learning_format, level, limit, @@ -12730,6 +12895,7 @@ export const LearningResourcesUserSubscriptionApiFp = function ( platform, professional, q, + resource_category, resource_type, sortby, topic, @@ -12758,15 +12924,15 @@ export const LearningResourcesUserSubscriptionApiFp = function ( * @param {Array} [department] The department that offers the learning resource * `1` - Civil and Environmental Engineering * `2` - Mechanical Engineering * `3` - Materials Science and Engineering * `4` - Architecture * `5` - Chemistry * `6` - Electrical Engineering and Computer Science * `7` - Biology * `8` - Physics * `9` - Brain and Cognitive Sciences * `10` - Chemical Engineering * `11` - Urban Studies and Planning * `12` - Earth, Atmospheric, and Planetary Sciences * `14` - Economics * `15` - Sloan School of Management * `16` - Aeronautics and Astronautics * `17` - Political Science * `18` - Mathematics * `20` - Biological Engineering * `21A` - Anthropology * `21G` - Global Studies and Languages * `21H` - History * `21L` - Literature * `21M` - Music and Theater Arts * `22` - Nuclear Science and Engineering * `24` - Linguistics and Philosophy * `CC` - Concourse * `CMS-W` - Comparative Media Studies/Writing * `EC` - Edgerton Center * `ES` - Experimental Study Group * `ESD` - Engineering Systems Division * `HST` - Health Sciences and Technology * `IDS` - Institute for Data, Systems, and Society * `MAS` - Media Arts and Sciences * `PE` - Athletics, Physical Education and Recreation * `RES` - Supplemental Resources * `STS` - Science, Technology, and Society * `WGS` - Women\'s and Gender Studies * @param {boolean | null} [free] * @param {Array} [id] The id value for the learning resource - * @param {boolean | null} [is_learning_material] True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path * @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 {Array} [offered_by] The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @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 - * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean | null} [professional] * @param {string} [q] The search text + * @param {Array} [resource_category] The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - course * `program` - program * `learning_path` - learning path * `podcast` - podcast * `podcast_episode` - podcast episode * `video` - video * `video_playlist` - video playlist * @param {LearningResourcesUserSubscriptionSubscribeCreateSortbyEnum} [sortby] If the parameter starts with \'-\' the sort is in descending order * `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 @@ -12783,7 +12949,6 @@ export const LearningResourcesUserSubscriptionApiFp = function ( department?: Array, free?: boolean | null, id?: Array, - is_learning_material?: boolean | null, learning_format?: Array, level?: Array, limit?: number, @@ -12792,6 +12957,7 @@ export const LearningResourcesUserSubscriptionApiFp = function ( platform?: Array, professional?: boolean | null, q?: string, + resource_category?: Array, resource_type?: Array, sortby?: LearningResourcesUserSubscriptionSubscribeCreateSortbyEnum, source_type?: LearningResourcesUserSubscriptionSubscribeCreateSourceTypeEnum, @@ -12810,7 +12976,6 @@ export const LearningResourcesUserSubscriptionApiFp = function ( department, free, id, - is_learning_material, learning_format, level, limit, @@ -12819,6 +12984,7 @@ export const LearningResourcesUserSubscriptionApiFp = function ( platform, professional, q, + resource_category, resource_type, sortby, source_type, @@ -12904,7 +13070,6 @@ export const LearningResourcesUserSubscriptionApiFactory = function ( requestParameters.department, requestParameters.free, requestParameters.id, - requestParameters.is_learning_material, requestParameters.learning_format, requestParameters.level, requestParameters.limit, @@ -12913,6 +13078,7 @@ export const LearningResourcesUserSubscriptionApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.q, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.source_type, @@ -12941,7 +13107,6 @@ export const LearningResourcesUserSubscriptionApiFactory = function ( requestParameters.department, requestParameters.free, requestParameters.id, - requestParameters.is_learning_material, requestParameters.learning_format, requestParameters.level, requestParameters.limit, @@ -12950,6 +13115,7 @@ export const LearningResourcesUserSubscriptionApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.q, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -12977,7 +13143,6 @@ export const LearningResourcesUserSubscriptionApiFactory = function ( requestParameters.department, requestParameters.free, requestParameters.id, - requestParameters.is_learning_material, requestParameters.learning_format, requestParameters.level, requestParameters.limit, @@ -12986,6 +13151,7 @@ export const LearningResourcesUserSubscriptionApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.q, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.source_type, @@ -13024,7 +13190,7 @@ export const LearningResourcesUserSubscriptionApiFactory = function ( export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionCheckListRequest { /** * Show resource counts by category - * @type {Array<'resource_type' | 'certification' | 'certification_type' | 'offered_by' | 'platform' | 'topic' | 'department' | 'level' | 'course_feature' | 'professional' | 'free' | 'learning_format' | 'is_learning_material'>} + * @type {Array<'resource_type' | 'certification' | 'certification_type' | 'offered_by' | 'platform' | 'topic' | 'department' | 'level' | 'course_feature' | 'professional' | 'free' | 'learning_format' | 'resource_category'>} * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionCheckList */ readonly aggregations?: Array @@ -13071,13 +13237,6 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr */ readonly id?: Array - /** - * True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path - * @type {boolean} - * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionCheckList - */ - readonly is_learning_material?: boolean | null - /** * The format(s) in which the learning resource is offered * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @type {Array<'online' | 'hybrid' | 'in_person'>} @@ -13100,7 +13259,7 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr readonly limit?: number /** - * The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * 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 * @type {Array<'mitx' | 'ocw' | 'bootcamps' | 'xpro' | 'mitpe' | 'see'>} * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionCheckList */ @@ -13114,7 +13273,7 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr readonly offset?: number /** - * The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'edx' | 'ocw' | 'oll' | 'mitxonline' | 'bootcamps' | 'xpro' | 'csail' | 'mitpe' | 'see' | 'scc' | 'ctl' | 'whu' | 'susskind' | 'globalalumni' | 'simplilearn' | 'emeritus' | 'podcast' | 'youtube'>} * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionCheckList */ @@ -13134,6 +13293,13 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr */ readonly q?: string + /** + * The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'program' | 'learning_material'>} + * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionCheckList + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - course * `program` - program * `learning_path` - learning path * `podcast` - podcast * `podcast_episode` - podcast episode * `video` - video * `video_playlist` - video playlist * @type {Array<'course' | 'program' | 'learning_path' | 'podcast' | 'podcast_episode' | 'video' | 'video_playlist'>} @@ -13171,7 +13337,7 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionListRequest { /** * Show resource counts by category - * @type {Array<'resource_type' | 'certification' | 'certification_type' | 'offered_by' | 'platform' | 'topic' | 'department' | 'level' | 'course_feature' | 'professional' | 'free' | 'learning_format' | 'is_learning_material'>} + * @type {Array<'resource_type' | 'certification' | 'certification_type' | 'offered_by' | 'platform' | 'topic' | 'department' | 'level' | 'course_feature' | 'professional' | 'free' | 'learning_format' | 'resource_category'>} * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionList */ readonly aggregations?: Array @@ -13218,13 +13384,6 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr */ readonly id?: Array - /** - * True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path - * @type {boolean} - * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionList - */ - readonly is_learning_material?: boolean | null - /** * The format(s) in which the learning resource is offered * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @type {Array<'online' | 'hybrid' | 'in_person'>} @@ -13247,7 +13406,7 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr readonly limit?: number /** - * The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * 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 * @type {Array<'mitx' | 'ocw' | 'bootcamps' | 'xpro' | 'mitpe' | 'see'>} * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionList */ @@ -13261,7 +13420,7 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr readonly offset?: number /** - * The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'edx' | 'ocw' | 'oll' | 'mitxonline' | 'bootcamps' | 'xpro' | 'csail' | 'mitpe' | 'see' | 'scc' | 'ctl' | 'whu' | 'susskind' | 'globalalumni' | 'simplilearn' | 'emeritus' | 'podcast' | 'youtube'>} * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionList */ @@ -13281,6 +13440,13 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr */ readonly q?: string + /** + * The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'program' | 'learning_material'>} + * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionList + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - course * `program` - program * `learning_path` - learning path * `podcast` - podcast * `podcast_episode` - podcast episode * `video` - video * `video_playlist` - video playlist * @type {Array<'course' | 'program' | 'learning_path' | 'podcast' | 'podcast_episode' | 'video' | 'video_playlist'>} @@ -13311,7 +13477,7 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionSubscribeCreateRequest { /** * Show resource counts by category - * @type {Array<'resource_type' | 'certification' | 'certification_type' | 'offered_by' | 'platform' | 'topic' | 'department' | 'level' | 'course_feature' | 'professional' | 'free' | 'learning_format' | 'is_learning_material'>} + * @type {Array<'resource_type' | 'certification' | 'certification_type' | 'offered_by' | 'platform' | 'topic' | 'department' | 'level' | 'course_feature' | 'professional' | 'free' | 'learning_format' | 'resource_category'>} * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionSubscribeCreate */ readonly aggregations?: Array @@ -13358,13 +13524,6 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr */ readonly id?: Array - /** - * True if the learning resource is a podcast, podcast episode, video, video playlist, or learning path - * @type {boolean} - * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionSubscribeCreate - */ - readonly is_learning_material?: boolean | null - /** * The format(s) in which the learning resource is offered * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @type {Array<'online' | 'hybrid' | 'in_person'>} @@ -13387,7 +13546,7 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr readonly limit?: number /** - * The organization that offers the learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * 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 * @type {Array<'mitx' | 'ocw' | 'bootcamps' | 'xpro' | 'mitpe' | 'see'>} * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionSubscribeCreate */ @@ -13401,7 +13560,7 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr readonly offset?: number /** - * The platform on which the learning resource is offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which the learning resource is offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'edx' | 'ocw' | 'oll' | 'mitxonline' | 'bootcamps' | 'xpro' | 'csail' | 'mitpe' | 'see' | 'scc' | 'ctl' | 'whu' | 'susskind' | 'globalalumni' | 'simplilearn' | 'emeritus' | 'podcast' | 'youtube'>} * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionSubscribeCreate */ @@ -13421,6 +13580,13 @@ export interface LearningResourcesUserSubscriptionApiLearningResourcesUserSubscr */ readonly q?: string + /** + * The category of learning resource * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'program' | 'learning_material'>} + * @memberof LearningResourcesUserSubscriptionApiLearningResourcesUserSubscriptionSubscribeCreate + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - course * `program` - program * `learning_path` - learning path * `podcast` - podcast * `podcast_episode` - podcast episode * `video` - video * `video_playlist` - video playlist * @type {Array<'course' | 'program' | 'learning_path' | 'podcast' | 'podcast_episode' | 'video' | 'video_playlist'>} @@ -13499,7 +13665,6 @@ export class LearningResourcesUserSubscriptionApi extends BaseAPI { requestParameters.department, requestParameters.free, requestParameters.id, - requestParameters.is_learning_material, requestParameters.learning_format, requestParameters.level, requestParameters.limit, @@ -13508,6 +13673,7 @@ export class LearningResourcesUserSubscriptionApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.q, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.source_type, @@ -13538,7 +13704,6 @@ export class LearningResourcesUserSubscriptionApi extends BaseAPI { requestParameters.department, requestParameters.free, requestParameters.id, - requestParameters.is_learning_material, requestParameters.learning_format, requestParameters.level, requestParameters.limit, @@ -13547,6 +13712,7 @@ export class LearningResourcesUserSubscriptionApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.q, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -13576,7 +13742,6 @@ export class LearningResourcesUserSubscriptionApi extends BaseAPI { requestParameters.department, requestParameters.free, requestParameters.id, - requestParameters.is_learning_material, requestParameters.learning_format, requestParameters.level, requestParameters.limit, @@ -13585,6 +13750,7 @@ export class LearningResourcesUserSubscriptionApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.q, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.source_type, @@ -13632,7 +13798,7 @@ export const LearningResourcesUserSubscriptionCheckListAggregationsEnum = { Professional: "professional", Free: "free", LearningFormat: "learning_format", - IsLearningMaterial: "is_learning_material", + ResourceCategory: "resource_category", } as const export type LearningResourcesUserSubscriptionCheckListAggregationsEnum = (typeof LearningResourcesUserSubscriptionCheckListAggregationsEnum)[keyof typeof LearningResourcesUserSubscriptionCheckListAggregationsEnum] @@ -13756,6 +13922,16 @@ export type LearningResourcesUserSubscriptionCheckListPlatformEnum = /** * @export */ +export const LearningResourcesUserSubscriptionCheckListResourceCategoryEnum = { + Course: "course", + Program: "program", + LearningMaterial: "learning_material", +} as const +export type LearningResourcesUserSubscriptionCheckListResourceCategoryEnum = + (typeof LearningResourcesUserSubscriptionCheckListResourceCategoryEnum)[keyof typeof LearningResourcesUserSubscriptionCheckListResourceCategoryEnum] +/** + * @export + */ export const LearningResourcesUserSubscriptionCheckListResourceTypeEnum = { Course: "course", Program: "program", @@ -13813,7 +13989,7 @@ export const LearningResourcesUserSubscriptionListAggregationsEnum = { Professional: "professional", Free: "free", LearningFormat: "learning_format", - IsLearningMaterial: "is_learning_material", + ResourceCategory: "resource_category", } as const export type LearningResourcesUserSubscriptionListAggregationsEnum = (typeof LearningResourcesUserSubscriptionListAggregationsEnum)[keyof typeof LearningResourcesUserSubscriptionListAggregationsEnum] @@ -13937,6 +14113,16 @@ export type LearningResourcesUserSubscriptionListPlatformEnum = /** * @export */ +export const LearningResourcesUserSubscriptionListResourceCategoryEnum = { + Course: "course", + Program: "program", + LearningMaterial: "learning_material", +} as const +export type LearningResourcesUserSubscriptionListResourceCategoryEnum = + (typeof LearningResourcesUserSubscriptionListResourceCategoryEnum)[keyof typeof LearningResourcesUserSubscriptionListResourceCategoryEnum] +/** + * @export + */ export const LearningResourcesUserSubscriptionListResourceTypeEnum = { Course: "course", Program: "program", @@ -13986,7 +14172,7 @@ export const LearningResourcesUserSubscriptionSubscribeCreateAggregationsEnum = Professional: "professional", Free: "free", LearningFormat: "learning_format", - IsLearningMaterial: "is_learning_material", + ResourceCategory: "resource_category", } as const export type LearningResourcesUserSubscriptionSubscribeCreateAggregationsEnum = (typeof LearningResourcesUserSubscriptionSubscribeCreateAggregationsEnum)[keyof typeof LearningResourcesUserSubscriptionSubscribeCreateAggregationsEnum] @@ -14112,6 +14298,17 @@ export type LearningResourcesUserSubscriptionSubscribeCreatePlatformEnum = /** * @export */ +export const LearningResourcesUserSubscriptionSubscribeCreateResourceCategoryEnum = + { + Course: "course", + Program: "program", + LearningMaterial: "learning_material", + } as const +export type LearningResourcesUserSubscriptionSubscribeCreateResourceCategoryEnum = + (typeof LearningResourcesUserSubscriptionSubscribeCreateResourceCategoryEnum)[keyof typeof LearningResourcesUserSubscriptionSubscribeCreateResourceCategoryEnum] +/** + * @export + */ export const LearningResourcesUserSubscriptionSubscribeCreateResourceTypeEnum = { Course: "course", @@ -14589,11 +14786,12 @@ export const LearningpathsApiAxiosParamCreator = function ( * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {LearningpathsListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -14614,6 +14812,7 @@ export const LearningpathsApiAxiosParamCreator = function ( platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: LearningpathsListSortbyEnum, topic?: Array, @@ -14691,6 +14890,10 @@ export const LearningpathsApiAxiosParamCreator = function ( ) } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -15088,11 +15291,12 @@ export const LearningpathsApiFp = function (configuration?: Configuration) { * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {LearningpathsListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -15113,6 +15317,7 @@ export const LearningpathsApiFp = function (configuration?: Configuration) { platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: LearningpathsListSortbyEnum, topic?: Array, @@ -15138,6 +15343,7 @@ export const LearningpathsApiFp = function (configuration?: Configuration) { platform, professional, readable_id, + resource_category, resource_type, sortby, topic, @@ -15392,6 +15598,7 @@ export const LearningpathsApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -15653,7 +15860,7 @@ export interface LearningpathsApiLearningpathsListRequest { readonly limit?: number /** - * The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * The organization that offers a learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @type {Array<'bootcamps' | 'mitpe' | 'mitx' | 'ocw' | 'see' | 'xpro'>} * @memberof LearningpathsApiLearningpathsList */ @@ -15667,7 +15874,7 @@ export interface LearningpathsApiLearningpathsListRequest { readonly offset?: number /** - * The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro' | 'youtube'>} * @memberof LearningpathsApiLearningpathsList */ @@ -15687,6 +15894,13 @@ export interface LearningpathsApiLearningpathsListRequest { */ readonly readable_id?: Array + /** + * The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'learning_material' | 'program'>} + * @memberof LearningpathsApiLearningpathsList + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @type {Array<'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program' | 'video' | 'video_playlist'>} @@ -15923,6 +16137,7 @@ export class LearningpathsApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -16080,6 +16295,16 @@ export type LearningpathsListPlatformEnum = /** * @export */ +export const LearningpathsListResourceCategoryEnum = { + Course: "course", + LearningMaterial: "learning_material", + Program: "program", +} as const +export type LearningpathsListResourceCategoryEnum = + (typeof LearningpathsListResourceCategoryEnum)[keyof typeof LearningpathsListResourceCategoryEnum] +/** + * @export + */ export const LearningpathsListResourceTypeEnum = { Course: "course", LearningPath: "learning_path", @@ -16744,11 +16969,12 @@ export const PodcastEpisodesApiAxiosParamCreator = function ( * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {PodcastEpisodesListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -16769,6 +16995,7 @@ export const PodcastEpisodesApiAxiosParamCreator = function ( platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: PodcastEpisodesListSortbyEnum, topic?: Array, @@ -16846,6 +17073,10 @@ export const PodcastEpisodesApiAxiosParamCreator = function ( ) } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -16940,11 +17171,12 @@ export const PodcastEpisodesApiFp = function (configuration?: Configuration) { * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {PodcastEpisodesListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -16965,6 +17197,7 @@ export const PodcastEpisodesApiFp = function (configuration?: Configuration) { platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: PodcastEpisodesListSortbyEnum, topic?: Array, @@ -16990,6 +17223,7 @@ export const PodcastEpisodesApiFp = function (configuration?: Configuration) { platform, professional, readable_id, + resource_category, resource_type, sortby, topic, @@ -17078,6 +17312,7 @@ export const PodcastEpisodesApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -17166,7 +17401,7 @@ export interface PodcastEpisodesApiPodcastEpisodesListRequest { readonly limit?: number /** - * The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * The organization that offers a learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @type {Array<'bootcamps' | 'mitpe' | 'mitx' | 'ocw' | 'see' | 'xpro'>} * @memberof PodcastEpisodesApiPodcastEpisodesList */ @@ -17180,7 +17415,7 @@ export interface PodcastEpisodesApiPodcastEpisodesListRequest { readonly offset?: number /** - * The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro' | 'youtube'>} * @memberof PodcastEpisodesApiPodcastEpisodesList */ @@ -17200,6 +17435,13 @@ export interface PodcastEpisodesApiPodcastEpisodesListRequest { */ readonly readable_id?: Array + /** + * The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'learning_material' | 'program'>} + * @memberof PodcastEpisodesApiPodcastEpisodesList + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @type {Array<'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program' | 'video' | 'video_playlist'>} @@ -17270,6 +17512,7 @@ export class PodcastEpisodesApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -17406,6 +17649,16 @@ export type PodcastEpisodesListPlatformEnum = /** * @export */ +export const PodcastEpisodesListResourceCategoryEnum = { + Course: "course", + LearningMaterial: "learning_material", + Program: "program", +} as const +export type PodcastEpisodesListResourceCategoryEnum = + (typeof PodcastEpisodesListResourceCategoryEnum)[keyof typeof PodcastEpisodesListResourceCategoryEnum] +/** + * @export + */ export const PodcastEpisodesListResourceTypeEnum = { Course: "course", LearningPath: "learning_path", @@ -17583,11 +17836,12 @@ export const PodcastsApiAxiosParamCreator = function ( * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {PodcastsListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -17608,6 +17862,7 @@ export const PodcastsApiAxiosParamCreator = function ( platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: PodcastsListSortbyEnum, topic?: Array, @@ -17685,6 +17940,10 @@ export const PodcastsApiAxiosParamCreator = function ( ) } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -17854,11 +18113,12 @@ export const PodcastsApiFp = function (configuration?: Configuration) { * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {PodcastsListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -17879,6 +18139,7 @@ export const PodcastsApiFp = function (configuration?: Configuration) { platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: PodcastsListSortbyEnum, topic?: Array, @@ -17903,6 +18164,7 @@ export const PodcastsApiFp = function (configuration?: Configuration) { platform, professional, readable_id, + resource_category, resource_type, sortby, topic, @@ -18028,6 +18290,7 @@ export const PodcastsApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -18172,7 +18435,7 @@ export interface PodcastsApiPodcastsListRequest { readonly limit?: number /** - * The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * The organization that offers a learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @type {Array<'bootcamps' | 'mitpe' | 'mitx' | 'ocw' | 'see' | 'xpro'>} * @memberof PodcastsApiPodcastsList */ @@ -18186,7 +18449,7 @@ export interface PodcastsApiPodcastsListRequest { readonly offset?: number /** - * The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro' | 'youtube'>} * @memberof PodcastsApiPodcastsList */ @@ -18206,6 +18469,13 @@ export interface PodcastsApiPodcastsListRequest { */ readonly readable_id?: Array + /** + * The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'learning_material' | 'program'>} + * @memberof PodcastsApiPodcastsList + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @type {Array<'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program' | 'video' | 'video_playlist'>} @@ -18320,6 +18590,7 @@ export class PodcastsApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -18456,6 +18727,16 @@ export type PodcastsListPlatformEnum = /** * @export */ +export const PodcastsListResourceCategoryEnum = { + Course: "course", + LearningMaterial: "learning_material", + Program: "program", +} as const +export type PodcastsListResourceCategoryEnum = + (typeof PodcastsListResourceCategoryEnum)[keyof typeof PodcastsListResourceCategoryEnum] +/** + * @export + */ export const PodcastsListResourceTypeEnum = { Course: "course", LearningPath: "learning_path", @@ -18667,11 +18948,12 @@ export const ProgramsApiAxiosParamCreator = function ( * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {ProgramsListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -18692,6 +18974,7 @@ export const ProgramsApiAxiosParamCreator = function ( platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: ProgramsListSortbyEnum, topic?: Array, @@ -18769,6 +19052,10 @@ export const ProgramsApiAxiosParamCreator = function ( ) } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -18862,11 +19149,12 @@ export const ProgramsApiFp = function (configuration?: Configuration) { * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {ProgramsListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -18887,6 +19175,7 @@ export const ProgramsApiFp = function (configuration?: Configuration) { platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: ProgramsListSortbyEnum, topic?: Array, @@ -18911,6 +19200,7 @@ export const ProgramsApiFp = function (configuration?: Configuration) { platform, professional, readable_id, + resource_category, resource_type, sortby, topic, @@ -18996,6 +19286,7 @@ export const ProgramsApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -19084,7 +19375,7 @@ export interface ProgramsApiProgramsListRequest { readonly limit?: number /** - * The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * The organization that offers a learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @type {Array<'bootcamps' | 'mitpe' | 'mitx' | 'ocw' | 'see' | 'xpro'>} * @memberof ProgramsApiProgramsList */ @@ -19098,7 +19389,7 @@ export interface ProgramsApiProgramsListRequest { readonly offset?: number /** - * The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro' | 'youtube'>} * @memberof ProgramsApiProgramsList */ @@ -19118,6 +19409,13 @@ export interface ProgramsApiProgramsListRequest { */ readonly readable_id?: Array + /** + * The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'learning_material' | 'program'>} + * @memberof ProgramsApiProgramsList + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @type {Array<'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program' | 'video' | 'video_playlist'>} @@ -19188,6 +19486,7 @@ export class ProgramsApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -19324,6 +19623,16 @@ export type ProgramsListPlatformEnum = /** * @export */ +export const ProgramsListResourceCategoryEnum = { + Course: "course", + LearningMaterial: "learning_material", + Program: "program", +} as const +export type ProgramsListResourceCategoryEnum = + (typeof ProgramsListResourceCategoryEnum)[keyof typeof ProgramsListResourceCategoryEnum] +/** + * @export + */ export const ProgramsListResourceTypeEnum = { Course: "course", LearningPath: "learning_path", @@ -21648,11 +21957,12 @@ export const VideoPlaylistsApiAxiosParamCreator = function ( * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {VideoPlaylistsListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -21673,6 +21983,7 @@ export const VideoPlaylistsApiAxiosParamCreator = function ( platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: VideoPlaylistsListSortbyEnum, topic?: Array, @@ -21750,6 +22061,10 @@ export const VideoPlaylistsApiAxiosParamCreator = function ( ) } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -21923,11 +22238,12 @@ export const VideoPlaylistsApiFp = function (configuration?: Configuration) { * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {VideoPlaylistsListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -21948,6 +22264,7 @@ export const VideoPlaylistsApiFp = function (configuration?: Configuration) { platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: VideoPlaylistsListSortbyEnum, topic?: Array, @@ -21973,6 +22290,7 @@ export const VideoPlaylistsApiFp = function (configuration?: Configuration) { platform, professional, readable_id, + resource_category, resource_type, sortby, topic, @@ -22099,6 +22417,7 @@ export const VideoPlaylistsApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -22243,7 +22562,7 @@ export interface VideoPlaylistsApiVideoPlaylistsListRequest { readonly limit?: number /** - * The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * The organization that offers a learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @type {Array<'bootcamps' | 'mitpe' | 'mitx' | 'ocw' | 'see' | 'xpro'>} * @memberof VideoPlaylistsApiVideoPlaylistsList */ @@ -22257,7 +22576,7 @@ export interface VideoPlaylistsApiVideoPlaylistsListRequest { readonly offset?: number /** - * The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro' | 'youtube'>} * @memberof VideoPlaylistsApiVideoPlaylistsList */ @@ -22277,6 +22596,13 @@ export interface VideoPlaylistsApiVideoPlaylistsListRequest { */ readonly readable_id?: Array + /** + * The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'learning_material' | 'program'>} + * @memberof VideoPlaylistsApiVideoPlaylistsList + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @type {Array<'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program' | 'video' | 'video_playlist'>} @@ -22391,6 +22717,7 @@ export class VideoPlaylistsApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -22527,6 +22854,16 @@ export type VideoPlaylistsListPlatformEnum = /** * @export */ +export const VideoPlaylistsListResourceCategoryEnum = { + Course: "course", + LearningMaterial: "learning_material", + Program: "program", +} as const +export type VideoPlaylistsListResourceCategoryEnum = + (typeof VideoPlaylistsListResourceCategoryEnum)[keyof typeof VideoPlaylistsListResourceCategoryEnum] +/** + * @export + */ export const VideoPlaylistsListResourceTypeEnum = { Course: "course", LearningPath: "learning_path", @@ -22579,11 +22916,12 @@ export const VideosApiAxiosParamCreator = function ( * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {VideosListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -22604,6 +22942,7 @@ export const VideosApiAxiosParamCreator = function ( platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: VideosListSortbyEnum, topic?: Array, @@ -22681,6 +23020,10 @@ export const VideosApiAxiosParamCreator = function ( ) } + if (resource_category) { + localVarQueryParameter["resource_category"] = resource_category + } + if (resource_type) { localVarQueryParameter["resource_type"] = resource_type } @@ -22774,11 +23117,12 @@ export const VideosApiFp = function (configuration?: Configuration) { * @param {Array>} [learning_format] The learning format of course/program resources * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @param {Array} [level] The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non-Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory * @param {number} [limit] Number of results to return per page. - * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * @param {Array} [offered_by] The organization that offers a 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. - * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * @param {Array} [platform] The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @param {boolean} [professional] * @param {Array} [readable_id] Multiple values may be separated by commas. + * @param {Array} [resource_category] The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @param {VideosListSortbyEnum} [sortby] Sort By * `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] Multiple values may be separated by commas. @@ -22799,6 +23143,7 @@ export const VideosApiFp = function (configuration?: Configuration) { platform?: Array, professional?: boolean, readable_id?: Array, + resource_category?: Array, resource_type?: Array, sortby?: VideosListSortbyEnum, topic?: Array, @@ -22823,6 +23168,7 @@ export const VideosApiFp = function (configuration?: Configuration) { platform, professional, readable_id, + resource_category, resource_type, sortby, topic, @@ -22907,6 +23253,7 @@ export const VideosApiFactory = function ( requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -22995,7 +23342,7 @@ export interface VideosApiVideosListRequest { readonly limit?: number /** - * The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `mitpe` - Professional Education * `see` - Sloan Executive Education + * The organization that offers a learning resource * `mitx` - MITx * `ocw` - MIT OpenCourseWare * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * @type {Array<'bootcamps' | 'mitpe' | 'mitx' | 'ocw' | 'see' | 'xpro'>} * @memberof VideosApiVideosList */ @@ -23009,7 +23356,7 @@ export interface VideosApiVideosListRequest { readonly offset?: number /** - * The platform on which learning resources are offered * `edx` - edX * `ocw` - OCW * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube + * The platform on which learning resources are offered * `edx` - edX * `ocw` - MIT OpenCourseWare * `oll` - Open Learning Library * `mitxonline` - MITx Online * `bootcamps` - Bootcamps * `xpro` - MIT xPRO * `csail` - CSAIL * `mitpe` - MIT Professional Education * `see` - MIT Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics * `whu` - WHU * `susskind` - Susskind * `globalalumni` - Global Alumni * `simplilearn` - Simplilearn * `emeritus` - Emeritus * `podcast` - Podcast * `youtube` - YouTube * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro' | 'youtube'>} * @memberof VideosApiVideosList */ @@ -23029,6 +23376,13 @@ export interface VideosApiVideosListRequest { */ readonly readable_id?: Array + /** + * The resource category of the learning resources * `course` - Course * `program` - Program * `learning_material` - Learning Material + * @type {Array<'course' | 'learning_material' | 'program'>} + * @memberof VideosApiVideosList + */ + readonly resource_category?: Array + /** * The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode * `video` - Video * `video_playlist` - Video Playlist * @type {Array<'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program' | 'video' | 'video_playlist'>} @@ -23099,6 +23453,7 @@ export class VideosApi extends BaseAPI { requestParameters.platform, requestParameters.professional, requestParameters.readable_id, + requestParameters.resource_category, requestParameters.resource_type, requestParameters.sortby, requestParameters.topic, @@ -23235,6 +23590,16 @@ export type VideosListPlatformEnum = /** * @export */ +export const VideosListResourceCategoryEnum = { + Course: "course", + LearningMaterial: "learning_material", + Program: "program", +} as const +export type VideosListResourceCategoryEnum = + (typeof VideosListResourceCategoryEnum)[keyof typeof VideosListResourceCategoryEnum] +/** + * @export + */ export const VideosListResourceTypeEnum = { Course: "course", LearningPath: "learning_path", diff --git a/frontends/api/src/hooks/learningResources/index.test.ts b/frontends/api/src/hooks/learningResources/index.test.ts index 4e5939efa7..f9785a3266 100644 --- a/frontends/api/src/hooks/learningResources/index.test.ts +++ b/frontends/api/src/hooks/learningResources/index.test.ts @@ -2,7 +2,10 @@ import { renderHook, waitFor } from "@testing-library/react" import { faker } from "@faker-js/faker/locale/en" import { setupReactQueryTest } from "../test-utils" -import keyFactory, { invalidateResourceQueries } from "./keyFactory" +import keyFactory, { + invalidateResourceQueries, + invalidateUserListQueries, +} from "./keyFactory" import { useLearningResourcesDetail, useLearningResourcesList, @@ -16,10 +19,16 @@ import { useLearningpathRelationshipMove, useLearningpathRelationshipCreate, useLearningpathRelationshipDestroy, + useFeaturedLearningResourcesList, + useUserListRelationshipCreate, + useUserListRelationshipDestroy, } from "./index" import { setMockResponse, urls, makeRequest } from "../../test-utils" -import * as factory from "../../test-utils/factories/learningResources" +import * as factories from "../../test-utils/factories" import { UseQueryResult } from "@tanstack/react-query" +import { LearningResource } from "../../generated/v1" + +const factory = factories.learningResources jest.mock("./keyFactory", () => { const actual = jest.requireActual("./keyFactory") @@ -27,6 +36,7 @@ jest.mock("./keyFactory", () => { __esModule: true, ...actual, invalidateResourceQueries: jest.fn(), + invalidateUserListQueries: jest.fn(), } }) @@ -41,7 +51,12 @@ const assertApiCalled = async ( data: unknown, ) => { await waitFor(() => expect(result.current.isLoading).toBe(false)) - expect(makeRequest).toHaveBeenCalledWith(method, url, expect.anything()) + expect( + makeRequest.mock.calls.some((args) => { + // Don't use toHaveBeenCalledWith. It doesn't handle undefined 3rd arg. + return args[0].toUpperCase() === method && args[1] === url + }), + ).toBe(true) expect(result.current.data).toEqual(data) } @@ -55,7 +70,7 @@ describe("useLearningResourcesList", () => { setMockResponse.get(url, data) const useTestHook = () => useLearningResourcesList(params) const { result } = renderHook(useTestHook, { wrapper }) - assertApiCalled(result, url, "GET", data) + await assertApiCalled(result, url, "GET", data) }, ) }) @@ -71,7 +86,7 @@ describe("useLearningResourcesRetrieve", () => { const useTestHook = () => useLearningResourcesDetail(params.id) const { result } = renderHook(useTestHook, { wrapper }) - assertApiCalled(result, url, "GET", data) + await assertApiCalled(result, url, "GET", data) }) }) @@ -87,7 +102,7 @@ describe("useLearningPathsList", () => { const useTestHook = () => useLearningPathsList(params) const { result } = renderHook(useTestHook, { wrapper }) - assertApiCalled(result, url, "GET", data) + await assertApiCalled(result, url, "GET", data) }, ) }) @@ -103,7 +118,7 @@ describe("useLearningPathsRetrieve", () => { const useTestHook = () => useLearningPathsDetail(params.id) const { result } = renderHook(useTestHook, { wrapper }) - assertApiCalled(result, url, "GET", data) + await assertApiCalled(result, url, "GET", data) }) }) @@ -119,7 +134,7 @@ describe("useLearningResourceTopics", () => { const useTestHook = () => useLearningResourceTopics(params) const { result } = renderHook(useTestHook, { wrapper }) - assertApiCalled(result, url, "GET", data) + await assertApiCalled(result, url, "GET", data) }, ) }) @@ -170,7 +185,6 @@ describe("LearningPath CRUD", () => { const relationship = factory.learningPathRelationship({ parent: path.id }) const keys = { learningResources: keyFactory._def, - childResource: keyFactory.detail(relationship.child).queryKey, relationshipListing: keyFactory.learningpaths._ctx.detail(path.id)._ctx .infiniteItems._def, } @@ -185,7 +199,15 @@ describe("LearningPath CRUD", () => { learning_resource_id: path.id, }), } - return { path, relationship, pathUrls, keys } + + const resourceWithoutList: LearningResource = { + ...relationship.resource, + learning_path_parents: + relationship.resource.learning_path_parents?.filter( + (m) => m.id !== relationship.id, + ) ?? null, + } + return { path, relationship, pathUrls, keys, resourceWithoutList } } test("useLearningpathCreate calls correct API", async () => { @@ -262,68 +284,241 @@ describe("LearningPath CRUD", () => { ) }) - test("useLearningpathRelationshipCreate calls correct API and patches child resource cache", async () => { - const { relationship, pathUrls, keys } = makeData() - const url = pathUrls.relationshipList - const requestData = { - child: relationship.child, - parent: relationship.parent, - position: relationship.position, - } - setMockResponse.post(url, relationship) - - const { wrapper, queryClient } = setupReactQueryTest() - const { result } = renderHook(useLearningpathRelationshipCreate, { - wrapper, - }) - result.current.mutate(requestData) - - await waitFor(() => expect(result.current.isSuccess).toBe(true)) - expect(makeRequest).toHaveBeenCalledWith("post", url, requestData) - - expect(invalidateResourceQueries).toHaveBeenCalledWith( - queryClient, - relationship.child, - ) - expect(invalidateResourceQueries).toHaveBeenCalledWith( - queryClient, - relationship.parent, - ) - - // Check patches cached result - expect(queryClient.getQueryData(keys.childResource)).toEqual( - relationship.resource, - ) - }) + test.each([{ isChildFeatured: false }, { isChildFeatured: true }])( + "useLearningpathRelationshipCreate calls correct API and patches featured resources", + async ({ isChildFeatured }) => { + const { relationship, pathUrls, resourceWithoutList } = makeData() + + const featured = factory.resources({ count: 3 }) + if (isChildFeatured) { + featured.results[0] = resourceWithoutList + } + setMockResponse.get(urls.learningResources.featured(), featured) + + const url = pathUrls.relationshipList + const requestData = { + child: relationship.child, + parent: relationship.parent, + position: relationship.position, + } + setMockResponse.post(url, relationship) + + const { wrapper, queryClient } = setupReactQueryTest() + const { result } = renderHook(useLearningpathRelationshipCreate, { + wrapper, + }) + const { result: featuredResult } = renderHook( + useFeaturedLearningResourcesList, + { wrapper }, + ) + await waitFor(() => expect(featuredResult.current.data).toBe(featured)) + + result.current.mutate(requestData) + + await waitFor(() => expect(result.current.isSuccess).toBe(true)) + expect(makeRequest).toHaveBeenCalledWith("post", url, requestData) + + expect(invalidateResourceQueries).toHaveBeenCalledWith( + queryClient, + relationship.child, + { skipFeatured: false }, + ) + expect(invalidateResourceQueries).toHaveBeenCalledWith( + queryClient, + relationship.parent, + ) + }, + ) - test("useLearningpathRelationshipDestroy calls correct API and patches child resource cache", async () => { - const { relationship, pathUrls, keys } = makeData() - const url = pathUrls.relationshipDetails + test.each([{ isChildFeatured: false }, { isChildFeatured: true }])( + "useLearningpathRelationshipDestroy calls correct API and patches child resource cache (isChildFeatured=$isChildFeatured)", + async ({ isChildFeatured }) => { + const { relationship, pathUrls } = makeData() + const url = pathUrls.relationshipDetails + + const featured = factory.resources({ count: 3 }) + if (isChildFeatured) { + featured.results[0] = relationship.resource + } + setMockResponse.get(urls.learningResources.featured(), featured) + + setMockResponse.delete(url, null) + const { wrapper, queryClient } = setupReactQueryTest() + + const { result } = renderHook(useLearningpathRelationshipDestroy, { + wrapper, + }) + const { result: featuredResult } = renderHook( + useFeaturedLearningResourcesList, + { wrapper }, + ) + + await waitFor(() => expect(featuredResult.current.data).toBe(featured)) + result.current.mutate(relationship) + await waitFor(() => expect(result.current.isSuccess).toBe(true)) + + expect(makeRequest).toHaveBeenCalledWith("delete", url, undefined) + expect(invalidateResourceQueries).toHaveBeenCalledWith( + queryClient, + relationship.child, + { skipFeatured: false }, + ) + expect(invalidateResourceQueries).toHaveBeenCalledWith( + queryClient, + relationship.parent, + ) + }, + ) +}) - setMockResponse.delete(url, null) - const { wrapper, queryClient } = setupReactQueryTest() - queryClient.setQueryData(keys.childResource, relationship.resource) - const { result } = renderHook(useLearningpathRelationshipDestroy, { - wrapper, +describe("userlist CRUD", () => { + const makeData = () => { + const list = factories.userLists.userList() + const relationship = factories.userLists.userListRelationship({ + parent: list.id, }) + const keys = { + learningResources: keyFactory._def, + relationshipListing: keyFactory.userlists._ctx.detail(list.id)._ctx + .infiniteItems._def, + } + const listUrls = { + list: urls.userLists.list(), + details: urls.userLists.details({ id: list.id }), + relationshipList: urls.userLists.resources({ + userlist_id: list.id, + }), + relationshipDetails: urls.userLists.resourceDetails({ + id: relationship.id, + userlist_id: list.id, + }), + } - result.current.mutate(relationship) - await waitFor(() => expect(result.current.isSuccess).toBe(true)) + const resourceWithoutList: LearningResource = { + ...relationship.resource, + user_list_parents: + relationship.resource.user_list_parents?.filter( + (m) => m.id !== relationship.id, + ) ?? null, + } + return { path: list, relationship, listUrls, keys, resourceWithoutList } + } - expect(makeRequest).toHaveBeenCalledWith("delete", url, undefined) - expect(invalidateResourceQueries).toHaveBeenCalledWith( - queryClient, - relationship.child, - ) - expect(invalidateResourceQueries).toHaveBeenCalledWith( - queryClient, - relationship.parent, - ) + test.each([{ isChildFeatured: false }, { isChildFeatured: true }])( + "useUserListRelationshipCreate calls correct API and patches featured resources", + async ({ isChildFeatured }) => { + const { relationship, listUrls, resourceWithoutList } = makeData() + + const featured = factory.resources({ count: 3 }) + if (isChildFeatured) { + featured.results[0] = resourceWithoutList + } + setMockResponse.get(urls.learningResources.featured(), featured) + + const url = listUrls.relationshipList + const requestData = { + child: relationship.child, + parent: relationship.parent, + position: relationship.position, + } + setMockResponse.post(url, relationship) + + const { wrapper, queryClient } = setupReactQueryTest() + const { result } = renderHook(useUserListRelationshipCreate, { + wrapper, + }) + const { result: featuredResult } = renderHook( + useFeaturedLearningResourcesList, + { wrapper }, + ) + await waitFor(() => expect(featuredResult.current.data).toBe(featured)) + + result.current.mutate(requestData) + + await waitFor(() => expect(result.current.isSuccess).toBe(true)) + expect(makeRequest).toHaveBeenCalledWith("post", url, requestData) + + expect(invalidateResourceQueries).toHaveBeenCalledWith( + queryClient, + relationship.child, + { skipFeatured: true }, + ) + expect(invalidateUserListQueries).toHaveBeenCalledWith( + queryClient, + relationship.parent, + ) + + // Assert featured API called only once and that the result has been + // patched correctly. When the child is featured, we do NOT want to make + // a new API call to /featured, because the results of that API are randomly + // ordered. + expect( + makeRequest.mock.calls.filter((call) => call[0] === "get").length, + ).toEqual(1) + if (isChildFeatured) { + expect(featuredResult.current.data?.results).toEqual([ + relationship.resource, + ...featured.results.slice(1), + ]) + } else { + expect(featuredResult.current.data).toEqual(featured) + } + }, + ) - // Patched existing resource - expect(queryClient.getQueryData(keys.childResource)).toEqual({ - ...relationship.resource, - learning_path_parents: [], - }) - }) + test.each([{ isChildFeatured: false }, { isChildFeatured: true }])( + "useUserListRelationshipDestroy calls correct API and patches child resource cache (isChildFeatured=$isChildFeatured)", + async ({ isChildFeatured }) => { + const { relationship, listUrls, resourceWithoutList } = makeData() + const url = listUrls.relationshipDetails + + const featured = factory.resources({ count: 3 }) + if (isChildFeatured) { + featured.results[0] = relationship.resource + } + setMockResponse.get(urls.learningResources.featured(), featured) + + setMockResponse.delete(url, null) + const { wrapper, queryClient } = setupReactQueryTest() + + const { result } = renderHook(useUserListRelationshipDestroy, { + wrapper, + }) + const { result: featuredResult } = renderHook( + useFeaturedLearningResourcesList, + { wrapper }, + ) + + await waitFor(() => expect(featuredResult.current.data).toBe(featured)) + result.current.mutate(relationship) + await waitFor(() => expect(result.current.isSuccess).toBe(true)) + + expect(makeRequest).toHaveBeenCalledWith("delete", url, undefined) + expect(invalidateResourceQueries).toHaveBeenCalledWith( + queryClient, + relationship.child, + { skipFeatured: true }, + ) + expect(invalidateUserListQueries).toHaveBeenCalledWith( + queryClient, + relationship.parent, + ) + + // Assert featured API called only once and that the result has been + // patched correctly. When the child is featured, we do NOT want to make + // a new API call to /featured, because the results of that API are randomly + // ordered. + expect( + makeRequest.mock.calls.filter((call) => call[0] === "get").length, + ).toEqual(1) + if (isChildFeatured) { + expect(featuredResult.current.data?.results).toEqual([ + resourceWithoutList, + ...featured.results.slice(1), + ]) + } else { + expect(featuredResult.current.data).toEqual(featured) + } + }, + ) }) diff --git a/frontends/api/src/hooks/learningResources/index.ts b/frontends/api/src/hooks/learningResources/index.ts index dadbc54775..a97bc4509c 100644 --- a/frontends/api/src/hooks/learningResources/index.ts +++ b/frontends/api/src/hooks/learningResources/index.ts @@ -16,7 +16,6 @@ import type { LearningPathResource, LearningPathRelationshipRequest, MicroLearningPathRelationship, - LearningResource, LearningResourcesSearchApiLearningResourcesSearchRetrieveRequest as LRSearchRequest, UserlistsApiUserlistsListRequest as ULListRequest, UserlistsApiUserlistsCreateRequest as ULCreateRequest, @@ -28,10 +27,13 @@ import type { MicroUserListRelationship, PlatformsApiPlatformsListRequest, FeaturedApiFeaturedListRequest as FeaturedListParams, + PaginatedLearningResourceList, } from "../../generated/v1" import learningResources, { invalidateResourceQueries, invalidateUserListQueries, + updateListParentsOnAdd, + updateListParentsOnDestroy, } from "./keyFactory" import { ListType } from "../../common/constants" @@ -168,14 +170,15 @@ const useLearningpathRelationshipCreate = () => { learning_resource_id: params.parent, LearningPathRelationshipRequest: params, }), - onSuccess: (response, _vars) => { - queryClient.setQueryData( - learningResources.detail(response.data.child).queryKey, - response.data.resource, + onSettled: (_response, _err, vars) => { + invalidateResourceQueries( + queryClient, + vars.child, + // do NOT skip invalidating the /featured/ lists, + // Changing a learning path might change the members of the featured + // lists. + { skipFeatured: false }, ) - }, - onSettled: (response, _err, vars) => { - invalidateResourceQueries(queryClient, vars.child) invalidateResourceQueries(queryClient, vars.parent) }, }) @@ -189,22 +192,15 @@ const useLearningpathRelationshipDestroy = () => { id: params.id, learning_resource_id: params.parent, }), - onSuccess: (_response, vars) => { - queryClient.setQueryData( - learningResources.detail(vars.child).queryKey, - (old: LearningResource | undefined) => { - if (!old) return - const parents = - old.learning_path_parents?.filter(({ id }) => vars.id !== id) ?? [] - return { - ...old, - learning_path_parents: parents, - } - }, - ) - }, onSettled: (_response, _err, vars) => { - invalidateResourceQueries(queryClient, vars.child) + invalidateResourceQueries( + queryClient, + vars.child, + // do NOT skip invalidating the /featured/ lists, + // Changing a learning path might change the members of the featured + // lists. + { skipFeatured: false }, + ) invalidateResourceQueries(queryClient, vars.parent) }, }) @@ -298,13 +294,21 @@ const useUserListRelationshipCreate = () => { UserListRelationshipRequest: params, }), onSuccess: (response, _vars) => { - queryClient.setQueryData( - learningResources.detail(response.data.child).queryKey, - response.data.resource, + queryClient.setQueriesData( + learningResources.featured({}).queryKey, + (old) => updateListParentsOnAdd(response.data, old), ) }, - onSettled: (response, _err, vars) => { - invalidateResourceQueries(queryClient, vars.child) + onSettled: (_response, _err, vars) => { + invalidateResourceQueries( + queryClient, + vars.child, + // Do NOT invalidate the featured lists. Re-fetching the featured list + // data will cause the order to change, since the /featured API returns + // at random order. + // Instead, `onSuccess` hook will manually update the data. + { skipFeatured: true }, + ) invalidateUserListQueries(queryClient, vars.parent) }, }) @@ -319,21 +323,21 @@ const useUserListRelationshipDestroy = () => { userlist_id: params.parent, }), onSuccess: (_response, vars) => { - queryClient.setQueryData( - learningResources.detail(vars.child).queryKey, - (old: LearningResource | undefined) => { - if (!old) return - const parents = - old.user_list_parents?.filter(({ id }) => vars.id !== id) ?? [] - return { - ...old, - user_list_parents: parents, - } - }, + queryClient.setQueriesData( + learningResources.featured({}).queryKey, + (old) => updateListParentsOnDestroy(vars, old), ) }, onSettled: (_response, _err, vars) => { - invalidateResourceQueries(queryClient, vars.child) + invalidateResourceQueries( + queryClient, + vars.child, + // Do NOT invalidate the featured lists. Re-fetching the featured list + // data will cause the order to change, since the /featured API returns + // at random order. + // Instead, `onSuccess` hook will manually update the data. + { skipFeatured: true }, + ) invalidateUserListQueries(queryClient, vars.parent) }, }) diff --git a/frontends/api/src/hooks/learningResources/keyFactory.ts b/frontends/api/src/hooks/learningResources/keyFactory.ts index 8224222542..774eb17f3e 100644 --- a/frontends/api/src/hooks/learningResources/keyFactory.ts +++ b/frontends/api/src/hooks/learningResources/keyFactory.ts @@ -27,6 +27,8 @@ import type { OfferorsApiOfferorsListRequest, PlatformsApiPlatformsListRequest, FeaturedApiFeaturedListRequest as FeaturedListParams, + UserListRelationship, + MicroUserListRelationship, } from "../../generated/v1" import { createQueryKeys } from "@lukemorales/query-key-factory" @@ -45,7 +47,7 @@ const learningResources = createQueryKeys("learningResources", { .learningResourcesList(params) .then((res) => res.data), }), - featured: (params: FeaturedListParams) => ({ + featured: (params: FeaturedListParams = {}) => ({ queryKey: [params], queryFn: () => featuredApi.featuredList(params).then((res) => res.data), }), @@ -143,25 +145,12 @@ const learningResources = createQueryKeys("learningResources", { }, }) -const learningPathHasResource = +const listHasResource = (resourceId: number) => (query: Query): boolean => { // eslint-disable-next-line @typescript-eslint/no-explicit-any const data = query.state.data as any - const resources: LearningResource[] = data.pages - ? data.pages.flatMap( - (page: PaginatedLearningResourceList) => page.results, - ) - : data.results - return resources.some((res) => res.id === resourceId) - } - -const userListHasResource = - (resourceId: number) => - (query: Query): boolean => { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const data = query.state.data as any - const resources: UserList[] = data.pages + const resources: LearningResource[] | UserList[] = data.pages ? data.pages.flatMap( (page: PaginatedLearningResourceList) => page.results, ) @@ -169,9 +158,20 @@ const userListHasResource = return resources.some((res) => res.id === resourceId) } +/** + * Invalidate Resource queries that a specific resource appears in. + * + * By default, this will invalidate featured list queries. This can result in + * odd behavior because the featured list item order is randomized: when the + * featured list cache is invalidated, the newly fetched data may be in a + * different order. To maintain the order, use skipFeatured to skip invalidation + * of featured lists and instead manually update the cached data via + * `updateListParentsOnAdd`. + */ const invalidateResourceQueries = ( queryClient: QueryClient, resourceId: LearningResource["id"], + { skipFeatured = false } = {}, ) => { /** * Invalidate details queries. @@ -191,17 +191,13 @@ const invalidateResourceQueries = ( const lists = [ learningResources.list._def, learningResources.learningpaths._ctx.list._def, - learningResources.userlists._ctx.list._def, - learningResources.featured._def, + learningResources.search._def, + ...(skipFeatured ? [] : [learningResources.featured._def]), ] lists.forEach((queryKey) => { queryClient.invalidateQueries({ queryKey, - predicate: learningPathHasResource(resourceId), - }) - queryClient.invalidateQueries({ - queryKey, - predicate: userListHasResource(resourceId), + predicate: listHasResource(resourceId), }) }) } @@ -213,7 +209,72 @@ const invalidateUserListQueries = ( queryClient.invalidateQueries( learningResources.userlists._ctx.detail(userListId).queryKey, ) + const lists = [learningResources.userlists._ctx.list._def] + lists.forEach((queryKey) => { + queryClient.invalidateQueries({ + queryKey, + predicate: listHasResource(userListId), + }) + }) +} + +/** + * Given + * - a list of learning resources L + * - a new relationship between learningpath/userlist and a resource R + * Update the list L so that it includes the updated resource R. (If the list + * did not contain R to begin with, no change is made) + */ +const updateListParentsOnAdd = ( + relationship: UserListRelationship, + oldList?: PaginatedLearningResourceList, +) => { + if (!oldList) return oldList + const matchIndex = oldList.results.findIndex( + (res) => res.id === relationship.child, + ) + if (matchIndex === -1) return oldList + const updatesResults = [...oldList.results] + updatesResults[matchIndex] = relationship.resource + return { + ...oldList, + results: updatesResults, + } +} + +/** + * Given + * - a list of learning resources L + * - a destroyed relationship between learningpath/userlist and a resource R + * Update the list L so that it includes the updated resource R. (If the list + * did not contain R to begin with, no change is made) + */ +const updateListParentsOnDestroy = ( + relationship: MicroUserListRelationship, + list?: PaginatedLearningResourceList, +) => { + if (!list) return list + if (!relationship) return list + const matchIndex = list.results.findIndex( + (res) => res.id === relationship.child, + ) + if (matchIndex === -1) return list + const updatedResults = [...list.results] + const newResource = { ...updatedResults[matchIndex] } + newResource.user_list_parents = + newResource.user_list_parents?.filter((m) => m.id !== relationship.id) ?? + null + updatedResults[matchIndex] = newResource + return { + ...list, + results: updatedResults, + } } export default learningResources -export { invalidateResourceQueries, invalidateUserListQueries } +export { + invalidateResourceQueries, + invalidateUserListQueries, + updateListParentsOnAdd, + updateListParentsOnDestroy, +} diff --git a/frontends/jest-shared-setup.ts b/frontends/jest-shared-setup.ts index 4c77acf745..aa53284fc4 100644 --- a/frontends/jest-shared-setup.ts +++ b/frontends/jest-shared-setup.ts @@ -23,6 +23,8 @@ Object.defineProperty(window, "matchMedia", { })), }) +Element.prototype.scrollIntoView = jest.fn() + /* * This used to live in ol-ckeditor but we also need it now for NukaCarousel, * so it's now here so it's available across the board. diff --git a/frontends/mit-open/package.json b/frontends/mit-open/package.json index 16957214b8..da54eb16d7 100644 --- a/frontends/mit-open/package.json +++ b/frontends/mit-open/package.json @@ -42,7 +42,7 @@ "html-webpack-plugin": "^5.6.0", "mini-css-extract-plugin": "^2.6.1", "ol-test-utilities": "0.0.0", - "storybook": "^8.0.9", + "storybook": "^8.1.10", "swc-loader": "^0.2.6", "tsconfig-paths-webpack-plugin": "^4.1.0", "webpack": "^5.91.0", diff --git a/frontends/mit-open/src/page-components/Dialogs/AddToListDialog.tsx b/frontends/mit-open/src/page-components/Dialogs/AddToListDialog.tsx index d44b7413e1..5e9dcb9371 100644 --- a/frontends/mit-open/src/page-components/Dialogs/AddToListDialog.tsx +++ b/frontends/mit-open/src/page-components/Dialogs/AddToListDialog.tsx @@ -2,7 +2,7 @@ import React, { useState } from "react" import { BasicDialog, Chip, - Checkbox, + MuiCheckbox, List, ListItem, ListItemButton, @@ -312,7 +312,7 @@ const LearningPathToggleList: React.FC = ({ aria-disabled={disabled} onClick={disabled ? undefined : handleToggle(list)} > - = ({ aria-disabled={disabled} onClick={disabled ? undefined : handleToggle(list)} > - ({ padding: "0", background: "transparent", "&:hover:not(:disabled)": { background: "transparent", }, touchAction: "none", -}) + textAlign: "center", + display: "inline-flex", + justifyContent: "center", + alignItems: "center", + color: theme.palette.text.primary, + transition: `background ${theme.transitions.duration.short}ms`, + cursor: "pointer", + borderStyle: "none", +})) interface MenuButtonProps { text?: string @@ -38,7 +46,7 @@ interface MenuButtonProps { } const MenuButton: React.FC = ({ text, onClick }) => ( - + {text ? {text} : ""} diff --git a/frontends/mit-open/src/page-components/Profile/CertificateChoice.tsx b/frontends/mit-open/src/page-components/Profile/CertificateChoice.tsx index 8d2a491f21..7189012033 100644 --- a/frontends/mit-open/src/page-components/Profile/CertificateChoice.tsx +++ b/frontends/mit-open/src/page-components/Profile/CertificateChoice.tsx @@ -62,7 +62,7 @@ const CertificateChoiceBoxField: React.FC = ({ { return (