Skip to content

Commit

Permalink
generacte client
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Wiaderek authored and Tomasz Wiaderek committed Apr 18, 2024
1 parent 2eeb721 commit f02512d
Showing 1 changed file with 196 additions and 0 deletions.
196 changes: 196 additions & 0 deletions src/serverApi/v3/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,19 @@ export interface AccountSearchListResponse {
*/
limit: number;
}
/**
*
* @export
* @interface AlertResponse
*/
export interface AlertResponse {
/**
*
* @type {Array<Message>}
* @memberof AlertResponse
*/
data: Array<Message>;
}
/**
*
* @export
Expand Down Expand Up @@ -3989,6 +4002,74 @@ export interface MediaLineResponse {
*/
timestamps: TimestampsResponse;
}
/**
*
* @export
* @interface Message
*/
export interface Message {
/**
*
* @type {string}
* @memberof Message
*/
title: string;
/**
*
* @type {string}
* @memberof Message
*/
text: string;
/**
*
* @type {string}
* @memberof Message
*/
timestamp: string;
/**
*
* @type {MessageOrigin}
* @memberof Message
*/
origin: MessageOrigin;
/**
*
* @type {string}
* @memberof Message
*/
url: string;
/**
*
* @type {string}
* @memberof Message
*/
status: string;
/**
*
* @type {string}
* @memberof Message
*/
createdAt: string;
}
/**
*
* @export
* @interface MessageOrigin
*/
export interface MessageOrigin {
/**
*
* @type {number}
* @memberof MessageOrigin
*/
message_id: number;
/**
*
* @type {string}
* @memberof MessageOrigin
*/
page: string;
}
/**
*
* @export
Expand Down Expand Up @@ -8736,6 +8817,121 @@ export class AdminTeachersApi extends BaseAPI implements AdminTeachersApiInterfa
}


/**
* AlertApi - axios parameter creator
* @export
*/
export const AlertApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary Get allerts
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
alertControllerFind: async (options: any = {}): Promise<RequestArgs> => {
const localVarPath = `/alert`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}

const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;



setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
}
};

/**
* AlertApi - functional programming interface
* @export
*/
export const AlertApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = AlertApiAxiosParamCreator(configuration)
return {
/**
*
* @summary Get allerts
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async alertControllerFind(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.alertControllerFind(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
};

/**
* AlertApi - factory interface
* @export
*/
export const AlertApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = AlertApiFp(configuration)
return {
/**
*
* @summary Get allerts
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
alertControllerFind(options?: any): AxiosPromise<AlertResponse> {
return localVarFp.alertControllerFind(options).then((request) => request(axios, basePath));
},
};
};

/**
* AlertApi - interface
* @export
* @interface AlertApi
*/
export interface AlertApiInterface {
/**
*
* @summary Get allerts
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof AlertApiInterface
*/
alertControllerFind(options?: any): AxiosPromise<AlertResponse>;

}

/**
* AlertApi - object-oriented interface
* @export
* @class AlertApi
* @extends {BaseAPI}
*/
export class AlertApi extends BaseAPI implements AlertApiInterface {
/**
*
* @summary Get allerts
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof AlertApi
*/
public alertControllerFind(options?: any) {
return AlertApiFp(this.configuration).alertControllerFind(options).then((request) => request(this.axios, this.basePath));
}
}


/**
* AuthenticationApi - axios parameter creator
* @export
Expand Down

0 comments on commit f02512d

Please sign in to comment.