diff --git a/.coveragerc b/.coveragerc
index d765608419..8cd545ac37 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -3,7 +3,7 @@ branch = True
source = .
data_file=/tmp/coverage
omit =
- open_discussions/wsgi.py
+ main/wsgi.py
manage.py
./.tox/*
*/migrations/*
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 61b2fd3632..74176dc132 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,7 +28,7 @@ jobs:
- 6379:6379
elastic:
- image: docker.elastic.co/elasticsearch/elasticsearch:7.17.16
+ image: docker.elastic.co/elasticsearch/elasticsearch:7.17.17
env:
network.host: "0.0.0.0"
http.cors.enabled: "true"
@@ -94,7 +94,7 @@ jobs:
MITOPEN_COOKIE_NAME: cookie_monster
- name: Upload coverage to CodeCov
- uses: codecov/codecov-action@v3.1.4
+ uses: codecov/codecov-action@v3.1.6
with:
file: ./coverage.xml
@@ -139,7 +139,7 @@ jobs:
NODE_ENV: test
- name: Upload coverage to CodeCov
- uses: codecov/codecov-action@v3.1.4
+ uses: codecov/codecov-action@v3.1.6
with:
file: coverage/lcov.info
diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml
index 1d7be10a94..836259fc09 100644
--- a/.github/workflows/production.yml
+++ b/.github/workflows/production.yml
@@ -21,7 +21,7 @@ jobs:
- uses: akhileshns/heroku-deploy@581dd286c962b6972d427fcf8980f60755c15520
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
- heroku_app_name: "odl-open-discussions"
+ heroku_app_name: "mitopen-production"
heroku_email: ${{ secrets.HEROKU_EMAIL }}
branch: release
# runs ONLY on a failure of the CI workflow
diff --git a/.github/workflows/release-candiate.yml b/.github/workflows/release-candiate.yml
index d7d41affe5..cd081d8b72 100644
--- a/.github/workflows/release-candiate.yml
+++ b/.github/workflows/release-candiate.yml
@@ -21,7 +21,7 @@ jobs:
- uses: akhileshns/heroku-deploy@581dd286c962b6972d427fcf8980f60755c15520
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
- heroku_app_name: "odl-open-discussions-rc"
+ heroku_app_name: "mitopen-rc"
heroku_email: ${{ secrets.HEROKU_EMAIL }}
branch: release-candidate
# runs ONLY on a failure of the CI workflow
diff --git a/.secrets.baseline b/.secrets.baseline
index f90738dd43..5476d05fba 100644
--- a/.secrets.baseline
+++ b/.secrets.baseline
@@ -135,10 +135,10 @@
"line_number": 2551
}
],
- "frontends/open-discussions/src/reducers/auth.js": [
+ "frontends/mit-open/src/reducers/auth.js": [
{
"type": "Secret Keyword",
- "filename": "frontends/open-discussions/src/reducers/auth.js",
+ "filename": "frontends/mit-open/src/reducers/auth.js",
"hashed_secret": "e3c328a97de7239b3f60eecda765a69535205744",
"is_verified": false,
"line_number": 18
diff --git a/Procfile b/Procfile
index 614bf0e6ee..bf625f2377 100644
--- a/Procfile
+++ b/Procfile
@@ -1,5 +1,5 @@
release: bash scripts/heroku-release-phase.sh
web: bin/start-nginx bin/start-pgbouncer newrelic-admin run-program uwsgi uwsgi.ini
-worker: bin/start-pgbouncer newrelic-admin run-program celery -A open_discussions.celery:app worker -Q default --concurrency=2 -B -l $MITOPEN_LOG_LEVEL
-extra_worker_2x: bin/start-pgbouncer newrelic-admin run-program celery -A open_discussions.celery:app worker -Q edx_content,default --concurrency=2 -l $MITOPEN_LOG_LEVEL
-extra_worker_performance: bin/start-pgbouncer newrelic-admin run-program celery -A open_discussions.celery:app worker -Q edx_content,default -l $MITOPEN_LOG_LEVEL
+worker: bin/start-pgbouncer newrelic-admin run-program celery -A main.celery:app worker -Q default --concurrency=2 -B -l $MITOPEN_LOG_LEVEL
+extra_worker_2x: bin/start-pgbouncer newrelic-admin run-program celery -A main.celery:app worker -Q edx_content,default --concurrency=2 -l $MITOPEN_LOG_LEVEL
+extra_worker_performance: bin/start-pgbouncer newrelic-admin run-program celery -A main.celery:app worker -Q edx_content,default -l $MITOPEN_LOG_LEVEL
diff --git a/README.md b/README.md
index 0493a2efde..f241a8caf6 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ and run
docker compose run --rm web python manage.py backpopulate_xpro_data
```
-See [learning_resources/management/commands](learning_resources/management/commands) and [open_discussions/settings_course_etl.py](open_discussions/settings_course_etl.py) for more ETL commands and their relevant environment variables.
+See [learning_resources/management/commands](learning_resources/management/commands) and [main/settings_course_etl.py](main/settings_course_etl.py) for more ETL commands and their relevant environment variables.
## Code Generation
diff --git a/RELEASE.rst b/RELEASE.rst
index 76ecede918..f7a0950097 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -1,6 +1,36 @@
Release Notes
=============
+Version 0.3.0
+-------------
+
+- Allow for blank OCW terms/years (adjust readable_id accordingly), raise an error at end of ocw_courses_etl function if any exceptions occurred during processing (#475)
+- Remove all references to open-discussions (#472)
+- Fix prolearn etl (#471)
+- Multiple filter options for learningresources and contenfiles API rest endpoints (#449)
+- Lock file maintenance (#470)
+- Update dependency pluggy to v1.4.0 (#468)
+- Update dependency jekyll-feed to v0.17.0 (#467)
+- Update dependency @types/react to v18.2.53 (#469)
+- Update dependency ipython to v8.21.0 (#466)
+- Update dependency google-api-python-client to v2.116.0 (#465)
+- Update dependency django-debug-toolbar to v4.3.0 (#464)
+- Update dependency @sentry/react to v7.99.0 (#463)
+- Update apache/tika Docker tag to v2.5.0 (#461)
+- Update docker.elastic.co/elasticsearch/elasticsearch Docker tag to v7.17.17 (#460)
+- Update dependency prettier to v3.2.5 (#462)
+- Update dependency social-auth-core to v4.5.2 (#458)
+- Update dependency toolz to v0.12.1 (#459)
+- Update dependency moto to v4.2.14 (#457)
+- Update dependency drf-spectacular to v0.27.1 (#456)
+- Update dependency boto3 to v1.34.34 (#454)
+- Update dependency beautifulsoup4 to v4.12.3 (#453)
+- Update dependency axios to v1.6.7 (#452)
+- Update codecov/codecov-action action to v3.1.6 (#451)
+- Update all non-major dev-dependencies (#450)
+- Added support to set SOCIAL_AUTH_ALLOWED_REDIRECT_HOSTS (#429)
+- do not allow None in levels/languages (#446)
+
Version 0.2.2 (Released February 02, 2024)
-------------
diff --git a/app.json b/app.json
index df41f7770e..a21a120494 100644
--- a/app.json
+++ b/app.json
@@ -20,7 +20,7 @@
"url": "https://github.com/heroku/heroku-buildpack-nginx"
}
],
- "description": "open-discussions",
+ "description": "mit-open",
"env": {
"ALLOWED_HOSTS": {
"description": "",
@@ -547,6 +547,10 @@
"description": "The client secret provided by the OpenID Connect provider.",
"required": false
},
+ "SOCIAL_AUTH_ALLOWED_REDIRECT_HOSTS": {
+ "description": "The list of additional redirect hosts allowed for social auth.",
+ "required": false
+ },
"USERINFO_URL": {
"description": "Provder endpoint where client sends requests for identity claims.",
"required": false
@@ -573,7 +577,7 @@
}
},
"keywords": ["Django", "Python", "MIT", "Office of Digital Learning"],
- "name": "open_discussions",
+ "name": "mit_open",
"repository": "https://github.com/mitodl/mit-open",
"scripts": {
"postdeploy": "./manage.py migrate --noinput"
diff --git a/articles/models.py b/articles/models.py
index 46fa066725..8534a7c898 100644
--- a/articles/models.py
+++ b/articles/models.py
@@ -2,7 +2,7 @@
from django.db import models
-from open_discussions.models import TimestampedModel
+from main.models import TimestampedModel
class Article(TimestampedModel):
diff --git a/articles/views.py b/articles/views.py
index af8434f29a..e5c88c0601 100644
--- a/articles/views.py
+++ b/articles/views.py
@@ -5,7 +5,7 @@
from articles.models import Article
from articles.serializers import ArticleSerializer
-from open_discussions.constants import VALID_HTTP_METHODS
+from main.constants import VALID_HTTP_METHODS
# Create your views here.
diff --git a/articles/views_test.py b/articles/views_test.py
index f3c7ebc6f3..e6bc5b63cd 100644
--- a/articles/views_test.py
+++ b/articles/views_test.py
@@ -3,7 +3,7 @@
import pytest
from rest_framework.reverse import reverse
-from open_discussions.factories import UserFactory
+from main.factories import UserFactory
pytestmark = [pytest.mark.django_db]
diff --git a/authentication/middleware_test.py b/authentication/middleware_test.py
index bc9b1db49a..04f9b83331 100644
--- a/authentication/middleware_test.py
+++ b/authentication/middleware_test.py
@@ -14,7 +14,7 @@
SocialAuthExceptionRedirectMiddleware,
)
from authentication.models import BlockedIPRange
-from open_discussions.factories import UserFactory
+from main.factories import UserFactory
def test_process_exception_no_strategy(mocker, rf, settings):
diff --git a/authentication/models.py b/authentication/models.py
index ecacfa776a..c621ae20fe 100644
--- a/authentication/models.py
+++ b/authentication/models.py
@@ -7,7 +7,7 @@
from django.utils.safestring import mark_safe
from ipware.utils import is_private_ip
-from open_discussions.models import TimestampedModel
+from main.models import TimestampedModel
HELP_TEXT = """
@spam.com: blocks all emails containing `@spam.com` like `joe@spam.com.edu`
diff --git a/authentication/pipeline/user_test.py b/authentication/pipeline/user_test.py
index 8ab1481cf3..3a42b38fad 100644
--- a/authentication/pipeline/user_test.py
+++ b/authentication/pipeline/user_test.py
@@ -3,7 +3,7 @@
import pytest
from authentication.pipeline import user as user_actions
-from open_discussions.factories import UserFactory
+from main.factories import UserFactory
@pytest.mark.parametrize("hijacked", [True, False])
diff --git a/authentication/urls.py b/authentication/urls.py
index 5cc1c7a10a..748e726a86 100644
--- a/authentication/urls.py
+++ b/authentication/urls.py
@@ -1,9 +1,18 @@
"""URL configurations for authentication"""
-from django.urls import re_path
+from django.urls import include, re_path, reverse_lazy
+from django.views.generic.base import RedirectView
from authentication.views import CustomLogoutView
urlpatterns = [
+ re_path(r"", include("social_django.urls", namespace="social")),
+ re_path(
+ r"^login/$",
+ RedirectView.as_view(
+ url=reverse_lazy("social:begin", args=["ol-oidc"]), query_string=True
+ ),
+ name="login",
+ ),
re_path(r"^logout/$", CustomLogoutView.as_view(), name="logout"),
]
diff --git a/channels/api_test.py b/channels/api_test.py
index 99bb9a3210..a9bbf14696 100644
--- a/channels/api_test.py
+++ b/channels/api_test.py
@@ -5,7 +5,7 @@
from channels.api import add_user_role, remove_user_role
from channels.constants import FIELD_ROLE_MODERATORS
from channels.models import FieldChannelGroupRole
-from open_discussions.factories import UserFactory
+from main.factories import UserFactory
pytestmark = pytest.mark.django_db
diff --git a/channels/models.py b/channels/models.py
index c8d4548980..e07eea1cda 100644
--- a/channels/models.py
+++ b/channels/models.py
@@ -9,7 +9,7 @@
from channels.constants import FIELD_ROLE_CHOICES
from learning_resources.models import LearningResource
-from open_discussions.models import TimestampedModel
+from main.models import TimestampedModel
from profiles.utils import avatar_uri, banner_uri
from widgets.models import WidgetList
diff --git a/channels/permissions.py b/channels/permissions.py
index dfe2ad5ee6..53967ce87c 100644
--- a/channels/permissions.py
+++ b/channels/permissions.py
@@ -9,7 +9,7 @@
from channels.api import is_moderator
from channels.models import FieldChannel
-from open_discussions.permissions import is_admin_user
+from main.permissions import is_admin_user
log = logging.getLogger()
diff --git a/channels/permissions_test.py b/channels/permissions_test.py
index 209bfefe9d..c8cc53bc0d 100644
--- a/channels/permissions_test.py
+++ b/channels/permissions_test.py
@@ -6,7 +6,7 @@
from channels import permissions
from channels.api import add_user_role
from channels.constants import FIELD_ROLE_MODERATORS
-from open_discussions.factories import UserFactory
+from main.factories import UserFactory
pytestmark = pytest.mark.django_db
diff --git a/channels/serializers_test.py b/channels/serializers_test.py
index e5eeeea336..86de5f1b65 100644
--- a/channels/serializers_test.py
+++ b/channels/serializers_test.py
@@ -18,7 +18,7 @@
LearningPathPreviewSerializer,
)
from learning_resources.factories import LearningPathFactory
-from open_discussions.factories import UserFactory
+from main.factories import UserFactory
# pylint:disable=redefined-outer-name
pytestmark = pytest.mark.django_db
diff --git a/channels/views.py b/channels/views.py
index 9270385ccc..ba57abb32e 100644
--- a/channels/views.py
+++ b/channels/views.py
@@ -21,7 +21,7 @@
FieldModeratorSerializer,
)
from learning_resources.views import LargePagination
-from open_discussions.constants import VALID_HTTP_METHODS
+from main.constants import VALID_HTTP_METHODS
log = logging.getLogger(__name__)
diff --git a/channels/views_test.py b/channels/views_test.py
index 970b0c26bd..dda2ee011c 100644
--- a/channels/views_test.py
+++ b/channels/views_test.py
@@ -17,7 +17,7 @@
from channels.serializers import FieldChannelSerializer
from learning_resources.constants import LearningResourceType
from learning_resources.factories import LearningResourceFactory
-from open_discussions.factories import UserFactory
+from main.factories import UserFactory
pytestmark = pytest.mark.django_db
diff --git a/ckeditor/views.py b/ckeditor/views.py
index 8c648f9b76..fd52165456 100644
--- a/ckeditor/views.py
+++ b/ckeditor/views.py
@@ -9,7 +9,7 @@
from rest_framework import status
from rest_framework.decorators import api_view, permission_classes
-from open_discussions.permissions import AnonymousAccessReadonlyPermission
+from main.permissions import AnonymousAccessReadonlyPermission
@api_view()
diff --git a/conftest.py b/conftest.py
index be4ccd9188..0ea2a33f4d 100644
--- a/conftest.py
+++ b/conftest.py
@@ -7,7 +7,7 @@
from fixtures.common import * # noqa: F403
from fixtures.opensearch import * # noqa: F403
from fixtures.users import * # noqa: F403
-from open_discussions.exceptions import DoNotUseRequestException
+from main.exceptions import DoNotUseRequestException
@pytest.fixture(autouse=True)
diff --git a/docker-compose-notebook.yml b/docker-compose-notebook.yml
index 8f1151f4e9..511ca5b2f2 100644
--- a/docker-compose-notebook.yml
+++ b/docker-compose-notebook.yml
@@ -26,7 +26,7 @@ services:
- .:/src
environment:
<<: *py-environment
- BASE_DJANGO_APP_NAME: open_discussions
+ BASE_DJANGO_APP_NAME: main
# See https://docs.djangoproject.com/en/4.1/topics/async/#async-safety
# Do no use this outside the notebook
DJANGO_ALLOW_ASYNC_UNSAFE: true
diff --git a/docker-compose.yml b/docker-compose.yml
index 61a1a1fc67..68f41490d2 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -114,8 +114,8 @@ services:
command: >
/bin/bash -c '
sleep 3;
- celery -A open_discussions.celery:app worker -Q default -B -l ${MITOPEN_LOG_LEVEL:-INFO} &
- celery -A open_discussions.celery:app worker -Q edx_content,default -l ${MITOPEN_LOG_LEVEL:-INFO}'
+ celery -A main.celery:app worker -Q default -B -l ${MITOPEN_LOG_LEVEL:-INFO} &
+ celery -A main.celery:app worker -Q edx_content,default -l ${MITOPEN_LOG_LEVEL:-INFO}'
links:
- db
- opensearch-node-mitopen
@@ -124,7 +124,7 @@ services:
- .:/src
- django_media:/var/media
tika:
- image: apache/tika:2.4.0
+ image: apache/tika:2.5.0
ports:
- "9998:9998"
diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock
index 1075ab34a7..73f3af10f6 100644
--- a/docs/Gemfile.lock
+++ b/docs/Gemfile.lock
@@ -9,14 +9,13 @@ GEM
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
- base64 (0.2.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.11.1)
colorator (1.1.0)
commonmarker (0.23.10)
- concurrent-ruby (1.2.2)
+ concurrent-ruby (1.2.3)
dnsruby (1.70.0)
simpleidn (~> 0.2.1)
em-websocket (0.5.3)
@@ -26,11 +25,10 @@ GEM
ffi (>= 1.15.0)
eventmachine (1.2.7)
execjs (2.9.1)
- faraday (2.8.1)
- base64
- faraday-net_http (>= 2.0, < 3.1)
- ruby2_keywords (>= 0.0.4)
- faraday-net_http (3.0.2)
+ faraday (2.9.0)
+ faraday-net_http (>= 2.0, < 3.2)
+ faraday-net_http (3.1.0)
+ net-http
ffi (1.16.3)
forwardable-extended (2.6.0)
gemoji (3.0.1)
@@ -213,8 +211,10 @@ GEM
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
- minitest (5.20.0)
- nokogiri (1.16.0)
+ minitest (5.21.2)
+ net-http (0.4.1)
+ uri
+ nokogiri (1.16.2)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
octokit (4.25.1)
@@ -229,7 +229,6 @@ GEM
ffi (~> 1.0)
rexml (3.2.6)
rouge (3.26.0)
- ruby2_keywords (0.0.5)
rubyzip (2.3.2)
safe_yaml (1.0.5)
sass (3.7.4)
@@ -249,12 +248,13 @@ GEM
ethon (>= 0.9.0)
tzinfo (1.2.11)
thread_safe (~> 0.1)
- tzinfo-data (1.2023.4)
+ tzinfo-data (1.2024.1)
tzinfo (>= 1.0.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.9.1)
unicode-display_width (1.8.0)
+ uri (0.13.0)
wdm (0.1.1)
zeitwerk (2.6.12)
diff --git a/docs/index.md b/docs/index.md
index ae8874f361..e4a32807e8 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -6,7 +6,7 @@ nav_order: 0
---
-Documentation gets published via Github pages to [https://mitodl.github.io/open-discussions/](https://mitodl.github.io/open-discussions/)
+Documentation gets published via Github pages to [https://mitodl.github.io/mit-open/](https://mitodl.github.io/mit-open/)
## Running locally
diff --git a/docs/integration.md b/docs/integration.md
deleted file mode 100644
index 1136d0b76d..0000000000
--- a/docs/integration.md
+++ /dev/null
@@ -1,5 +0,0 @@
-## Integration
-
-Integration with `open-discussions` is done so using the [open-disucssions-client](https://github.com/mitodl/open-discussions-client) project, which is [available on pypi](https://pypi.python.org/pypi/open-discussions-client).
-
-The client should be configured with a username matching a `django.contrib.auth.models.User` record in `open-discussions`.
diff --git a/embedly/views.py b/embedly/views.py
index 3cc949bd28..49d2213353 100644
--- a/embedly/views.py
+++ b/embedly/views.py
@@ -8,7 +8,7 @@
from rest_framework.response import Response
from embedly.api import get_embedly_summary
-from open_discussions.permissions import AnonymousAccessReadonlyPermission
+from main.permissions import AnonymousAccessReadonlyPermission
@api_view()
diff --git a/fixtures/common.py b/fixtures/common.py
index bc8cc9ea60..917b002185 100644
--- a/fixtures/common.py
+++ b/fixtures/common.py
@@ -11,7 +11,7 @@
from pytest_mock import PytestMockWarning
from urllib3.exceptions import InsecureRequestWarning
-from open_discussions.factories import UserFactory
+from main.factories import UserFactory
@pytest.fixture(autouse=True)
diff --git a/fixtures/users.py b/fixtures/users.py
index 9be5d8da06..60e40ba74c 100644
--- a/fixtures/users.py
+++ b/fixtures/users.py
@@ -8,7 +8,7 @@
from rest_framework.test import APIClient
from rest_framework_jwt.settings import api_settings
-from open_discussions.factories import UserFactory
+from main.factories import UserFactory
@pytest.fixture()
diff --git a/frontends/README.md b/frontends/README.md
index f47d01ff3f..b94feebe08 100644
--- a/frontends/README.md
+++ b/frontends/README.md
@@ -14,7 +14,7 @@ frontends/
To aid in separating concerns, we should strive to write code with independent, clearly defined contracts that can be extracted to isolated packages (workspaces) and re-used throughout this project.
-**Flow vs Typescript:** The majority of the frontend code in this project is in the `open-discussions` workspace and is written in Javascript + FlowType. We are in the process of migrating the codebase to Typescript and all other packages should be written in Typescript.
+**Flow vs Typescript:** The majority of the frontend code in this project is in the `mit-open` workspace and is written in Javascript + FlowType. We are in the process of migrating the codebase to Typescript and all other packages should be written in Typescript.
## Running Yarn Commands
diff --git a/frontends/api/src/generated/api.ts b/frontends/api/src/generated/api.ts
index cc18cfed79..0c90b57deb 100644
--- a/frontends/api/src/generated/api.ts
+++ b/frontends/api/src/generated/api.ts
@@ -4397,41 +4397,37 @@ export const ContentfilesApiAxiosParamCreator = function (
/**
* Viewset for ContentFiles
* @summary List
- * @param {number} learning_resource_id2 id of the parent learning resource
- * @param {string} [content_feature_type] Content feature type for the content file. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {number} [learning_resource_id] The id of the learning resource the content file belongs to
- * @param {string} [learning_resource_readable_id] The readable id of the learning resource the content file belongs to
+ * @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 {ContentfilesListOfferedByEnum} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {ContentfilesListPlatformEnum} [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
- * @param {number} [run_id] The id of the learning resource run the content file belongs to
- * @param {string} [run_readable_id] The readable id of the learning resource run the content file belongs to
+ * @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
+ * @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.
* @throws {RequiredError}
*/
contentfilesList: async (
- learning_resource_id2: number,
- content_feature_type?: string,
- learning_resource_id?: number,
- learning_resource_readable_id?: string,
+ learning_resource_id: number,
+ content_feature_type?: Array,
limit?: number,
- offered_by?: ContentfilesListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: ContentfilesListPlatformEnum,
- run_id?: number,
- run_readable_id?: string,
+ platform?: Array,
+ resource_id?: Array,
+ run_id?: Array,
options: RawAxiosRequestConfig = {},
): Promise => {
- // verify required parameter 'learning_resource_id2' is not null or undefined
+ // verify required parameter 'learning_resource_id' is not null or undefined
assertParamExists(
"contentfilesList",
- "learning_resource_id2",
- learning_resource_id2,
+ "learning_resource_id",
+ learning_resource_id,
)
const localVarPath = `/api/v1/contentfiles/`.replace(
`{${"learning_resource_id"}}`,
- encodeURIComponent(String(learning_resource_id2)),
+ encodeURIComponent(String(learning_resource_id)),
)
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
@@ -4448,24 +4444,16 @@ export const ContentfilesApiAxiosParamCreator = function (
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
- if (content_feature_type !== undefined) {
- localVarQueryParameter["content_feature_type"] = content_feature_type
- }
-
- if (learning_resource_id !== undefined) {
- localVarQueryParameter["learning_resource_id"] = learning_resource_id
- }
-
- if (learning_resource_readable_id !== undefined) {
- localVarQueryParameter["learning_resource_readable_id"] =
- learning_resource_readable_id
+ if (content_feature_type) {
+ localVarQueryParameter["content_feature_type"] =
+ content_feature_type.join(COLLECTION_FORMATS.csv)
}
if (limit !== undefined) {
localVarQueryParameter["limit"] = limit
}
- if (offered_by !== undefined) {
+ if (offered_by) {
localVarQueryParameter["offered_by"] = offered_by
}
@@ -4473,16 +4461,18 @@ export const ContentfilesApiAxiosParamCreator = function (
localVarQueryParameter["offset"] = offset
}
- if (platform !== undefined) {
+ if (platform) {
localVarQueryParameter["platform"] = platform
}
- if (run_id !== undefined) {
- localVarQueryParameter["run_id"] = run_id
+ if (resource_id) {
+ localVarQueryParameter["resource_id"] = resource_id.join(
+ COLLECTION_FORMATS.csv,
+ )
}
- if (run_readable_id !== undefined) {
- localVarQueryParameter["run_readable_id"] = run_readable_id
+ if (run_id) {
+ localVarQueryParameter["run_id"] = run_id.join(COLLECTION_FORMATS.csv)
}
setSearchParams(localVarUrlObj, localVarQueryParameter)
@@ -4569,30 +4559,26 @@ export const ContentfilesApiFp = function (configuration?: Configuration) {
/**
* Viewset for ContentFiles
* @summary List
- * @param {number} learning_resource_id2 id of the parent learning resource
- * @param {string} [content_feature_type] Content feature type for the content file. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {number} [learning_resource_id] The id of the learning resource the content file belongs to
- * @param {string} [learning_resource_readable_id] The readable id of the learning resource the content file belongs to
+ * @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 {ContentfilesListOfferedByEnum} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {ContentfilesListPlatformEnum} [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
- * @param {number} [run_id] The id of the learning resource run the content file belongs to
- * @param {string} [run_readable_id] The readable id of the learning resource run the content file belongs to
+ * @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
+ * @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.
* @throws {RequiredError}
*/
async contentfilesList(
- learning_resource_id2: number,
- content_feature_type?: string,
- learning_resource_id?: number,
- learning_resource_readable_id?: string,
+ learning_resource_id: number,
+ content_feature_type?: Array,
limit?: number,
- offered_by?: ContentfilesListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: ContentfilesListPlatformEnum,
- run_id?: number,
- run_readable_id?: string,
+ platform?: Array,
+ resource_id?: Array,
+ run_id?: Array,
options?: RawAxiosRequestConfig,
): Promise<
(
@@ -4602,16 +4588,14 @@ export const ContentfilesApiFp = function (configuration?: Configuration) {
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.contentfilesList(
- learning_resource_id2,
- content_feature_type,
learning_resource_id,
- learning_resource_readable_id,
+ content_feature_type,
limit,
offered_by,
offset,
platform,
+ resource_id,
run_id,
- run_readable_id,
options,
)
const index = configuration?.serverIndex ?? 0
@@ -4684,16 +4668,14 @@ export const ContentfilesApiFactory = function (
): AxiosPromise {
return localVarFp
.contentfilesList(
- requestParameters.learning_resource_id2,
- requestParameters.content_feature_type,
requestParameters.learning_resource_id,
- requestParameters.learning_resource_readable_id,
+ requestParameters.content_feature_type,
requestParameters.limit,
requestParameters.offered_by,
requestParameters.offset,
requestParameters.platform,
+ requestParameters.resource_id,
requestParameters.run_id,
- requestParameters.run_readable_id,
options,
)
.then((request) => request(axios, basePath))
@@ -4731,28 +4713,14 @@ export interface ContentfilesApiContentfilesListRequest {
* @type {number}
* @memberof ContentfilesApiContentfilesList
*/
- readonly learning_resource_id2: number
-
- /**
- * Content feature type for the content file. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @type {string}
- * @memberof ContentfilesApiContentfilesList
- */
- readonly content_feature_type?: string
-
- /**
- * The id of the learning resource the content file belongs to
- * @type {number}
- * @memberof ContentfilesApiContentfilesList
- */
- readonly learning_resource_id?: number
+ readonly learning_resource_id: number
/**
- * The readable id of the learning resource the content file belongs to
- * @type {string}
+ * Multiple values may be separated by commas.
+ * @type {Array}
* @memberof ContentfilesApiContentfilesList
*/
- readonly learning_resource_readable_id?: string
+ readonly content_feature_type?: Array
/**
* Number of results to return per page.
@@ -4763,10 +4731,10 @@ export interface ContentfilesApiContentfilesListRequest {
/**
* The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
- * @type {'bootcamps' | 'csail' | 'ctl' | 'mitpe' | 'mitx' | 'ocw' | 'scc' | 'see' | 'xpro'}
+ * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'mitpe' | 'mitx' | 'ocw' | 'scc' | 'see' | 'xpro'>}
* @memberof ContentfilesApiContentfilesList
*/
- readonly offered_by?: ContentfilesListOfferedByEnum
+ readonly offered_by?: Array
/**
* The initial index from which to return the results.
@@ -4777,24 +4745,24 @@ export interface ContentfilesApiContentfilesListRequest {
/**
* 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
- * @type {'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro'}
+ * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro'>}
* @memberof ContentfilesApiContentfilesList
*/
- readonly platform?: ContentfilesListPlatformEnum
+ readonly platform?: Array
/**
- * The id of the learning resource run the content file belongs to
- * @type {number}
+ * Multiple values may be separated by commas.
+ * @type {Array}
* @memberof ContentfilesApiContentfilesList
*/
- readonly run_id?: number
+ readonly resource_id?: Array
/**
- * The readable id of the learning resource run the content file belongs to
- * @type {string}
+ * Multiple values may be separated by commas.
+ * @type {Array}
* @memberof ContentfilesApiContentfilesList
*/
- readonly run_readable_id?: string
+ readonly run_id?: Array
}
/**
@@ -4839,16 +4807,14 @@ export class ContentfilesApi extends BaseAPI {
) {
return ContentfilesApiFp(this.configuration)
.contentfilesList(
- requestParameters.learning_resource_id2,
- requestParameters.content_feature_type,
requestParameters.learning_resource_id,
- requestParameters.learning_resource_readable_id,
+ requestParameters.content_feature_type,
requestParameters.limit,
requestParameters.offered_by,
requestParameters.offset,
requestParameters.platform,
+ requestParameters.resource_id,
requestParameters.run_id,
- requestParameters.run_readable_id,
options,
)
.then((request) => request(this.axios, this.basePath))
@@ -5241,42 +5207,38 @@ export const CoursesApiAxiosParamCreator = function (
/**
* Show content files for a learning resource
* @summary Learning Resource Content File List
- * @param {number} learning_resource_id2 id of the parent learning resource
- * @param {string} [content_feature_type] Content feature type for the content file. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {number} [learning_resource_id] The id of the learning resource the content file belongs to
- * @param {string} [learning_resource_readable_id] The readable id of the learning resource the content file belongs to
+ * @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 {CoursesContentfilesListOfferedByEnum} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {CoursesContentfilesListPlatformEnum} [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
- * @param {number} [run_id] The id of the learning resource run the content file belongs to
- * @param {string} [run_readable_id] The readable id of the learning resource run the content file belongs to
+ * @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
+ * @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.
* @throws {RequiredError}
*/
coursesContentfilesList: async (
- learning_resource_id2: number,
- content_feature_type?: string,
- learning_resource_id?: number,
- learning_resource_readable_id?: string,
+ learning_resource_id: number,
+ content_feature_type?: Array,
limit?: number,
- offered_by?: CoursesContentfilesListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: CoursesContentfilesListPlatformEnum,
- run_id?: number,
- run_readable_id?: string,
+ platform?: Array,
+ resource_id?: Array,
+ run_id?: Array,
options: RawAxiosRequestConfig = {},
): Promise => {
- // verify required parameter 'learning_resource_id2' is not null or undefined
+ // verify required parameter 'learning_resource_id' is not null or undefined
assertParamExists(
"coursesContentfilesList",
- "learning_resource_id2",
- learning_resource_id2,
+ "learning_resource_id",
+ learning_resource_id,
)
const localVarPath =
`/api/v1/courses/{learning_resource_id}/contentfiles/`.replace(
`{${"learning_resource_id"}}`,
- encodeURIComponent(String(learning_resource_id2)),
+ encodeURIComponent(String(learning_resource_id)),
)
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
@@ -5293,24 +5255,16 @@ export const CoursesApiAxiosParamCreator = function (
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
- if (content_feature_type !== undefined) {
- localVarQueryParameter["content_feature_type"] = content_feature_type
- }
-
- if (learning_resource_id !== undefined) {
- localVarQueryParameter["learning_resource_id"] = learning_resource_id
- }
-
- if (learning_resource_readable_id !== undefined) {
- localVarQueryParameter["learning_resource_readable_id"] =
- learning_resource_readable_id
+ if (content_feature_type) {
+ localVarQueryParameter["content_feature_type"] =
+ content_feature_type.join(COLLECTION_FORMATS.csv)
}
if (limit !== undefined) {
localVarQueryParameter["limit"] = limit
}
- if (offered_by !== undefined) {
+ if (offered_by) {
localVarQueryParameter["offered_by"] = offered_by
}
@@ -5318,16 +5272,18 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["offset"] = offset
}
- if (platform !== undefined) {
+ if (platform) {
localVarQueryParameter["platform"] = platform
}
- if (run_id !== undefined) {
- localVarQueryParameter["run_id"] = run_id
+ if (resource_id) {
+ localVarQueryParameter["resource_id"] = resource_id.join(
+ COLLECTION_FORMATS.csv,
+ )
}
- if (run_readable_id !== undefined) {
- localVarQueryParameter["run_readable_id"] = run_readable_id
+ if (run_id) {
+ localVarQueryParameter["run_id"] = run_id.join(COLLECTION_FORMATS.csv)
}
setSearchParams(localVarUrlObj, localVarQueryParameter)
@@ -5404,32 +5360,32 @@ export const CoursesApiAxiosParamCreator = function (
/**
* Get a paginated list of courses
* @summary List
- * @param {string} [course_feature] Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {CoursesListDepartmentEnum} [department] The department that offers learning resources * `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 {CoursesListLevelEnum} [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 {Array} [course_feature] Multiple values may be separated by commas.
+ * @param {Array} [department] The department that offers learning resources * `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 {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 {CoursesListOfferedByEnum} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {CoursesListPlatformEnum} [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
+ * @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
* @param {boolean} [professional]
- * @param {CoursesListResourceTypeEnum} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
+ * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
* @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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
- * @param {string} [topic] Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
+ * @param {Array} [topic] Multiple values may be separated by commas.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
coursesList: async (
- course_feature?: string,
- department?: CoursesListDepartmentEnum,
- level?: CoursesListLevelEnum,
+ course_feature?: Array,
+ department?: Array,
+ level?: Array,
limit?: number,
- offered_by?: CoursesListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: CoursesListPlatformEnum,
+ platform?: Array,
professional?: boolean,
- resource_type?: CoursesListResourceTypeEnum,
+ resource_type?: Array,
sortby?: CoursesListSortbyEnum,
- topic?: string,
+ topic?: Array,
options: RawAxiosRequestConfig = {},
): Promise => {
const localVarPath = `/api/v1/courses/`
@@ -5448,15 +5404,17 @@ export const CoursesApiAxiosParamCreator = function (
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
- if (course_feature !== undefined) {
- localVarQueryParameter["course_feature"] = course_feature
+ if (course_feature) {
+ localVarQueryParameter["course_feature"] = course_feature.join(
+ COLLECTION_FORMATS.csv,
+ )
}
- if (department !== undefined) {
+ if (department) {
localVarQueryParameter["department"] = department
}
- if (level !== undefined) {
+ if (level) {
localVarQueryParameter["level"] = level
}
@@ -5464,7 +5422,7 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["limit"] = limit
}
- if (offered_by !== undefined) {
+ if (offered_by) {
localVarQueryParameter["offered_by"] = offered_by
}
@@ -5472,7 +5430,7 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["offset"] = offset
}
- if (platform !== undefined) {
+ if (platform) {
localVarQueryParameter["platform"] = platform
}
@@ -5480,7 +5438,7 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["professional"] = professional
}
- if (resource_type !== undefined) {
+ if (resource_type) {
localVarQueryParameter["resource_type"] = resource_type
}
@@ -5488,8 +5446,8 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["sortby"] = sortby
}
- if (topic !== undefined) {
- localVarQueryParameter["topic"] = topic
+ if (topic) {
+ localVarQueryParameter["topic"] = topic.join(COLLECTION_FORMATS.csv)
}
setSearchParams(localVarUrlObj, localVarQueryParameter)
@@ -5509,32 +5467,32 @@ export const CoursesApiAxiosParamCreator = function (
/**
* Get a paginated list of newly released Courses.
* @summary List New
- * @param {string} [course_feature] Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {CoursesNewListDepartmentEnum} [department] The department that offers learning resources * `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 {CoursesNewListLevelEnum} [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 {Array} [course_feature] Multiple values may be separated by commas.
+ * @param {Array} [department] The department that offers learning resources * `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 {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 {CoursesNewListOfferedByEnum} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {CoursesNewListPlatformEnum} [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
+ * @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
* @param {boolean} [professional]
- * @param {CoursesNewListResourceTypeEnum} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
+ * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
* @param {CoursesNewListSortbyEnum} [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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
- * @param {string} [topic] Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
+ * @param {Array} [topic] Multiple values may be separated by commas.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
coursesNewList: async (
- course_feature?: string,
- department?: CoursesNewListDepartmentEnum,
- level?: CoursesNewListLevelEnum,
+ course_feature?: Array,
+ department?: Array,
+ level?: Array,
limit?: number,
- offered_by?: CoursesNewListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: CoursesNewListPlatformEnum,
+ platform?: Array,
professional?: boolean,
- resource_type?: CoursesNewListResourceTypeEnum,
+ resource_type?: Array,
sortby?: CoursesNewListSortbyEnum,
- topic?: string,
+ topic?: Array,
options: RawAxiosRequestConfig = {},
): Promise => {
const localVarPath = `/api/v1/courses/new/`
@@ -5553,15 +5511,17 @@ export const CoursesApiAxiosParamCreator = function (
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
- if (course_feature !== undefined) {
- localVarQueryParameter["course_feature"] = course_feature
+ if (course_feature) {
+ localVarQueryParameter["course_feature"] = course_feature.join(
+ COLLECTION_FORMATS.csv,
+ )
}
- if (department !== undefined) {
+ if (department) {
localVarQueryParameter["department"] = department
}
- if (level !== undefined) {
+ if (level) {
localVarQueryParameter["level"] = level
}
@@ -5569,7 +5529,7 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["limit"] = limit
}
- if (offered_by !== undefined) {
+ if (offered_by) {
localVarQueryParameter["offered_by"] = offered_by
}
@@ -5577,7 +5537,7 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["offset"] = offset
}
- if (platform !== undefined) {
+ if (platform) {
localVarQueryParameter["platform"] = platform
}
@@ -5585,7 +5545,7 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["professional"] = professional
}
- if (resource_type !== undefined) {
+ if (resource_type) {
localVarQueryParameter["resource_type"] = resource_type
}
@@ -5593,8 +5553,8 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["sortby"] = sortby
}
- if (topic !== undefined) {
- localVarQueryParameter["topic"] = topic
+ if (topic) {
+ localVarQueryParameter["topic"] = topic.join(COLLECTION_FORMATS.csv)
}
setSearchParams(localVarUrlObj, localVarQueryParameter)
@@ -5660,32 +5620,32 @@ export const CoursesApiAxiosParamCreator = function (
/**
* Get a paginated list of upcoming Courses.
* @summary List Upcoming
- * @param {string} [course_feature] Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {CoursesUpcomingListDepartmentEnum} [department] The department that offers learning resources * `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 {CoursesUpcomingListLevelEnum} [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 {Array} [course_feature] Multiple values may be separated by commas.
+ * @param {Array} [department] The department that offers learning resources * `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 {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 {CoursesUpcomingListOfferedByEnum} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {CoursesUpcomingListPlatformEnum} [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
+ * @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
* @param {boolean} [professional]
- * @param {CoursesUpcomingListResourceTypeEnum} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
+ * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
* @param {CoursesUpcomingListSortbyEnum} [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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
- * @param {string} [topic] Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
+ * @param {Array} [topic] Multiple values may be separated by commas.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
coursesUpcomingList: async (
- course_feature?: string,
- department?: CoursesUpcomingListDepartmentEnum,
- level?: CoursesUpcomingListLevelEnum,
+ course_feature?: Array,
+ department?: Array,
+ level?: Array,
limit?: number,
- offered_by?: CoursesUpcomingListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: CoursesUpcomingListPlatformEnum,
+ platform?: Array,
professional?: boolean,
- resource_type?: CoursesUpcomingListResourceTypeEnum,
+ resource_type?: Array,
sortby?: CoursesUpcomingListSortbyEnum,
- topic?: string,
+ topic?: Array,
options: RawAxiosRequestConfig = {},
): Promise => {
const localVarPath = `/api/v1/courses/upcoming/`
@@ -5704,15 +5664,17 @@ export const CoursesApiAxiosParamCreator = function (
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
- if (course_feature !== undefined) {
- localVarQueryParameter["course_feature"] = course_feature
+ if (course_feature) {
+ localVarQueryParameter["course_feature"] = course_feature.join(
+ COLLECTION_FORMATS.csv,
+ )
}
- if (department !== undefined) {
+ if (department) {
localVarQueryParameter["department"] = department
}
- if (level !== undefined) {
+ if (level) {
localVarQueryParameter["level"] = level
}
@@ -5720,7 +5682,7 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["limit"] = limit
}
- if (offered_by !== undefined) {
+ if (offered_by) {
localVarQueryParameter["offered_by"] = offered_by
}
@@ -5728,7 +5690,7 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["offset"] = offset
}
- if (platform !== undefined) {
+ if (platform) {
localVarQueryParameter["platform"] = platform
}
@@ -5736,7 +5698,7 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["professional"] = professional
}
- if (resource_type !== undefined) {
+ if (resource_type) {
localVarQueryParameter["resource_type"] = resource_type
}
@@ -5744,8 +5706,8 @@ export const CoursesApiAxiosParamCreator = function (
localVarQueryParameter["sortby"] = sortby
}
- if (topic !== undefined) {
- localVarQueryParameter["topic"] = topic
+ if (topic) {
+ localVarQueryParameter["topic"] = topic.join(COLLECTION_FORMATS.csv)
}
setSearchParams(localVarUrlObj, localVarQueryParameter)
@@ -5775,30 +5737,26 @@ export const CoursesApiFp = function (configuration?: Configuration) {
/**
* Show content files for a learning resource
* @summary Learning Resource Content File List
- * @param {number} learning_resource_id2 id of the parent learning resource
- * @param {string} [content_feature_type] Content feature type for the content file. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {number} [learning_resource_id] The id of the learning resource the content file belongs to
- * @param {string} [learning_resource_readable_id] The readable id of the learning resource the content file belongs to
+ * @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 {CoursesContentfilesListOfferedByEnum} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {CoursesContentfilesListPlatformEnum} [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
- * @param {number} [run_id] The id of the learning resource run the content file belongs to
- * @param {string} [run_readable_id] The readable id of the learning resource run the content file belongs to
+ * @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
+ * @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.
* @throws {RequiredError}
*/
async coursesContentfilesList(
- learning_resource_id2: number,
- content_feature_type?: string,
- learning_resource_id?: number,
- learning_resource_readable_id?: string,
+ learning_resource_id: number,
+ content_feature_type?: Array,
limit?: number,
- offered_by?: CoursesContentfilesListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: CoursesContentfilesListPlatformEnum,
- run_id?: number,
- run_readable_id?: string,
+ platform?: Array,
+ resource_id?: Array,
+ run_id?: Array,
options?: RawAxiosRequestConfig,
): Promise<
(
@@ -5808,16 +5766,14 @@ export const CoursesApiFp = function (configuration?: Configuration) {
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.coursesContentfilesList(
- learning_resource_id2,
- content_feature_type,
learning_resource_id,
- learning_resource_readable_id,
+ content_feature_type,
limit,
offered_by,
offset,
platform,
+ resource_id,
run_id,
- run_readable_id,
options,
)
const index = configuration?.serverIndex ?? 0
@@ -5867,32 +5823,32 @@ export const CoursesApiFp = function (configuration?: Configuration) {
/**
* Get a paginated list of courses
* @summary List
- * @param {string} [course_feature] Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {CoursesListDepartmentEnum} [department] The department that offers learning resources * `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 {CoursesListLevelEnum} [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 {Array} [course_feature] Multiple values may be separated by commas.
+ * @param {Array} [department] The department that offers learning resources * `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 {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 {CoursesListOfferedByEnum} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {CoursesListPlatformEnum} [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
+ * @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
* @param {boolean} [professional]
- * @param {CoursesListResourceTypeEnum} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
+ * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
* @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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
- * @param {string} [topic] Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
+ * @param {Array} [topic] Multiple values may be separated by commas.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async coursesList(
- course_feature?: string,
- department?: CoursesListDepartmentEnum,
- level?: CoursesListLevelEnum,
+ course_feature?: Array,
+ department?: Array,
+ level?: Array,
limit?: number,
- offered_by?: CoursesListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: CoursesListPlatformEnum,
+ platform?: Array,
professional?: boolean,
- resource_type?: CoursesListResourceTypeEnum,
+ resource_type?: Array,
sortby?: CoursesListSortbyEnum,
- topic?: string,
+ topic?: Array,
options?: RawAxiosRequestConfig,
): Promise<
(
@@ -5928,32 +5884,32 @@ export const CoursesApiFp = function (configuration?: Configuration) {
/**
* Get a paginated list of newly released Courses.
* @summary List New
- * @param {string} [course_feature] Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {CoursesNewListDepartmentEnum} [department] The department that offers learning resources * `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 {CoursesNewListLevelEnum} [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 {Array} [course_feature] Multiple values may be separated by commas.
+ * @param {Array} [department] The department that offers learning resources * `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 {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 {CoursesNewListOfferedByEnum} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {CoursesNewListPlatformEnum} [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
+ * @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
* @param {boolean} [professional]
- * @param {CoursesNewListResourceTypeEnum} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
+ * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
* @param {CoursesNewListSortbyEnum} [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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
- * @param {string} [topic] Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
+ * @param {Array} [topic] Multiple values may be separated by commas.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async coursesNewList(
- course_feature?: string,
- department?: CoursesNewListDepartmentEnum,
- level?: CoursesNewListLevelEnum,
+ course_feature?: Array,
+ department?: Array,
+ level?: Array,
limit?: number,
- offered_by?: CoursesNewListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: CoursesNewListPlatformEnum,
+ platform?: Array,
professional?: boolean,
- resource_type?: CoursesNewListResourceTypeEnum,
+ resource_type?: Array,
sortby?: CoursesNewListSortbyEnum,
- topic?: string,
+ topic?: Array,
options?: RawAxiosRequestConfig,
): Promise<
(
@@ -6017,32 +5973,32 @@ export const CoursesApiFp = function (configuration?: Configuration) {
/**
* Get a paginated list of upcoming Courses.
* @summary List Upcoming
- * @param {string} [course_feature] Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {CoursesUpcomingListDepartmentEnum} [department] The department that offers learning resources * `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 {CoursesUpcomingListLevelEnum} [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 {Array} [course_feature] Multiple values may be separated by commas.
+ * @param {Array} [department] The department that offers learning resources * `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 {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 {CoursesUpcomingListOfferedByEnum} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {CoursesUpcomingListPlatformEnum} [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
+ * @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
* @param {boolean} [professional]
- * @param {CoursesUpcomingListResourceTypeEnum} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
+ * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
* @param {CoursesUpcomingListSortbyEnum} [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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
- * @param {string} [topic] Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
+ * @param {Array} [topic] Multiple values may be separated by commas.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async coursesUpcomingList(
- course_feature?: string,
- department?: CoursesUpcomingListDepartmentEnum,
- level?: CoursesUpcomingListLevelEnum,
+ course_feature?: Array,
+ department?: Array,
+ level?: Array,
limit?: number,
- offered_by?: CoursesUpcomingListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: CoursesUpcomingListPlatformEnum,
+ platform?: Array,
professional?: boolean,
- resource_type?: CoursesUpcomingListResourceTypeEnum,
+ resource_type?: Array,
sortby?: CoursesUpcomingListSortbyEnum,
- topic?: string,
+ topic?: Array,
options?: RawAxiosRequestConfig,
): Promise<
(
@@ -6103,16 +6059,14 @@ export const CoursesApiFactory = function (
): AxiosPromise {
return localVarFp
.coursesContentfilesList(
- requestParameters.learning_resource_id2,
- requestParameters.content_feature_type,
requestParameters.learning_resource_id,
- requestParameters.learning_resource_readable_id,
+ requestParameters.content_feature_type,
requestParameters.limit,
requestParameters.offered_by,
requestParameters.offset,
requestParameters.platform,
+ requestParameters.resource_id,
requestParameters.run_id,
- requestParameters.run_readable_id,
options,
)
.then((request) => request(axios, basePath))
@@ -6249,28 +6203,14 @@ export interface CoursesApiCoursesContentfilesListRequest {
* @type {number}
* @memberof CoursesApiCoursesContentfilesList
*/
- readonly learning_resource_id2: number
-
- /**
- * Content feature type for the content file. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @type {string}
- * @memberof CoursesApiCoursesContentfilesList
- */
- readonly content_feature_type?: string
-
- /**
- * The id of the learning resource the content file belongs to
- * @type {number}
- * @memberof CoursesApiCoursesContentfilesList
- */
- readonly learning_resource_id?: number
+ readonly learning_resource_id: number
/**
- * The readable id of the learning resource the content file belongs to
- * @type {string}
+ * Multiple values may be separated by commas.
+ * @type {Array}
* @memberof CoursesApiCoursesContentfilesList
*/
- readonly learning_resource_readable_id?: string
+ readonly content_feature_type?: Array
/**
* Number of results to return per page.
@@ -6281,10 +6221,10 @@ export interface CoursesApiCoursesContentfilesListRequest {
/**
* The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
- * @type {'bootcamps' | 'csail' | 'ctl' | 'mitpe' | 'mitx' | 'ocw' | 'scc' | 'see' | 'xpro'}
+ * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'mitpe' | 'mitx' | 'ocw' | 'scc' | 'see' | 'xpro'>}
* @memberof CoursesApiCoursesContentfilesList
*/
- readonly offered_by?: CoursesContentfilesListOfferedByEnum
+ readonly offered_by?: Array
/**
* The initial index from which to return the results.
@@ -6295,24 +6235,24 @@ export interface CoursesApiCoursesContentfilesListRequest {
/**
* 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
- * @type {'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro'}
+ * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro'>}
* @memberof CoursesApiCoursesContentfilesList
*/
- readonly platform?: CoursesContentfilesListPlatformEnum
+ readonly platform?: Array
/**
- * The id of the learning resource run the content file belongs to
- * @type {number}
+ * Multiple values may be separated by commas.
+ * @type {Array}
* @memberof CoursesApiCoursesContentfilesList
*/
- readonly run_id?: number
+ readonly resource_id?: Array
/**
- * The readable id of the learning resource run the content file belongs to
- * @type {string}
+ * Multiple values may be separated by commas.
+ * @type {Array}
* @memberof CoursesApiCoursesContentfilesList
*/
- readonly run_readable_id?: string
+ readonly run_id?: Array
}
/**
@@ -6343,25 +6283,25 @@ export interface CoursesApiCoursesContentfilesRetrieveRequest {
*/
export interface CoursesApiCoursesListRequest {
/**
- * Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @type {string}
+ * Multiple values may be separated by commas.
+ * @type {Array}
* @memberof CoursesApiCoursesList
*/
- readonly course_feature?: string
+ readonly course_feature?: Array
/**
* The department that offers learning resources * `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
- * @type {'1' | '10' | '11' | '12' | '14' | '15' | '16' | '17' | '18' | '2' | '20' | '21A' | '21G' | '21H' | '21L' | '21M' | '22' | '24' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'CC' | 'CMS-W' | 'EC' | 'ES' | 'ESD' | 'HST' | 'IDS' | 'MAS' | 'PE' | 'RES' | 'STS' | 'WGS'}
+ * @type {Array<'1' | '10' | '11' | '12' | '14' | '15' | '16' | '17' | '18' | '2' | '20' | '21A' | '21G' | '21H' | '21L' | '21M' | '22' | '24' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'CC' | 'CMS-W' | 'EC' | 'ES' | 'ESD' | 'HST' | 'IDS' | 'MAS' | 'PE' | 'RES' | 'STS' | 'WGS'>}
* @memberof CoursesApiCoursesList
*/
- readonly department?: CoursesListDepartmentEnum
+ readonly department?: Array
/**
* The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory
- * @type {'advanced' | 'graduate' | 'high_school' | 'intermediate' | 'introductory' | 'noncredit' | 'undergraduate'}
+ * @type {Array<'advanced' | 'graduate' | 'high_school' | 'intermediate' | 'introductory' | 'noncredit' | 'undergraduate'>}
* @memberof CoursesApiCoursesList
*/
- readonly level?: CoursesListLevelEnum
+ readonly level?: Array
/**
* Number of results to return per page.
@@ -6372,10 +6312,10 @@ export interface CoursesApiCoursesListRequest {
/**
* The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
- * @type {'bootcamps' | 'csail' | 'ctl' | 'mitpe' | 'mitx' | 'ocw' | 'scc' | 'see' | 'xpro'}
+ * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'mitpe' | 'mitx' | 'ocw' | 'scc' | 'see' | 'xpro'>}
* @memberof CoursesApiCoursesList
*/
- readonly offered_by?: CoursesListOfferedByEnum
+ readonly offered_by?: Array
/**
* The initial index from which to return the results.
@@ -6386,10 +6326,10 @@ export interface CoursesApiCoursesListRequest {
/**
* 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
- * @type {'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro'}
+ * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro'>}
* @memberof CoursesApiCoursesList
*/
- readonly platform?: CoursesListPlatformEnum
+ readonly platform?: Array
/**
*
@@ -6400,10 +6340,10 @@ export interface CoursesApiCoursesListRequest {
/**
* The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
- * @type {'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program'}
+ * @type {Array<'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program'>}
* @memberof CoursesApiCoursesList
*/
- readonly resource_type?: CoursesListResourceTypeEnum
+ readonly resource_type?: Array
/**
* 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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
@@ -6413,11 +6353,11 @@ export interface CoursesApiCoursesListRequest {
readonly sortby?: CoursesListSortbyEnum
/**
- * Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
- * @type {string}
+ * Multiple values may be separated by commas.
+ * @type {Array}
* @memberof CoursesApiCoursesList
*/
- readonly topic?: string
+ readonly topic?: Array
}
/**
@@ -6427,25 +6367,25 @@ export interface CoursesApiCoursesListRequest {
*/
export interface CoursesApiCoursesNewListRequest {
/**
- * Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @type {string}
+ * Multiple values may be separated by commas.
+ * @type {Array}
* @memberof CoursesApiCoursesNewList
*/
- readonly course_feature?: string
+ readonly course_feature?: Array
/**
* The department that offers learning resources * `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
- * @type {'1' | '10' | '11' | '12' | '14' | '15' | '16' | '17' | '18' | '2' | '20' | '21A' | '21G' | '21H' | '21L' | '21M' | '22' | '24' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'CC' | 'CMS-W' | 'EC' | 'ES' | 'ESD' | 'HST' | 'IDS' | 'MAS' | 'PE' | 'RES' | 'STS' | 'WGS'}
+ * @type {Array<'1' | '10' | '11' | '12' | '14' | '15' | '16' | '17' | '18' | '2' | '20' | '21A' | '21G' | '21H' | '21L' | '21M' | '22' | '24' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'CC' | 'CMS-W' | 'EC' | 'ES' | 'ESD' | 'HST' | 'IDS' | 'MAS' | 'PE' | 'RES' | 'STS' | 'WGS'>}
* @memberof CoursesApiCoursesNewList
*/
- readonly department?: CoursesNewListDepartmentEnum
+ readonly department?: Array
/**
* The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory
- * @type {'advanced' | 'graduate' | 'high_school' | 'intermediate' | 'introductory' | 'noncredit' | 'undergraduate'}
+ * @type {Array<'advanced' | 'graduate' | 'high_school' | 'intermediate' | 'introductory' | 'noncredit' | 'undergraduate'>}
* @memberof CoursesApiCoursesNewList
*/
- readonly level?: CoursesNewListLevelEnum
+ readonly level?: Array
/**
* Number of results to return per page.
@@ -6456,10 +6396,10 @@ export interface CoursesApiCoursesNewListRequest {
/**
* The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
- * @type {'bootcamps' | 'csail' | 'ctl' | 'mitpe' | 'mitx' | 'ocw' | 'scc' | 'see' | 'xpro'}
+ * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'mitpe' | 'mitx' | 'ocw' | 'scc' | 'see' | 'xpro'>}
* @memberof CoursesApiCoursesNewList
*/
- readonly offered_by?: CoursesNewListOfferedByEnum
+ readonly offered_by?: Array
/**
* The initial index from which to return the results.
@@ -6470,10 +6410,10 @@ export interface CoursesApiCoursesNewListRequest {
/**
* 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
- * @type {'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro'}
+ * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro'>}
* @memberof CoursesApiCoursesNewList
*/
- readonly platform?: CoursesNewListPlatformEnum
+ readonly platform?: Array
/**
*
@@ -6484,10 +6424,10 @@ export interface CoursesApiCoursesNewListRequest {
/**
* The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
- * @type {'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program'}
+ * @type {Array<'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program'>}
* @memberof CoursesApiCoursesNewList
*/
- readonly resource_type?: CoursesNewListResourceTypeEnum
+ readonly resource_type?: Array
/**
* 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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
@@ -6497,11 +6437,11 @@ export interface CoursesApiCoursesNewListRequest {
readonly sortby?: CoursesNewListSortbyEnum
/**
- * Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
- * @type {string}
+ * Multiple values may be separated by commas.
+ * @type {Array}
* @memberof CoursesApiCoursesNewList
*/
- readonly topic?: string
+ readonly topic?: Array
}
/**
@@ -6525,25 +6465,25 @@ export interface CoursesApiCoursesRetrieveRequest {
*/
export interface CoursesApiCoursesUpcomingListRequest {
/**
- * Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @type {string}
+ * Multiple values may be separated by commas.
+ * @type {Array}
* @memberof CoursesApiCoursesUpcomingList
*/
- readonly course_feature?: string
+ readonly course_feature?: Array
/**
* The department that offers learning resources * `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
- * @type {'1' | '10' | '11' | '12' | '14' | '15' | '16' | '17' | '18' | '2' | '20' | '21A' | '21G' | '21H' | '21L' | '21M' | '22' | '24' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'CC' | 'CMS-W' | 'EC' | 'ES' | 'ESD' | 'HST' | 'IDS' | 'MAS' | 'PE' | 'RES' | 'STS' | 'WGS'}
+ * @type {Array<'1' | '10' | '11' | '12' | '14' | '15' | '16' | '17' | '18' | '2' | '20' | '21A' | '21G' | '21H' | '21L' | '21M' | '22' | '24' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'CC' | 'CMS-W' | 'EC' | 'ES' | 'ESD' | 'HST' | 'IDS' | 'MAS' | 'PE' | 'RES' | 'STS' | 'WGS'>}
* @memberof CoursesApiCoursesUpcomingList
*/
- readonly department?: CoursesUpcomingListDepartmentEnum
+ readonly department?: Array
/**
* The academic level of the resources * `undergraduate` - Undergraduate * `graduate` - Graduate * `high_school` - High School * `noncredit` - Non Credit * `advanced` - Advanced * `intermediate` - Intermediate * `introductory` - Introductory
- * @type {'advanced' | 'graduate' | 'high_school' | 'intermediate' | 'introductory' | 'noncredit' | 'undergraduate'}
+ * @type {Array<'advanced' | 'graduate' | 'high_school' | 'intermediate' | 'introductory' | 'noncredit' | 'undergraduate'>}
* @memberof CoursesApiCoursesUpcomingList
*/
- readonly level?: CoursesUpcomingListLevelEnum
+ readonly level?: Array
/**
* Number of results to return per page.
@@ -6554,10 +6494,10 @@ export interface CoursesApiCoursesUpcomingListRequest {
/**
* The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
- * @type {'bootcamps' | 'csail' | 'ctl' | 'mitpe' | 'mitx' | 'ocw' | 'scc' | 'see' | 'xpro'}
+ * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'mitpe' | 'mitx' | 'ocw' | 'scc' | 'see' | 'xpro'>}
* @memberof CoursesApiCoursesUpcomingList
*/
- readonly offered_by?: CoursesUpcomingListOfferedByEnum
+ readonly offered_by?: Array
/**
* The initial index from which to return the results.
@@ -6568,10 +6508,10 @@ export interface CoursesApiCoursesUpcomingListRequest {
/**
* 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
- * @type {'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro'}
+ * @type {Array<'bootcamps' | 'csail' | 'ctl' | 'edx' | 'emeritus' | 'globalalumni' | 'mitpe' | 'mitxonline' | 'ocw' | 'oll' | 'podcast' | 'scc' | 'see' | 'simplilearn' | 'susskind' | 'whu' | 'xpro'>}
* @memberof CoursesApiCoursesUpcomingList
*/
- readonly platform?: CoursesUpcomingListPlatformEnum
+ readonly platform?: Array
/**
*
@@ -6582,10 +6522,10 @@ export interface CoursesApiCoursesUpcomingListRequest {
/**
* The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
- * @type {'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program'}
+ * @type {Array<'course' | 'learning_path' | 'podcast' | 'podcast_episode' | 'program'>}
* @memberof CoursesApiCoursesUpcomingList
*/
- readonly resource_type?: CoursesUpcomingListResourceTypeEnum
+ readonly resource_type?: Array
/**
* 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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
@@ -6595,11 +6535,11 @@ export interface CoursesApiCoursesUpcomingListRequest {
readonly sortby?: CoursesUpcomingListSortbyEnum
/**
- * Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
- * @type {string}
+ * Multiple values may be separated by commas.
+ * @type {Array}
* @memberof CoursesApiCoursesUpcomingList
*/
- readonly topic?: string
+ readonly topic?: Array
}
/**
@@ -6623,16 +6563,14 @@ export class CoursesApi extends BaseAPI {
) {
return CoursesApiFp(this.configuration)
.coursesContentfilesList(
- requestParameters.learning_resource_id2,
- requestParameters.content_feature_type,
requestParameters.learning_resource_id,
- requestParameters.learning_resource_readable_id,
+ requestParameters.content_feature_type,
requestParameters.limit,
requestParameters.offered_by,
requestParameters.offset,
requestParameters.platform,
+ requestParameters.resource_id,
requestParameters.run_id,
- requestParameters.run_readable_id,
options,
)
.then((request) => request(this.axios, this.basePath))
@@ -7520,42 +7458,38 @@ export const LearningResourcesApiAxiosParamCreator = function (
/**
* Show content files for a learning resource
* @summary Learning Resource Content File List
- * @param {number} learning_resource_id2 id of the parent learning resource
- * @param {string} [content_feature_type] Content feature type for the content file. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {number} [learning_resource_id] The id of the learning resource the content file belongs to
- * @param {string} [learning_resource_readable_id] The readable id of the learning resource the content file belongs to
+ * @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 {LearningResourcesContentfilesListOfferedByEnum} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {LearningResourcesContentfilesListPlatformEnum} [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
- * @param {number} [run_id] The id of the learning resource run the content file belongs to
- * @param {string} [run_readable_id] The readable id of the learning resource run the content file belongs to
+ * @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
+ * @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.
* @throws {RequiredError}
*/
learningResourcesContentfilesList: async (
- learning_resource_id2: number,
- content_feature_type?: string,
- learning_resource_id?: number,
- learning_resource_readable_id?: string,
+ learning_resource_id: number,
+ content_feature_type?: Array,
limit?: number,
- offered_by?: LearningResourcesContentfilesListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: LearningResourcesContentfilesListPlatformEnum,
- run_id?: number,
- run_readable_id?: string,
+ platform?: Array,
+ resource_id?: Array,
+ run_id?: Array,
options: RawAxiosRequestConfig = {},
): Promise => {
- // verify required parameter 'learning_resource_id2' is not null or undefined
+ // verify required parameter 'learning_resource_id' is not null or undefined
assertParamExists(
"learningResourcesContentfilesList",
- "learning_resource_id2",
- learning_resource_id2,
+ "learning_resource_id",
+ learning_resource_id,
)
const localVarPath =
`/api/v1/learning_resources/{learning_resource_id}/contentfiles/`.replace(
`{${"learning_resource_id"}}`,
- encodeURIComponent(String(learning_resource_id2)),
+ encodeURIComponent(String(learning_resource_id)),
)
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
@@ -7572,24 +7506,16 @@ export const LearningResourcesApiAxiosParamCreator = function (
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
- if (content_feature_type !== undefined) {
- localVarQueryParameter["content_feature_type"] = content_feature_type
- }
-
- if (learning_resource_id !== undefined) {
- localVarQueryParameter["learning_resource_id"] = learning_resource_id
- }
-
- if (learning_resource_readable_id !== undefined) {
- localVarQueryParameter["learning_resource_readable_id"] =
- learning_resource_readable_id
+ if (content_feature_type) {
+ localVarQueryParameter["content_feature_type"] =
+ content_feature_type.join(COLLECTION_FORMATS.csv)
}
if (limit !== undefined) {
localVarQueryParameter["limit"] = limit
}
- if (offered_by !== undefined) {
+ if (offered_by) {
localVarQueryParameter["offered_by"] = offered_by
}
@@ -7597,16 +7523,18 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["offset"] = offset
}
- if (platform !== undefined) {
+ if (platform) {
localVarQueryParameter["platform"] = platform
}
- if (run_id !== undefined) {
- localVarQueryParameter["run_id"] = run_id
+ if (resource_id) {
+ localVarQueryParameter["resource_id"] = resource_id.join(
+ COLLECTION_FORMATS.csv,
+ )
}
- if (run_readable_id !== undefined) {
- localVarQueryParameter["run_readable_id"] = run_readable_id
+ if (run_id) {
+ localVarQueryParameter["run_id"] = run_id.join(COLLECTION_FORMATS.csv)
}
setSearchParams(localVarUrlObj, localVarQueryParameter)
@@ -7809,32 +7737,32 @@ export const LearningResourcesApiAxiosParamCreator = function (
/**
* Get a paginated list of learning resources.
* @summary List
- * @param {string} [course_feature] Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {LearningResourcesListDepartmentEnum} [department] The department that offers learning resources * `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 {LearningResourcesListLevelEnum} [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 {Array} [course_feature] Multiple values may be separated by commas.
+ * @param {Array} [department] The department that offers learning resources * `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 {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 {LearningResourcesListOfferedByEnum} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {LearningResourcesListPlatformEnum} [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
+ * @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
* @param {boolean} [professional]
- * @param {LearningResourcesListResourceTypeEnum} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
+ * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
* @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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
- * @param {string} [topic] Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
+ * @param {Array} [topic] Multiple values may be separated by commas.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
learningResourcesList: async (
- course_feature?: string,
- department?: LearningResourcesListDepartmentEnum,
- level?: LearningResourcesListLevelEnum,
+ course_feature?: Array,
+ department?: Array,
+ level?: Array,
limit?: number,
- offered_by?: LearningResourcesListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: LearningResourcesListPlatformEnum,
+ platform?: Array,
professional?: boolean,
- resource_type?: LearningResourcesListResourceTypeEnum,
+ resource_type?: Array,
sortby?: LearningResourcesListSortbyEnum,
- topic?: string,
+ topic?: Array,
options: RawAxiosRequestConfig = {},
): Promise => {
const localVarPath = `/api/v1/learning_resources/`
@@ -7853,15 +7781,17 @@ export const LearningResourcesApiAxiosParamCreator = function (
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
- if (course_feature !== undefined) {
- localVarQueryParameter["course_feature"] = course_feature
+ if (course_feature) {
+ localVarQueryParameter["course_feature"] = course_feature.join(
+ COLLECTION_FORMATS.csv,
+ )
}
- if (department !== undefined) {
+ if (department) {
localVarQueryParameter["department"] = department
}
- if (level !== undefined) {
+ if (level) {
localVarQueryParameter["level"] = level
}
@@ -7869,7 +7799,7 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["limit"] = limit
}
- if (offered_by !== undefined) {
+ if (offered_by) {
localVarQueryParameter["offered_by"] = offered_by
}
@@ -7877,7 +7807,7 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["offset"] = offset
}
- if (platform !== undefined) {
+ if (platform) {
localVarQueryParameter["platform"] = platform
}
@@ -7885,7 +7815,7 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["professional"] = professional
}
- if (resource_type !== undefined) {
+ if (resource_type) {
localVarQueryParameter["resource_type"] = resource_type
}
@@ -7893,8 +7823,8 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["sortby"] = sortby
}
- if (topic !== undefined) {
- localVarQueryParameter["topic"] = topic
+ if (topic) {
+ localVarQueryParameter["topic"] = topic.join(COLLECTION_FORMATS.csv)
}
setSearchParams(localVarUrlObj, localVarQueryParameter)
@@ -7914,32 +7844,32 @@ export const LearningResourcesApiAxiosParamCreator = function (
/**
* Get a paginated list of newly released Learning Resources.
* @summary List New
- * @param {string} [course_feature] Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {LearningResourcesNewListDepartmentEnum} [department] The department that offers learning resources * `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 {LearningResourcesNewListLevelEnum} [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 {Array} [course_feature] Multiple values may be separated by commas.
+ * @param {Array} [department] The department that offers learning resources * `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 {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 {LearningResourcesNewListOfferedByEnum} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {LearningResourcesNewListPlatformEnum} [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
+ * @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
* @param {boolean} [professional]
- * @param {LearningResourcesNewListResourceTypeEnum} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
+ * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
* @param {LearningResourcesNewListSortbyEnum} [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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
- * @param {string} [topic] Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
+ * @param {Array} [topic] Multiple values may be separated by commas.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
learningResourcesNewList: async (
- course_feature?: string,
- department?: LearningResourcesNewListDepartmentEnum,
- level?: LearningResourcesNewListLevelEnum,
+ course_feature?: Array,
+ department?: Array,
+ level?: Array,
limit?: number,
- offered_by?: LearningResourcesNewListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: LearningResourcesNewListPlatformEnum,
+ platform?: Array,
professional?: boolean,
- resource_type?: LearningResourcesNewListResourceTypeEnum,
+ resource_type?: Array,
sortby?: LearningResourcesNewListSortbyEnum,
- topic?: string,
+ topic?: Array,
options: RawAxiosRequestConfig = {},
): Promise => {
const localVarPath = `/api/v1/learning_resources/new/`
@@ -7958,15 +7888,17 @@ export const LearningResourcesApiAxiosParamCreator = function (
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
- if (course_feature !== undefined) {
- localVarQueryParameter["course_feature"] = course_feature
+ if (course_feature) {
+ localVarQueryParameter["course_feature"] = course_feature.join(
+ COLLECTION_FORMATS.csv,
+ )
}
- if (department !== undefined) {
+ if (department) {
localVarQueryParameter["department"] = department
}
- if (level !== undefined) {
+ if (level) {
localVarQueryParameter["level"] = level
}
@@ -7974,7 +7906,7 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["limit"] = limit
}
- if (offered_by !== undefined) {
+ if (offered_by) {
localVarQueryParameter["offered_by"] = offered_by
}
@@ -7982,7 +7914,7 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["offset"] = offset
}
- if (platform !== undefined) {
+ if (platform) {
localVarQueryParameter["platform"] = platform
}
@@ -7990,7 +7922,7 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["professional"] = professional
}
- if (resource_type !== undefined) {
+ if (resource_type) {
localVarQueryParameter["resource_type"] = resource_type
}
@@ -7998,8 +7930,8 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["sortby"] = sortby
}
- if (topic !== undefined) {
- localVarQueryParameter["topic"] = topic
+ if (topic) {
+ localVarQueryParameter["topic"] = topic.join(COLLECTION_FORMATS.csv)
}
setSearchParams(localVarUrlObj, localVarQueryParameter)
@@ -8065,32 +7997,32 @@ export const LearningResourcesApiAxiosParamCreator = function (
/**
* Get a paginated list of upcoming Learning Resources.
* @summary List Upcoming
- * @param {string} [course_feature] Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {LearningResourcesUpcomingListDepartmentEnum} [department] The department that offers learning resources * `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 {LearningResourcesUpcomingListLevelEnum} [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 {Array} [course_feature] Multiple values may be separated by commas.
+ * @param {Array} [department] The department that offers learning resources * `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 {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 {LearningResourcesUpcomingListOfferedByEnum} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {LearningResourcesUpcomingListPlatformEnum} [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
+ * @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
* @param {boolean} [professional]
- * @param {LearningResourcesUpcomingListResourceTypeEnum} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
+ * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
* @param {LearningResourcesUpcomingListSortbyEnum} [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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
- * @param {string} [topic] Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
+ * @param {Array} [topic] Multiple values may be separated by commas.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
learningResourcesUpcomingList: async (
- course_feature?: string,
- department?: LearningResourcesUpcomingListDepartmentEnum,
- level?: LearningResourcesUpcomingListLevelEnum,
+ course_feature?: Array,
+ department?: Array,
+ level?: Array,
limit?: number,
- offered_by?: LearningResourcesUpcomingListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: LearningResourcesUpcomingListPlatformEnum,
+ platform?: Array,
professional?: boolean,
- resource_type?: LearningResourcesUpcomingListResourceTypeEnum,
+ resource_type?: Array,
sortby?: LearningResourcesUpcomingListSortbyEnum,
- topic?: string,
+ topic?: Array,
options: RawAxiosRequestConfig = {},
): Promise => {
const localVarPath = `/api/v1/learning_resources/upcoming/`
@@ -8109,15 +8041,17 @@ export const LearningResourcesApiAxiosParamCreator = function (
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
- if (course_feature !== undefined) {
- localVarQueryParameter["course_feature"] = course_feature
+ if (course_feature) {
+ localVarQueryParameter["course_feature"] = course_feature.join(
+ COLLECTION_FORMATS.csv,
+ )
}
- if (department !== undefined) {
+ if (department) {
localVarQueryParameter["department"] = department
}
- if (level !== undefined) {
+ if (level) {
localVarQueryParameter["level"] = level
}
@@ -8125,7 +8059,7 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["limit"] = limit
}
- if (offered_by !== undefined) {
+ if (offered_by) {
localVarQueryParameter["offered_by"] = offered_by
}
@@ -8133,7 +8067,7 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["offset"] = offset
}
- if (platform !== undefined) {
+ if (platform) {
localVarQueryParameter["platform"] = platform
}
@@ -8141,7 +8075,7 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["professional"] = professional
}
- if (resource_type !== undefined) {
+ if (resource_type) {
localVarQueryParameter["resource_type"] = resource_type
}
@@ -8149,8 +8083,8 @@ export const LearningResourcesApiAxiosParamCreator = function (
localVarQueryParameter["sortby"] = sortby
}
- if (topic !== undefined) {
- localVarQueryParameter["topic"] = topic
+ if (topic) {
+ localVarQueryParameter["topic"] = topic.join(COLLECTION_FORMATS.csv)
}
setSearchParams(localVarUrlObj, localVarQueryParameter)
@@ -8181,30 +8115,26 @@ export const LearningResourcesApiFp = function (configuration?: Configuration) {
/**
* Show content files for a learning resource
* @summary Learning Resource Content File List
- * @param {number} learning_resource_id2 id of the parent learning resource
- * @param {string} [content_feature_type] Content feature type for the content file. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {number} [learning_resource_id] The id of the learning resource the content file belongs to
- * @param {string} [learning_resource_readable_id] The readable id of the learning resource the content file belongs to
+ * @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 {LearningResourcesContentfilesListOfferedByEnum} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource the content file belongs to * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {LearningResourcesContentfilesListPlatformEnum} [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
- * @param {number} [run_id] The id of the learning resource run the content file belongs to
- * @param {string} [run_readable_id] The readable id of the learning resource run the content file belongs to
+ * @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
+ * @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.
* @throws {RequiredError}
*/
async learningResourcesContentfilesList(
- learning_resource_id2: number,
- content_feature_type?: string,
- learning_resource_id?: number,
- learning_resource_readable_id?: string,
+ learning_resource_id: number,
+ content_feature_type?: Array,
limit?: number,
- offered_by?: LearningResourcesContentfilesListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: LearningResourcesContentfilesListPlatformEnum,
- run_id?: number,
- run_readable_id?: string,
+ platform?: Array,
+ resource_id?: Array,
+ run_id?: Array,
options?: RawAxiosRequestConfig,
): Promise<
(
@@ -8214,16 +8144,14 @@ export const LearningResourcesApiFp = function (configuration?: Configuration) {
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.learningResourcesContentfilesList(
- learning_resource_id2,
- content_feature_type,
learning_resource_id,
- learning_resource_readable_id,
+ content_feature_type,
limit,
offered_by,
offset,
platform,
+ resource_id,
run_id,
- run_readable_id,
options,
)
const index = configuration?.serverIndex ?? 0
@@ -8356,32 +8284,32 @@ export const LearningResourcesApiFp = function (configuration?: Configuration) {
/**
* Get a paginated list of learning resources.
* @summary List
- * @param {string} [course_feature] Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {LearningResourcesListDepartmentEnum} [department] The department that offers learning resources * `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 {LearningResourcesListLevelEnum} [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 {Array} [course_feature] Multiple values may be separated by commas.
+ * @param {Array} [department] The department that offers learning resources * `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 {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 {LearningResourcesListOfferedByEnum} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
+ * @param {Array} [offered_by] The organization that offers a learning resource * `mitx` - MITx * `ocw` - OCW * `bootcamps` - Bootcamps * `xpro` - xPRO * `csail` - CSAIL * `mitpe` - Professional Education * `see` - Sloan Executive Education * `scc` - Schwarzman College of Computing * `ctl` - Center for Transportation & Logistics
* @param {number} [offset] The initial index from which to return the results.
- * @param {LearningResourcesListPlatformEnum} [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
+ * @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
* @param {boolean} [professional]
- * @param {LearningResourcesListResourceTypeEnum} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
+ * @param {Array} [resource_type] The type of learning resource * `course` - Course * `program` - Program * `learning_path` - Learning Path * `podcast` - Podcast * `podcast_episode` - Podcast Episode
* @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 * `created_on` - Creation Date ascending * `-created_on` - CreationDate descending * `start_date` - Start Date ascending * `-start_date` - Start Date descending * `mitcoursenumber` - MIT course number ascending * `-mitcoursenumber` - MIT course number descending
- * @param {string} [topic] Topics covered by the resources. Load the \'/api/v1/topics\' endpoint for a list of topics
+ * @param {Array} [topic] Multiple values may be separated by commas.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async learningResourcesList(
- course_feature?: string,
- department?: LearningResourcesListDepartmentEnum,
- level?: LearningResourcesListLevelEnum,
+ course_feature?: Array,
+ department?: Array,
+ level?: Array,
limit?: number,
- offered_by?: LearningResourcesListOfferedByEnum,
+ offered_by?: Array,
offset?: number,
- platform?: LearningResourcesListPlatformEnum,
+ platform?: Array,
professional?: boolean,
- resource_type?: LearningResourcesListResourceTypeEnum,
+ resource_type?: Array,
sortby?: LearningResourcesListSortbyEnum,
- topic?: string,
+ topic?: Array,
options?: RawAxiosRequestConfig,
): Promise<
(
@@ -8420,32 +8348,32 @@ export const LearningResourcesApiFp = function (configuration?: Configuration) {
/**
* Get a paginated list of newly released Learning Resources.
* @summary List New
- * @param {string} [course_feature] Content feature for the resources. Load the \'api/v1/course_features\' endpoint for a list of course features
- * @param {LearningResourcesNewListDepartmentEnum} [department] The department that offers learning resources * `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 {LearningResourcesNewListLevelEnum} [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 {Array