Skip to content

Commit

Permalink
Generated clients from rev: cf2b207a4a8ac3f498fb5cbdaab9ab7167dbf20c
Browse files Browse the repository at this point in the history
  • Loading branch information
odlbot committed Jun 10, 2024
1 parent 1466bb2 commit 79e25b6
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 33 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.6.5
2024.6.10
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.5"
version = "2024.6.10"
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.5",
"version": "2024.6.10",
"description": "Library for requesting data from mit-open APIs",
"main": "dist/cjs/index.js",
"scripts": {
Expand Down
85 changes: 55 additions & 30 deletions src/typescript/mit-open-api-axios/src/v0/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,13 @@ export interface Attestation {
* @type {Array<number>}
* @memberof Attestation
*/
'channels': Array<number>;
'channels'?: Array<number>;
/**
* The offerors that this attestation can appear on
* @type {Array<string>}
* @memberof Attestation
*/
'offerors'?: Array<string>;
}
/**
*
Expand Down Expand Up @@ -744,12 +750,6 @@ export interface FieldChannelCreateRequest {
* @memberof FieldChannelCreateRequest
*/
'search_filter'?: string;
/**
*
* @type {any}
* @memberof FieldChannelCreateRequest
*/
'configuration'?: any | null;
/**
*
* @type {ChannelTopicDetailRequest}
Expand Down Expand Up @@ -1479,12 +1479,6 @@ export interface PatchedFieldChannelWriteRequest {
* @memberof PatchedFieldChannelWriteRequest
*/
'search_filter'?: string;
/**
*
* @type {any}
* @memberof PatchedFieldChannelWriteRequest
*/
'configuration'?: any | null;
/**
*
* @type {ChannelTopicDetailRequest}
Expand Down Expand Up @@ -1801,6 +1795,31 @@ export const PathwayChannelTypeEnum = {
export type PathwayChannelTypeEnum = typeof PathwayChannelTypeEnum[keyof typeof PathwayChannelTypeEnum];


/**
* Serializer for profile search preference filters
* @export
* @interface PreferencesSearch
*/
export interface PreferencesSearch {
/**
*
* @type {boolean}
* @memberof PreferencesSearch
*/
'certification'?: boolean;
/**
*
* @type {Array<string>}
* @memberof PreferencesSearch
*/
'topic'?: Array<string>;
/**
*
* @type {string}
* @memberof PreferencesSearch
*/
'learning_format'?: string;
}
/**
* Serializer for Profile
* @export
Expand Down Expand Up @@ -1921,6 +1940,12 @@ export interface Profile {
* @memberof Profile
*/
'learning_format'?: PatchedProfileRequestLearningFormat;
/**
*
* @type {PreferencesSearch}
* @memberof Profile
*/
'preference_search_filters': PreferencesSearch;
}
/**
* Serializer for Profile
Expand Down Expand Up @@ -4519,12 +4544,12 @@ export const TestimonialsApiAxiosParamCreator = function (configuration?: Config
* @summary List
* @param {Array<number>} [channels] The channels the attestation is for
* @param {number} [limit] Number of results to return per page.
* @param {Array<string>} [offerors] The offerors the attestation is for
* @param {number} [offset] The initial index from which to return the results.
* @param {boolean} [published] Only return published testimonials
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
testimonialsList: async (channels?: Array<number>, limit?: number, offset?: number, published?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
testimonialsList: async (channels?: Array<number>, limit?: number, offerors?: Array<string>, offset?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/v0/testimonials/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
Expand All @@ -4545,12 +4570,12 @@ export const TestimonialsApiAxiosParamCreator = function (configuration?: Config
localVarQueryParameter['limit'] = limit;
}

if (offset !== undefined) {
localVarQueryParameter['offset'] = offset;
if (offerors) {
localVarQueryParameter['offerors'] = offerors;
}

if (published !== undefined) {
localVarQueryParameter['published'] = published;
if (offset !== undefined) {
localVarQueryParameter['offset'] = offset;
}


Expand Down Expand Up @@ -4613,13 +4638,13 @@ export const TestimonialsApiFp = function(configuration?: Configuration) {
* @summary List
* @param {Array<number>} [channels] The channels the attestation is for
* @param {number} [limit] Number of results to return per page.
* @param {Array<string>} [offerors] The offerors the attestation is for
* @param {number} [offset] The initial index from which to return the results.
* @param {boolean} [published] Only return published testimonials
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async testimonialsList(channels?: Array<number>, limit?: number, offset?: number, published?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedAttestationList>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.testimonialsList(channels, limit, offset, published, options);
async testimonialsList(channels?: Array<number>, limit?: number, offerors?: Array<string>, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedAttestationList>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.testimonialsList(channels, limit, offerors, offset, options);
const index = configuration?.serverIndex ?? 0;
const operationBasePath = operationServerMap['TestimonialsApi.testimonialsList']?.[index]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
Expand Down Expand Up @@ -4655,7 +4680,7 @@ export const TestimonialsApiFactory = function (configuration?: Configuration, b
* @throws {RequiredError}
*/
testimonialsList(requestParameters: TestimonialsApiTestimonialsListRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedAttestationList> {
return localVarFp.testimonialsList(requestParameters.channels, requestParameters.limit, requestParameters.offset, requestParameters.published, options).then((request) => request(axios, basePath));
return localVarFp.testimonialsList(requestParameters.channels, requestParameters.limit, requestParameters.offerors, requestParameters.offset, options).then((request) => request(axios, basePath));
},
/**
* Retrieve a testimonial.
Expand Down Expand Up @@ -4691,18 +4716,18 @@ export interface TestimonialsApiTestimonialsListRequest {
readonly limit?: number

/**
* The initial index from which to return the results.
* @type {number}
* The offerors the attestation is for
* @type {Array<string>}
* @memberof TestimonialsApiTestimonialsList
*/
readonly offset?: number
readonly offerors?: Array<string>

/**
* Only return published testimonials
* @type {boolean}
* The initial index from which to return the results.
* @type {number}
* @memberof TestimonialsApiTestimonialsList
*/
readonly published?: boolean
readonly offset?: number
}

/**
Expand Down Expand Up @@ -4735,7 +4760,7 @@ export class TestimonialsApi extends BaseAPI {
* @memberof TestimonialsApi
*/
public testimonialsList(requestParameters: TestimonialsApiTestimonialsListRequest = {}, options?: RawAxiosRequestConfig) {
return TestimonialsApiFp(this.configuration).testimonialsList(requestParameters.channels, requestParameters.limit, requestParameters.offset, requestParameters.published, options).then((request) => request(this.axios, this.basePath));
return TestimonialsApiFp(this.configuration).testimonialsList(requestParameters.channels, requestParameters.limit, requestParameters.offerors, requestParameters.offset, options).then((request) => request(this.axios, this.basePath));
}

/**
Expand Down

0 comments on commit 79e25b6

Please sign in to comment.