diff --git a/VERSION b/VERSION index 9174271..57305b4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2024.6.4 +2024.6.5 diff --git a/pyproject.toml b/pyproject.toml index ce09de0..31bad31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "open-api-clients" -version = "2024.6.4" +version = "2024.6.5" description = "" authors = [] readme = "README.md" diff --git a/src/typescript/mit-open-api-axios/package.json b/src/typescript/mit-open-api-axios/package.json index 5b191c7..f267734 100644 --- a/src/typescript/mit-open-api-axios/package.json +++ b/src/typescript/mit-open-api-axios/package.json @@ -1,6 +1,6 @@ { "name": "@mitodl/open-api-axios", - "version": "2024.6.4", + "version": "2024.6.5", "description": "Library for requesting data from mit-open APIs", "main": "dist/cjs/index.js", "scripts": { diff --git a/src/typescript/mit-open-api-axios/src/v0/api.ts b/src/typescript/mit-open-api-axios/src/v0/api.ts index e1f61e8..516435d 100644 --- a/src/typescript/mit-open-api-axios/src/v0/api.ts +++ b/src/typescript/mit-open-api-axios/src/v0/api.ts @@ -224,21 +224,6 @@ export const ChannelTypeEnum = { export type ChannelTypeEnum = typeof ChannelTypeEnum[keyof typeof ChannelTypeEnum]; -/** - * * `online` - Online * `in-person` - In-Person * `hybrid` - Hybrid - * @export - * @enum {string} - */ - -export const CourseFormatEnum = { - Online: 'online', - InPerson: 'in-person', - Hybrid: 'hybrid' -} as const; - -export type CourseFormatEnum = typeof CourseFormatEnum[keyof typeof CourseFormatEnum]; - - /** * * `no-formal` - No Formal Education * `primary` - Primary Education * `secondary-or-high-school` - Secondary Education or High School * `ged` - GED * `vocational-qualification` - Vocational Qualification * @export @@ -840,33 +825,18 @@ export type GoalsEnum = typeof GoalsEnum[keyof typeof GoalsEnum]; /** - * * `computer-science` - Computer Science * `business` - Business * `engineering` - Engineering * `leadership` - Leadership * `organized-behavior` - Organized Behavior * `management` - Management * `electrical-engineering` - Electrical Engineering * `information-technology` - Information Technology * `biology` - Biology * `earth-science` - Earth Science * `environmental-engineering` - Environmental Engineering * `health-and-medicine` - Health & Medicine * `probability-and-stats` - Probability & Stats * `economics` - Economics * `history` - History * `mathematics` - Mathematics * `mechanical-engineering` - Mechanical Engineering * `other` - Other + * * `online` - Online * `hybrid` - Hybrid * `in_person` - In person * @export * @enum {string} */ -export const InterestsEnum = { - ComputerScience: 'computer-science', - Business: 'business', - Engineering: 'engineering', - Leadership: 'leadership', - OrganizedBehavior: 'organized-behavior', - Management: 'management', - ElectricalEngineering: 'electrical-engineering', - InformationTechnology: 'information-technology', - Biology: 'biology', - EarthScience: 'earth-science', - EnvironmentalEngineering: 'environmental-engineering', - HealthAndMedicine: 'health-and-medicine', - ProbabilityAndStats: 'probability-and-stats', - Economics: 'economics', - History: 'history', - Mathematics: 'mathematics', - MechanicalEngineering: 'mechanical-engineering', - Other: 'other' +export const LearningFormatEnum = { + Online: 'online', + Hybrid: 'hybrid', + InPerson: 'in_person' } as const; -export type InterestsEnum = typeof InterestsEnum[keyof typeof InterestsEnum]; +export type LearningFormatEnum = typeof LearningFormatEnum[keyof typeof LearningFormatEnum]; /** @@ -966,6 +936,12 @@ export interface LearningResourceOfferorDetail { * @memberof LearningResourceOfferorDetail */ 'more_information'?: string; + /** + * + * @type {string} + * @memberof LearningResourceOfferorDetail + */ + 'value_prop'?: string; } /** * Serializer for LearningResourceOfferor with all details @@ -1033,6 +1009,43 @@ export interface LearningResourceOfferorDetailRequest { * @memberof LearningResourceOfferorDetailRequest */ 'more_information'?: string; + /** + * + * @type {string} + * @memberof LearningResourceOfferorDetailRequest + */ + 'value_prop'?: string; +} +/** + * Serializer for LearningResourceTopic model + * @export + * @interface LearningResourceTopic + */ +export interface LearningResourceTopic { + /** + * + * @type {number} + * @memberof LearningResourceTopic + */ + 'id': number; + /** + * + * @type {string} + * @memberof LearningResourceTopic + */ + 'name': string; + /** + * + * @type {number} + * @memberof LearningResourceTopic + */ + 'parent'?: number | null; + /** + * Get the channel url for the topic if it exists + * @type {string} + * @memberof LearningResourceTopic + */ + 'channel_url': string | null; } /** * Serializer for News FeedItem @@ -1549,10 +1562,10 @@ export interface PatchedProfileRequest { 'location'?: any | null; /** * - * @type {Array} + * @type {Array} * @memberof PatchedProfileRequest */ - 'interests'?: Array; + 'topic_interests'?: Array; /** * * @type {Array} @@ -1579,10 +1592,10 @@ export interface PatchedProfileRequest { 'time_commitment'?: PatchedProfileRequestTimeCommitment; /** * - * @type {PatchedProfileRequestCourseFormat} + * @type {PatchedProfileRequestLearningFormat} * @memberof PatchedProfileRequest */ - 'course_format'?: PatchedProfileRequestCourseFormat; + 'learning_format'?: PatchedProfileRequestLearningFormat; } /** * @type PatchedProfileRequestCertificateDesired @@ -1591,16 +1604,16 @@ export interface PatchedProfileRequest { export type PatchedProfileRequestCertificateDesired = BlankEnum | CertificateDesiredEnum; /** - * @type PatchedProfileRequestCourseFormat + * @type PatchedProfileRequestCurrentEducation * @export */ -export type PatchedProfileRequestCourseFormat = BlankEnum | CourseFormatEnum; +export type PatchedProfileRequestCurrentEducation = BlankEnum | CurrentEducationEnum; /** - * @type PatchedProfileRequestCurrentEducation + * @type PatchedProfileRequestLearningFormat * @export */ -export type PatchedProfileRequestCurrentEducation = BlankEnum | CurrentEducationEnum; +export type PatchedProfileRequestLearningFormat = BlankEnum | LearningFormatEnum; /** * @type PatchedProfileRequestTimeCommitment @@ -1874,10 +1887,10 @@ export interface Profile { 'placename': string; /** * - * @type {Array} + * @type {Array} * @memberof Profile */ - 'interests'?: Array; + 'topic_interests'?: Array; /** * * @type {Array} @@ -1904,10 +1917,10 @@ export interface Profile { 'time_commitment'?: PatchedProfileRequestTimeCommitment; /** * - * @type {PatchedProfileRequestCourseFormat} + * @type {PatchedProfileRequestLearningFormat} * @memberof Profile */ - 'course_format'?: PatchedProfileRequestCourseFormat; + 'learning_format'?: PatchedProfileRequestLearningFormat; } /** * Serializer for Profile @@ -1971,10 +1984,10 @@ export interface ProfileRequest { 'location'?: any | null; /** * - * @type {Array} + * @type {Array} * @memberof ProfileRequest */ - 'interests'?: Array; + 'topic_interests'?: Array; /** * * @type {Array} @@ -2001,10 +2014,10 @@ export interface ProfileRequest { 'time_commitment'?: PatchedProfileRequestTimeCommitment; /** * - * @type {PatchedProfileRequestCourseFormat} + * @type {PatchedProfileRequestLearningFormat} * @memberof ProfileRequest */ - 'course_format'?: PatchedProfileRequestCourseFormat; + 'learning_format'?: PatchedProfileRequestLearningFormat; } /** * Serializer for Program Certificates diff --git a/src/typescript/mit-open-api-axios/src/v1/api.ts b/src/typescript/mit-open-api-axios/src/v1/api.ts index 67e6c6f..d6cb74b 100644 --- a/src/typescript/mit-open-api-axios/src/v1/api.ts +++ b/src/typescript/mit-open-api-axios/src/v1/api.ts @@ -1513,6 +1513,12 @@ export interface LearningResourceOfferorDetail { * @memberof LearningResourceOfferorDetail */ 'more_information'?: string; + /** + * + * @type {string} + * @memberof LearningResourceOfferorDetail + */ + 'value_prop'?: string; } /** * Serializer for LearningResourceOfferor with basic details