ledger list clean + fix

This commit is contained in:
Sirttas
2026-05-17 21:03:56 +02:00
parent 2332ad2216
commit 65bb13aa3b
7 changed files with 106 additions and 29 deletions
+16 -16
View File
@@ -49,9 +49,9 @@ export interface MainLedgerDto extends LedgerDto {
}
/**
* LegerControllerApi - axios parameter creator
* LedgerControllerApi - axios parameter creator
*/
export const LegerControllerApiAxiosParamCreator = function (configuration?: Configuration) {
export const LedgerControllerApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
@@ -154,10 +154,10 @@ export const LegerControllerApiAxiosParamCreator = function (configuration?: Con
};
/**
* LegerControllerApi - functional programming interface
* LedgerControllerApi - functional programming interface
*/
export const LegerControllerApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = LegerControllerApiAxiosParamCreator(configuration)
export const LedgerControllerApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = LedgerControllerApiAxiosParamCreator(configuration)
return {
/**
*
@@ -168,7 +168,7 @@ export const LegerControllerApiFp = function(configuration?: Configuration) {
async createCombiningLedger(createCombiningLedgerCommand: CreateCombiningLedgerCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CombiningLedgerDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createCombiningLedger(createCombiningLedgerCommand, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['LegerControllerApi.createCombiningLedger']?.[localVarOperationServerIndex]?.url;
const localVarOperationServerBasePath = operationServerMap['LedgerControllerApi.createCombiningLedger']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
@@ -180,7 +180,7 @@ export const LegerControllerApiFp = function(configuration?: Configuration) {
async createMainLedger(createMainLedgerCommand: CreateMainLedgerCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MainLedgerDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createMainLedger(createMainLedgerCommand, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['LegerControllerApi.createMainLedger']?.[localVarOperationServerIndex]?.url;
const localVarOperationServerBasePath = operationServerMap['LedgerControllerApi.createMainLedger']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
@@ -191,17 +191,17 @@ export const LegerControllerApiFp = function(configuration?: Configuration) {
async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FindAll200ResponseInner>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['LegerControllerApi.findAll']?.[localVarOperationServerIndex]?.url;
const localVarOperationServerBasePath = operationServerMap['LedgerControllerApi.findAll']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
}
};
/**
* LegerControllerApi - factory interface
* LedgerControllerApi - factory interface
*/
export const LegerControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = LegerControllerApiFp(configuration)
export const LedgerControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = LedgerControllerApiFp(configuration)
return {
/**
*
@@ -233,9 +233,9 @@ export const LegerControllerApiFactory = function (configuration?: Configuration
};
/**
* LegerControllerApi - object-oriented interface
* LedgerControllerApi - object-oriented interface
*/
export class LegerControllerApi extends BaseAPI {
export class LedgerControllerApi extends BaseAPI {
/**
*
* @param {CreateCombiningLedgerCommand} createCombiningLedgerCommand
@@ -243,7 +243,7 @@ export class LegerControllerApi extends BaseAPI {
* @throws {RequiredError}
*/
public createCombiningLedger(createCombiningLedgerCommand: CreateCombiningLedgerCommand, options?: RawAxiosRequestConfig) {
return LegerControllerApiFp(this.configuration).createCombiningLedger(createCombiningLedgerCommand, options).then((request) => request(this.axios, this.basePath));
return LedgerControllerApiFp(this.configuration).createCombiningLedger(createCombiningLedgerCommand, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -253,7 +253,7 @@ export class LegerControllerApi extends BaseAPI {
* @throws {RequiredError}
*/
public createMainLedger(createMainLedgerCommand: CreateMainLedgerCommand, options?: RawAxiosRequestConfig) {
return LegerControllerApiFp(this.configuration).createMainLedger(createMainLedgerCommand, options).then((request) => request(this.axios, this.basePath));
return LedgerControllerApiFp(this.configuration).createMainLedger(createMainLedgerCommand, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -262,7 +262,7 @@ export class LegerControllerApi extends BaseAPI {
* @throws {RequiredError}
*/
public findAll(options?: RawAxiosRequestConfig) {
return LegerControllerApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
return LedgerControllerApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
}
}