Skip to content

Commit

Permalink
Generated clients from rev: 56921a3fb9de71b16a44b85bf89c0a1d8bc7a41b
Browse files Browse the repository at this point in the history
  • Loading branch information
odlbot committed Jun 5, 2024
1 parent 52d9af2 commit 1466bb2
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 55 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.6.4
2024.6.5
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "open-api-clients"
version = "2024.6.4"
version = "2024.6.5"
description = ""
authors = []
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/typescript/mit-open-api-axios/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
117 changes: 65 additions & 52 deletions src/typescript/mit-open-api-axios/src/v0/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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];


/**
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1549,10 +1562,10 @@ export interface PatchedProfileRequest {
'location'?: any | null;
/**
*
* @type {Array<InterestsEnum>}
* @type {Array<number>}
* @memberof PatchedProfileRequest
*/
'interests'?: Array<InterestsEnum>;
'topic_interests'?: Array<number>;
/**
*
* @type {Array<GoalsEnum>}
Expand All @@ -1579,10 +1592,10 @@ export interface PatchedProfileRequest {
'time_commitment'?: PatchedProfileRequestTimeCommitment;
/**
*
* @type {PatchedProfileRequestCourseFormat}
* @type {PatchedProfileRequestLearningFormat}
* @memberof PatchedProfileRequest
*/
'course_format'?: PatchedProfileRequestCourseFormat;
'learning_format'?: PatchedProfileRequestLearningFormat;
}
/**
* @type PatchedProfileRequestCertificateDesired
Expand All @@ -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
Expand Down Expand Up @@ -1874,10 +1887,10 @@ export interface Profile {
'placename': string;
/**
*
* @type {Array<InterestsEnum>}
* @type {Array<LearningResourceTopic>}
* @memberof Profile
*/
'interests'?: Array<InterestsEnum>;
'topic_interests'?: Array<LearningResourceTopic>;
/**
*
* @type {Array<GoalsEnum>}
Expand All @@ -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
Expand Down Expand Up @@ -1971,10 +1984,10 @@ export interface ProfileRequest {
'location'?: any | null;
/**
*
* @type {Array<InterestsEnum>}
* @type {Array<number>}
* @memberof ProfileRequest
*/
'interests'?: Array<InterestsEnum>;
'topic_interests'?: Array<number>;
/**
*
* @type {Array<GoalsEnum>}
Expand All @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/typescript/mit-open-api-axios/src/v1/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1466bb2

Please sign in to comment.