Skip to content

Commit

Permalink
[squash] Rename logId to sessionId
Browse files Browse the repository at this point in the history
  • Loading branch information
dvasilas committed Oct 25, 2024
1 parent a226217 commit 813430d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
28 changes: 14 additions & 14 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,21 +189,21 @@ export const ScubaApiAxiosParamCreator = function (configuration?: Configuration
/**
*
* @param {AdminActions} action
* @param {string} logId
* @param {string} sessionId
* @param {any} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
admin: async (
action: AdminActions,
logId: string,
sessionId: string,
body?: any,
options: AxiosRequestConfig = {},
): Promise<RequestArgs> => {
// verify required parameter 'action' is not null or undefined
assertParamExists('admin', 'action', action);
// verify required parameter 'logId' is not null or undefined
assertParamExists('admin', 'logId', logId);
// verify required parameter 'sessionId' is not null or undefined
assertParamExists('admin', 'sessionId', sessionId);

const localVarPath = '/admin';
// use dummy base URL string because the URL constructor only accepts absolute URLs.
Expand All @@ -215,7 +215,7 @@ export const ScubaApiAxiosParamCreator = function (configuration?: Configuration

const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = { action, logId } as any;
const localVarQueryParameter = { action, sessionId } as any;

localVarHeaderParameter['Content-Type'] = 'application/json';

Expand Down Expand Up @@ -303,18 +303,18 @@ export const ScubaApiFp = function (configuration?: Configuration) {
/**
*
* @param {AdminActions} action
* @param {string} logId
* @param {string} sessionId
* @param {any} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async admin(
action: AdminActions,
logId: string,
sessionId: string,
body?: any,
options?: AxiosRequestConfig,
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.admin(action, logId, body, options);
const localVarAxiosArgs = await localVarAxiosParamCreator.admin(action, sessionId, body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
};
Expand Down Expand Up @@ -363,13 +363,13 @@ export const ScubaApiFactory = function (configuration?: Configuration, basePath
/**
*
* @param {AdminActions} action
* @param {string} logId
* @param {string} sessionId
* @param {any} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
admin(action: AdminActions, logId: string, body?: any, options?: any): AxiosPromise<void> {
return localVarFp.admin(action, logId, body, options).then(request => request(axios, basePath));
admin(action: AdminActions, sessionId: string, body?: any, options?: any): AxiosPromise<void> {
return localVarFp.admin(action, sessionId, body, options).then(request => request(axios, basePath));
},
};
};
Expand Down Expand Up @@ -433,14 +433,14 @@ export class ScubaApi extends BaseAPI {
/**
*
* @param {AdminActions} action
* @param {string} logId
* @param {string} sessionId
* @param {any} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
public admin(action: AdminActions, logId: string, body?: any, options?: AxiosRequestConfig) {
public admin(action: AdminActions, sessionId: string, body?: any, options?: AxiosRequestConfig) {
return ScubaApiFp(this.configuration)
.admin(action, logId, body, options)
.admin(action, sessionId, body, options)
.then(request => request(this.axios, this.basePath));
}
}
6 changes: 3 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export type HealthCheckResponse = {
};

export type AdminResponseCseq = {
logId: string;
sessionId: string;
cseq: number;
};

Expand Down Expand Up @@ -177,11 +177,11 @@ export default class ScubaClient {

async admin(
action: AdminActions,
logId: string,
sessionId: string,
options?: AxiosRequestConfig,
body?: any,
): Promise<AdminResponseCseq | void> {
const resp = (await this._api.admin(action, logId, body, {
const resp = (await this._api.admin(action, sessionId, body, {
...this._defaultReqOptions,
...options,
})) as any;
Expand Down

0 comments on commit 813430d

Please sign in to comment.