Skip to content

Commit

Permalink
Generated clients from rev: becf6f5ef3be0b9546ca72a49508154cb248e38d
Browse files Browse the repository at this point in the history
  • Loading branch information
odlbot committed Aug 5, 2024
1 parent b473082 commit b87bf1b
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 31 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.8.1
2024.8.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.8.1"
version = "2024.8.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.8.1",
"version": "2024.8.5",
"description": "Library for requesting data from mit-open APIs",
"main": "dist/cjs/index.js",
"scripts": {
Expand Down
87 changes: 59 additions & 28 deletions src/typescript/mit-open-api-axios/src/v1/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -602,15 +602,15 @@ export interface CourseResource {
* @type {Array<MicroLearningPathRelationship>}
* @memberof CourseResource
*/
'learning_path_parents': Array<MicroLearningPathRelationship> | null;
'learning_path_parents': Array<MicroLearningPathRelationship>;
/**
*
* @type {Array<MicroUserListRelationship>}
* @memberof CourseResource
*/
'user_list_parents': Array<MicroUserListRelationship> | null;
'user_list_parents': Array<MicroUserListRelationship>;
/**
* Return the number of views for the resource.
*
* @type {number}
* @memberof CourseResource
*/
Expand Down Expand Up @@ -1201,15 +1201,15 @@ export interface LearningPathResource {
* @type {Array<MicroLearningPathRelationship>}
* @memberof LearningPathResource
*/
'learning_path_parents': Array<MicroLearningPathRelationship> | null;
'learning_path_parents': Array<MicroLearningPathRelationship>;
/**
*
* @type {Array<MicroUserListRelationship>}
* @memberof LearningPathResource
*/
'user_list_parents': Array<MicroUserListRelationship> | null;
'user_list_parents': Array<MicroUserListRelationship>;
/**
* Return the number of views for the resource.
*
* @type {number}
* @memberof LearningPathResource
*/
Expand Down Expand Up @@ -1408,7 +1408,7 @@ export type LearningPathResourceResourceTypeEnum = typeof LearningPathResourceRe
export type LearningResource = { resource_type: 'course' } & CourseResource | { resource_type: 'learning_path' } & LearningPathResource | { resource_type: 'podcast' } & PodcastResource | { resource_type: 'podcast_episode' } & PodcastEpisodeResource | { resource_type: 'program' } & ProgramResource | { resource_type: 'video' } & VideoResource | { resource_type: 'video_playlist' } & VideoPlaylistResource;

/**
* Serializer for LearningResourceDepartment, minus school
* Serializer for LearningResourceDepartment, minus school The absence of the departments list is to avoid a circular serialization structure.
* @export
* @interface LearningResourceBaseDepartment
*/
Expand All @@ -1426,14 +1426,14 @@ export interface LearningResourceBaseDepartment {
*/
'name': string;
/**
* Get the channel url for the department if it exists
*
* @type {string}
* @memberof LearningResourceBaseDepartment
*/
'channel_url': string | null;
}
/**
* Base serializer for LearningResourceSchool model, minus departments list
* Base serializer for LearningResourceSchool model, minus departments list The absence of the departments list is to avoid a circular serialization structure.
* @export
* @interface LearningResourceBaseSchool
*/
Expand All @@ -1458,7 +1458,7 @@ export interface LearningResourceBaseSchool {
'url': string;
}
/**
* Base serializer for LearningResourceSchool model, minus departments list
* Base serializer for LearningResourceSchool model, minus departments list The absence of the departments list is to avoid a circular serialization structure.
* @export
* @interface LearningResourceBaseSchoolRequest
*/
Expand Down Expand Up @@ -1514,7 +1514,7 @@ export interface LearningResourceDepartment {
*/
'name': string;
/**
* Get the channel url for the department if it exists
*
* @type {string}
* @memberof LearningResourceDepartment
*/
Expand Down Expand Up @@ -3202,6 +3202,18 @@ export interface PercolateQuery {
* @memberof PercolateQuery
*/
'id': number;
/**
*
* @type {string}
* @memberof PercolateQuery
*/
'source_description': string;
/**
*
* @type {string}
* @memberof PercolateQuery
*/
'source_label': string;
/**
*
* @type {any}
Expand Down Expand Up @@ -3501,7 +3513,7 @@ export interface Podcast {
*/
'id': number;
/**
* Return the number of episodes in the podcast
*
* @type {number}
* @memberof Podcast
*/
Expand Down Expand Up @@ -3670,15 +3682,15 @@ export interface PodcastEpisodeResource {
* @type {Array<MicroLearningPathRelationship>}
* @memberof PodcastEpisodeResource
*/
'learning_path_parents': Array<MicroLearningPathRelationship> | null;
'learning_path_parents': Array<MicroLearningPathRelationship>;
/**
*
* @type {Array<MicroUserListRelationship>}
* @memberof PodcastEpisodeResource
*/
'user_list_parents': Array<MicroUserListRelationship> | null;
'user_list_parents': Array<MicroUserListRelationship>;
/**
* Return the number of views for the resource.
*
* @type {number}
* @memberof PodcastEpisodeResource
*/
Expand Down Expand Up @@ -3876,6 +3888,12 @@ export type PodcastEpisodeResourceResourceTypeEnum = typeof PodcastEpisodeResour
* @interface PodcastRequest
*/
export interface PodcastRequest {
/**
*
* @type {number}
* @memberof PodcastRequest
*/
'episode_count': number;
/**
*
* @type {string}
Expand Down Expand Up @@ -3972,15 +3990,15 @@ export interface PodcastResource {
* @type {Array<MicroLearningPathRelationship>}
* @memberof PodcastResource
*/
'learning_path_parents': Array<MicroLearningPathRelationship> | null;
'learning_path_parents': Array<MicroLearningPathRelationship>;
/**
*
* @type {Array<MicroUserListRelationship>}
* @memberof PodcastResource
*/
'user_list_parents': Array<MicroUserListRelationship> | null;
'user_list_parents': Array<MicroUserListRelationship>;
/**
* Return the number of views for the resource.
*
* @type {number}
* @memberof PodcastResource
*/
Expand Down Expand Up @@ -4495,15 +4513,15 @@ export interface ProgramResource {
* @type {Array<MicroLearningPathRelationship>}
* @memberof ProgramResource
*/
'learning_path_parents': Array<MicroLearningPathRelationship> | null;
'learning_path_parents': Array<MicroLearningPathRelationship>;
/**
*
* @type {Array<MicroUserListRelationship>}
* @memberof ProgramResource
*/
'user_list_parents': Array<MicroUserListRelationship> | null;
'user_list_parents': Array<MicroUserListRelationship>;
/**
* Return the number of views for the resource.
*
* @type {number}
* @memberof ProgramResource
*/
Expand Down Expand Up @@ -5109,12 +5127,25 @@ export interface VideoPlaylist {
*/
'channel': VideoChannel | null;
/**
* Return the number of videos in the playlist
*
* @type {number}
* @memberof VideoPlaylist
*/
'video_count': number;
}
/**
* Serializer for the VideoPlaylist model
* @export
* @interface VideoPlaylistRequest
*/
export interface VideoPlaylistRequest {
/**
*
* @type {number}
* @memberof VideoPlaylistRequest
*/
'video_count': number;
}
/**
* Serializer for video playlist resources
* @export
Expand Down Expand Up @@ -5192,15 +5223,15 @@ export interface VideoPlaylistResource {
* @type {Array<MicroLearningPathRelationship>}
* @memberof VideoPlaylistResource
*/
'learning_path_parents': Array<MicroLearningPathRelationship> | null;
'learning_path_parents': Array<MicroLearningPathRelationship>;
/**
*
* @type {Array<MicroUserListRelationship>}
* @memberof VideoPlaylistResource
*/
'user_list_parents': Array<MicroUserListRelationship> | null;
'user_list_parents': Array<MicroUserListRelationship>;
/**
* Return the number of views for the resource.
*
* @type {number}
* @memberof VideoPlaylistResource
*/
Expand Down Expand Up @@ -5488,15 +5519,15 @@ export interface VideoResource {
* @type {Array<MicroLearningPathRelationship>}
* @memberof VideoResource
*/
'learning_path_parents': Array<MicroLearningPathRelationship> | null;
'learning_path_parents': Array<MicroLearningPathRelationship>;
/**
*
* @type {Array<MicroUserListRelationship>}
* @memberof VideoResource
*/
'user_list_parents': Array<MicroUserListRelationship> | null;
'user_list_parents': Array<MicroUserListRelationship>;
/**
* Return the number of views for the resource.
*
* @type {number}
* @memberof VideoResource
*/
Expand Down

0 comments on commit b87bf1b

Please sign in to comment.